2 Replies Latest reply on Oct 17, 2005 7:56 AM by Gavin King

    JBoss-Seam + noejb exmaple + Tomcat 5.5 (no JBoss AS)

    Andrew Apprentice

      I cannot get the noejb example running on my tomcat 5.5.

      Here is what I did:

      Change the jboss home directory to my JBoss AS 4.0.3 directory
      Go to the examples/noejb directory
      ran "ant"
      unpacked the jboss-seam-noejb.war to my tomcat/webapps directory
      copied jboss-seam/microcontainer/lib/*.jar to the WEB-INF lib directory of the example
      copied the jboss-beans.xml, jndi.properties and log4j.xml to the WEB-INF directory of the example
      Registered the example in my server.xml
      Started tomcat

      Server.xml registration:

      <Context
       path="/jboss-seam-noejb"
       reloadable="true">
       <WatchedResource>WEB-INF/web.xml</WatchedResource>
       </Context>
      


      What happens:
      3391562 ERROR [http-8080-Processor3] org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jboss-seam-noejb] - Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.IllegalArgumentException: exception invoking: startup
       at org.jboss.seam.util.Reflections.invokeAndWrap(Unknown Source)
       at org.jboss.seam.Component.callCreateMethod(Unknown Source)
       at org.jboss.seam.Component.newInstance(Unknown Source)
       at org.jboss.seam.Component.getInstance(Unknown Source)
       at org.jboss.seam.contexts.Lifecycle.startup(Unknown Source)
       at org.jboss.seam.contexts.Lifecycle.endInitialization(Unknown Source)
       at org.jboss.seam.init.Initialization.init(Unknown Source)
       at org.jboss.seam.servlet.SeamListener.contextInitialized(Unknown Source)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
       at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175)
       at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:510)
       at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.reflect.InvocationTargetException
       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.seam.util.Reflections.invoke(Unknown Source)
       ... 31 more
      Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
       at org.jboss.seam.core.Hibernate.startup(Unknown Source)
       ... 36 more
      


      I have checked more than once that dom4j.jar is in the WEB-INF/lib

      I have tried over 20 permutations of extracting jars, moving settings files into and out of classes directories, using updated jar files for common files, and still no luck. Would greatly appreciate help here.

      Thanks,
      Andrew