7 Replies Latest reply on May 21, 2007 2:12 PM by Alexander Smirnov

    Exception while using EJB with Remote Interface

    Alexander Belov Novice

      If I write in web.xml:

      <ejb-ref>
       <ejb-ref-name>ejb/KEFacade</ejb-ref-name>
       <remote>InterfaceName</remote>
       <mapped-name>corbaname:iiop:localhost:3700#Interface</mapped-name> </ejb-ref>


      I have an exception:

      javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getWebXml(ResourceBuilderImpl.java:109)
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getUri(ResourceBuilderImpl.java:297)
      at org.ajax4jsf.framework.resource.InternetResourceBase.getUri(InternetResourceBase.java:211)
      at org.ajax4jsf.framework.resource.BaseResourceRenderer.encodeBegin(BaseResourceRenderer.java:62)
      at org.ajax4jsf.framework.resource.OneTimeRenderer.encodeBegin(OneTimeRenderer.java:48)
      at org.ajax4jsf.framework.resource.BaseResourceRenderer.encode(BaseResourceRenderer.java:45)
      at org.ajax4jsf.framework.resource.InternetResourceBase.encode(InternetResourceBase.java:306)
      at org.ajax4jsf.framework.resource.ClientScript.encode(ClientScript.java:143)
      at org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.encodeResourcesArray(HeaderResourcesRendererBase.java:131)
      at org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.preEncodeBegin(HeaderResourcesRendererBase.java:117)
      at org.ajax4jsf.framework.renderer.RendererBase.encodeBegin(RendererBase.java:98)


      If I use interface without '#':
      <mapped-name>Interface</mapped-name>


      There is no exception and the application works good.

      I use Facelets 1.1.12, JSF 1.2.04_p1, ajax4jsf1.1.1(snapshot), RichFaces 3.0.1 RC2. Application Server - Glassfish 2 Beta2.

      It seems where is a problem while parsing web.xml. Can it be fixed?