2 Replies Latest reply on Jan 27, 2009 3:50 PM by Coen Damen

    Error running Seam in embedded JBoss on Tomcat

    Coen Damen Novice


      I am running Seam in Eclipse (Seam 2.1.0.SP1). I followed the instruction in the Seam documentation to get it running in Tomcat (Embedded JBoss). I have currently Tomcat 6.0.18.

      I made a reference in to the ejb project in the war project and added the war project (with the linked ejb project) to the launch configuration of Tomcat.

      When I startup the Tomcat server from within Eclipse I get the following error:

      Dec 4, 2008 12:32:20 PM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      Dec 4, 2008 12:32:20 PM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
      Dec 4, 2008 12:32:20 PM org.apache.catalina.loader.WebappLoader start
      INFO: Dual registration of jndi stream handler: factory already defined
      Dec 4, 2008 12:32:22 PM org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Error configuring application listener of class org.jboss.seam.servlet.SeamListener
      java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamListener
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
           at org.apache.catalina.core.StandardService.start(StandardService.java:516)
           at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
           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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Dec 4, 2008 12:32:22 PM org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Skipped installing application listeners due to previous error(s)
      Dec 4, 2008 12:32:22 PM org.apache.catalina.core.StandardContext start
      SEVERE: Error listenerStart
      Dec 4, 2008 12:32:22 PM org.apache.catalina.core.StandardContext start
      SEVERE: Context [/umbrella-war] startup failed due to previous errors
      Dec 4, 2008 12:32:23 PM org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      Dec 4, 2008 12:32:23 PM org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /
      Dec 4, 2008 12:32:23 PM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/31  config=null
      Dec 4, 2008 12:32:23 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 10979 ms

      Am i missing something here? If I build an Ear and deploy it to a Jboss server, all is fine.

      Thanks for your help,