2 Replies Latest reply on Jun 20, 2005 5:02 PM by Sebastian Weisser

    No success with jboss 4.0.2 and MyFaces

    Sebastian Weisser Newbie

      I tried for 2 days to configure my own my tutorial application on Jboss 4.0.2 and getting the same error everytime I deploy:


      2005-06-20 16:40:30,562 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/mediaCommander]] Error configuring application listener of class com.sun.faces.config.ConfigureListener
      
      java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
      
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      
       at java.security.AccessController.doPrivileged(Native Method)
      
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3617)
      
       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:585)
      
       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:585)
      
       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:274)
      
       at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:91)
      
       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)
      
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
      
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
      
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
       at java.lang.reflect.Method.invoke(Method.java:585)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
      
       at $Proxy0.start(Unknown Source)
      
       at org.jboss.system.ServiceController.start(ServiceController.java:418)
      
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
       at java.lang.reflect.Method.invoke(Method.java:585)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      
       at $Proxy28.start(Unknown Source)
      
       at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:394)
      
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
      
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      
       at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
       at java.lang.reflect.Method.invoke(Method.java:585)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      
       at $Proxy8.deploy(Unknown Source)
      
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
      
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
      
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
      
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
      
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
      
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
      
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
       at java.lang.reflect.Method.invoke(Method.java:585)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
      
       at $Proxy0.start(Unknown Source)
      
       at org.jboss.system.ServiceController.start(ServiceController.java:418)
      
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
       at java.lang.reflect.Method.invoke(Method.java:585)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      
       at $Proxy4.start(Unknown Source)
      
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
      
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
      
       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:585)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      
       at $Proxy5.deploy(Unknown Source)
      
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
      
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
      
       at org.jboss.Main.boot(Main.java:195)
      
       at org.jboss.Main$1.run(Main.java:463)
      
       at java.lang.Thread.run(Thread.java:595)
      


      I searched the lib path of the jboss for any jars which are related to the RI but found nothing and then I changed UseJBossWebLoader to "true" but that haven't changed anything.

      My web.xml looks like this:
      <?xml version="1.0" encoding="UTF-8"?>
      
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
       <distributable/>
      
       <context-param>
      
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>client</param-value>
       </context-param>
       <context-param>
      
       <param-name>javax.faces.application.CONFIG_FILES</param-name>
       <param-value>/WEB-INF/faces-config.xml</param-value>
       </context-param>
      
       <listener>
       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
      </listener>
      
       <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
      </servlet>
      
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      
       <session-config>
       <session-timeout>10</session-timeout>
       </session-config>
      
      </web-app>
      
      


      The following are in the WEB-INF/lib folder:

      commons-beanutils-1.6.1.jar
      myfaces.jar
      myfaces-impl.jar
      commons-logging.jar
      commons-validator.jar
      commons-collections-3.0.jar
      commons-digester-1.5.jar
      commons-el.jar


      These are from the 1.0.9 release of MyFaces.
      I also have already deleted the temp folder of the jboss.
      Perhaps somebody has a clue what is going wrong with my deployment.

      Regards
      Sebi