2 Replies Latest reply on Jul 3, 2007 9:28 AM by Norman Richards

    Error Migrating to Seam 2.0

    Dave Everson Newbie

      Hello,

      We are in the process of migrating a 1.2 web app to Seam 2.0.
      We are deploying the app to JBoss 4.0.5GA.

      We have made the documented steps to upgrade to JSF 1.2.
      We have made the documented changes to web.xml, components.xml, faces-config.xml.
      We have updated package names in our code base.

      When we deploy the application, we get the following error:

      We have no classes in our code base that refers to the Mock classes.
      Does anyone have any suggestion as to the source of this issue?

      Thanks!

      2007-07-01 23:02:08,227 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.ui.graphicImage.graphicImageResource
      2007-07-01 23:02:08,227 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.ui.resource.webResource
      2007-07-01 23:02:08,228 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.web.redirectFilter
      2007-07-01 23:02:08,228 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.web.multipartFilter
      2007-07-01 23:02:08,229 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.web.exceptionFilter
      2007-07-01 23:02:08,238 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/athletechs]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.NoClassDefFoundError: org/jboss/seam/mock/MockApplication
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
       at java.lang.Class.newInstance0(Class.java:350)
       at java.lang.Class.newInstance(Class.java:303)
       at org.jboss.seam.Component.instantiateJavaBean(Component.java:1198)
       at org.jboss.seam.Component.instantiate(Component.java:1154)
       at org.jboss.seam.Component.newInstance(Component.java:1849)
       at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
       at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
       at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:98)
       at org.jboss.seam.init.Initialization.init(Initialization.java:508)
       at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
       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:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
      2007-07-01 23:02:08,303 ERROR [STDERR] Jul 1, 2007 11:02:08 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context 'null'
      2007-07-01 23:02:08,635 ERROR [STDERR] javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory
      2007-07-01 23:02:08,636 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:556)
      2007-07-01 23:02:08,636 ERROR [STDERR] at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
      2007-07-01 23:02:08,637 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
      2007-07-01 23:02:08,637 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.application(ConfigureListener.java:481)
      2007-07-01 23:02:08,638 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:529)
      2007-07-01 23:02:08,638 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
      2007-07-01 23:02:08,639 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
      2007-07-01 23:02:08,639 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
      2007-07-01 23:02:08,640 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
      2007-07-01 23:02:08,640 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      2007-07-01 23:02:08,640 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      2007-07-01 23:02:08,641 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      2007-07-01 23:02:08,641 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-07-01 23:02:08,642 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2007-07-01 23:02:08,642 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-07-01 23:02:08,643 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-07-01 23:02:08,643 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      2007-07-01 23:02:08,643 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      2007-07-01 23:02:08,644 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-07-01 23:02:08,644 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
      2007-07-01 23:02:08,645 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-07-01 23:02:08,645 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2007-07-01 23:02:08,645 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-07-01 23:02:08,646 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-07-01 23:02:08,646 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      2007-07-01 23:02:08,647 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      2007-07-01 23:02:08,647 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-07-01 23:02:08,648 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
      2007-07-01 23:02:08,649 ERROR [STDERR] Caused by: java.lang.reflect.InvocationTargetException
      2007-07-01 23:02:08,650 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2007-07-01 23:02:08,650 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      2007-07-01 23:02:08,651 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      2007-07-01 23:02:08,651 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      2007-07-01 23:02:08,652 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:549)
      2007-07-01 23:02:08,652 ERROR [STDERR] at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
      2007-07-01 23:02:08,652 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
      2007-07-01 23:02:08,653 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.application(ConfigureListener.java:481)
      2007-07-01 23:02:08,653 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:529)
      2007-07-01 23:02:08,654 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
      2007-07-01 23:02:08,654 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
      2007-07-01 23:02:08,655 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
      2007-07-01 23:02:08,655 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
      2007-07-01 23:02:08,656 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      2007-07-01 23:02:08,656 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      2007-07-01 23:02:08,656 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      2007-07-01 23:02:08,657 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-07-01 23:02:08,657 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2007-07-01 23:02:08,658 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-07-01 23:02:08,658 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-07-01 23:02:08,659 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      2007-07-01 23:02:08,659 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      2007-07-01 23:02:08,659 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-07-01 23:02:08,660 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
      2007-07-01 23:02:08,660 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-07-01 23:02:08,661 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2007-07-01 23:02:08,661 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-07-01 23:02:08,662 ERROR [STDERR] Caused by: java.lang.NoClassDefFoundError: org/jboss/seam/jsf/SeamApplication
      2007-07-01 23:02:08,662 ERROR [STDERR] ... 27 more
      2007-07-01 23:02:08,676 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/athletechs]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory
       at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:556)
       at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
       at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
       at com.sun.faces.config.ConfigureListener.application(ConfigureListener.java:481)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:529)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
       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)