3 Replies Latest reply on Feb 18, 2008 8:29 AM by mars1412

    Problem with deploy web application with JSF 1.2 to JBoss 4.

    davesil

      Hi all,

      I'm trying to deploy simple web app with Sun JSF 1.2_04-b16-p02 and I've got the following exception (if I deploy to Tomcat or if I create web application in IntelliJIdea with no JSF support attached, everything works fine). Any idea to solve this ? Many thanks in advance.

      David

      Exception got:

      2007-12-10 15:28:47,421 FATAL [javax.enterprise.resource.webcontainer.jsf.application] JSF1029: The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossInjectionProvider' does not implement the InjectionProvider interface. 2007-12-10 15:28:47,421 INFO [javax.enterprise.resource.webcontainer.jsf.application] JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
      2007-12-10 15:28:47,515 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Web]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      java.lang.ClassCastException: com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration
      at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:135)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
      at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)

        • 1. Re: Problem with deploy web application with JSF 1.2 to JBos
          imyf_liang

          I have the same problem.


          Maybe the different between the JBoss implemention and Sun implemention.

          • 2. Re: Problem with deploy web application with JSF 1.2 to JBos
            pjmorce

            I have the same problem.
            I have a webapplication which use JSF. Deploying this application to tomcat 6.0 works fine.
            Deploying the same application to JBoss4.2.2 returns the error:

            ...
            12:11:11,171 ERROR [[/faces-tutorial2]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
            java.lang.ClassCastException: com.sun.faces.config.WebConfiguration
            at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:135)
            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
            at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
            ...

            any idea?

            • 3. Re: Problem with deploy web application with JSF 1.2 to JBos

              in my case, I think the problem is, that the application finds 2 different versions of jsf-impl.jar (which includes com.sun.faces.config.WebConfiguration):