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.

    David Silar Newbie

      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)