0 Replies Latest reply on Oct 20, 2008 4:40 PM by oyesiji77

    Deployment on JBoss 4.2.3 Fails when using Different JSF Implementation

    oyesiji77

      I am using Jboss 4.2.3 and jboss-seam-2.0.2.SP1, whenever i deploy my application to Jboss, it works properly but whenever i decide to change the JSF from Jboss to one contained in my application by adding this to web.xml



      <context-param>
           <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
           <param-value>true</param-value>
      </context-param>



      I always get this exception



      10:39:05,703 ERROR [[/powell]] Exception sending context destroyed event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      java.lang.NullPointerException
           at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:234)
           at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3895)
           at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4527)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4391)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)




      and



      0:39:10,828 ERROR [STDERR] Caused by: java.lang.InstantiationException: org.jboss.seam.jsf.SeamApplicationFactory
      10:39:10,828 ERROR [STDERR]      at java.lang.Class.newInstance0(Class.java:340)
      10:39:10,828 ERROR [STDERR]      at java.lang.Class.newInstance(Class.java:308)
      10:39:10,828 ERROR [STDERR]      at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:567)
      10:39:10,828 ERROR [STDERR]      ... 146 more
      10:39:10,843 ERROR [[/powell]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory
           at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:569)
           at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
           at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)