4 Replies Latest reply on Nov 16, 2007 9:18 AM by Matt Reed

    Seam 2 migration problem

    Caye Newbie

      Hi, first of all, thanks for the release of the Seam 2.0.0.CR1, its nice to see that you are working hard in new releases :)

      I tried to migrate my webapp from the beta version of seam 2.0.0 to this one, and i'm getting this error all the time:

      ERROR [[/]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      java.lang.NoClassDefFoundError: org/ajax4jsf/application/ViewHandlerWrapper
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)
       at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
       at org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:139)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
       at java.lang.Class.getConstructor0(Class.java:2671)
       at java.lang.Class.newInstance0(Class.java:321)
       at java.lang.Class.newInstance(Class.java:303)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:825)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:486)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
       at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
       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:585)
       at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
       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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor221.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:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       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:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy45.start(Unknown Source)
       at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
       at sun.reflect.GeneratedMethodAccessor223.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:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy46.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor18.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:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)


      It could be nice if you could suggest why i'm getting this all the time (i swear that i have tried all the ways possible before ask this in the forum).

      Thanks in advance!

        • 1. Re: Seam 2 migration problem
          Joshua Jackson Master

          1. Did you generate your apps using seam-gen? cek your web.xml and faces-config.xml, there are updates regarding that too.

          2. Did you have your richfaces-3.1.1-SNAPSHOT in your classpath already?

          • 2. Re: Seam 2 migration problem
            Caye Newbie

            1. Yes, but it was long ago, now there are quite many more jars than the just created with seam-gen. I read all the cinfig info for the web.xml and faces-config that comes in the migration file (in seam), and it seems like i changed all those.

            2.richfaces-3.1.1-SNAPSHOT is not anymore in the classpath since now the jars for richfaces are differentes and cannot be together (i also erased the ajax4jsf jar)

            Some more ideas?

            PS(thanks anyway javafreak! ;))

            • 3. Re: Seam 2 migration problem
              Pete Muir Master

              What is the layout of your deployed ear and war?

              • 4. Re: Seam 2 migration problem
                Matt Reed Newbie

                I am having this saem problem I believe I have updated everything.

                EAR:
                
                \antlr-runtime.jar
                \drools-compiler.jar
                \drools-core.jar
                \jboss-el.jar
                \jboss-seam.jar
                \jbpm-jpdl.jar
                \mvel14.jar
                \pm-5.1.jar
                \richfaces-api.jar
                \security.drl
                \sm-4.1.jar
                \META-INF\application.xml
                \META-INF\jboss-app.xml
                
                
                WAR:
                
                \error.xhtml
                \help.html
                \home.xhtml
                \index.html
                \main.xhtml
                \ReportRoleList.page.xml
                \ReportRoleList.xhtml
                \Series.page.xml
                \Series.xhtml
                \SeriesDelete.page.xml
                \SeriesDelete.xhtml
                \SeriesEdit.page.xml
                \SeriesEdit.xhtml
                \SeriesList.page.xml
                \SeriesList.xhtml
                \img\aro_eb.gif
                \img\bg.gif
                \img\bgFooter.gif
                \img\bgHeader.gif
                \img\bgHeader.jpg
                \img\bgHeaderEn.gif
                \img\bgLogin.gif
                \img\bgLoginHover.gif
                \img\bgLoginShell.jpg
                \img\bgSection.gif
                \img\cal-next.png
                \img\cal-prev.png
                \img\dtpick.gif
                \img\header_stripe.jpg
                \img\spacer.gif
                \img\Thumbs.db
                \layout\display.xhtml
                \layout\edit.xhtml
                \layout\menu.xhtml
                \layout\template.xhtml
                \stylesheet\reset-fonts-grids.css
                \stylesheet\styles.css
                \stylesheet\styles.css_old
                \stylesheet\theme.css
                \WEB-INF\.faces-config.xml.faceside
                \WEB-INF\components.xml
                \WEB-INF\faces-config.xml
                \WEB-INF\jboss-web.xml
                \WEB-INF\pages.xml
                \WEB-INF\web.xml
                \WEB-INF\classes\messages_en.properties
                \WEB-INF\lib\commons-beanutils.jar
                \WEB-INF\lib\commons-digester.jar
                \WEB-INF\lib\jboss-seam-debug.jar
                \WEB-INF\lib\jboss-seam-ioc.jar
                \WEB-INF\lib\jboss-seam-mail.jar
                \WEB-INF\lib\jboss-seam-pdf.jar
                \WEB-INF\lib\jboss-seam-remoting.jar
                \WEB-INF\lib\jboss-seam-ui.jar
                \WEB-INF\lib\jsf-facelets.jar
                \WEB-INF\lib\richfaces-impl.jar
                \WEB-INF\lib\richfaces-ui.jar
                


                If anyone has suggestions please let me know.