1 Reply Latest reply on Aug 14, 2008 4:28 PM by Dowell Griffin

    Startup fails: SeamListener NoClassDefFoundError for ServletContext

    Dowell Griffin Newbie

      JBoss AS 4.0.5 w/EJB3
      Seam 1.2.1


      I have an app up and running with no problems.  I made some changes to produce a new version and now I get this at startup:  (I post entire stack trace below, almost wont let me do that)


      2008-08-13 19:57:50,415 ERROR org.apache.catalina.core.ContainerBase. jboss.web.localhost./traneky Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.NoClassDefFoundError: javax/servlet/ServletContext
              at org.jboss.seam.util.Resources.getResourceAsStream(Resources.java:45)
              at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:127)
              at org.jboss.seam.init.Initialization.create(Initialization.java:87)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
             


      Important points:
      1) This exact version (ear file) that fails runs under Windows and RedHat Linux.  The OS it fails under is CentOS Linux 5.
      2) javax/servlet/ServletContext seams to be in default/lib/javax.servlet.jar.  The exact same file is there in both the old successful app and the new.  I am only changing the ear file (my app).


      I don't know where to start looking.  Suggestions?


      Full stack trace:


      2008-08-13 19:57:50,415 ERROR org.apache.catalina.core.ContainerBase.jboss.web.localhost.traneky Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.NoClassDefFoundError: javax/servlet/ServletContext
              at org.jboss.seam.util.Resources.getResourceAsStream(Resources.java:45)
              at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:127)
              at org.jboss.seam.init.Initialization.create(Initialization.java:87)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
              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:597)
              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)
              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:164)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
              at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
              at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
              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.GeneratedMethodAccessor4.invoke(Unknown Source)
              at