2 Replies Latest reply on Apr 16, 2007 5:20 PM by ws dev

    JSF RI libraries in WEB-INF/lib not recognized?

    Maik Hassel Newbie


      In both my JBoss 4.0.3 and 4.0.5 installations I have to switch from MyFaces to Suns-RI

      If I just replace the libraries in JSF-LIBS with SUN's libs, everything deploys fine! For various reasons, i have to package the libs within my jar file.

      So I erase JBoss' JSF_LIBS folder and package all those jars into the WEB-INF/LIB folder of my war file.

      When deploying, I get the error below. I checked, the jsf-jar containing phase-listener is in my WEB-INF folder. I also removed all the work and tmp folders after erasing my jsf-libs and before starting the server.

      Any help is appreciated....

      2007-02-15 15:28:08,194 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/poremoteweb]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      java.lang.NoClassDefFoundError: javax/faces/event/PhaseListener
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
       at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:633)
       at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:613)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:162)
       at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:263)
       at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:175)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
       at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:594)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
       at com.sun.faces.util.Util.loadClass(Util.java:406)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:710)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
       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)
       at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
       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)
       at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280)
       at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:88)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
       at org.jboss.web.WebModule.startModule(WebModule.java:68)
       at org.jboss.web.WebModule.startService(WebModule.java:46)