I'm trying to run the jBoss Hello test with Embedded Tomcat using the
10/24 CVS snapshot. I'm running this in JBuilder, but that shouldn't
have any effect that I'm aware of.
I've been able to get jBoss to startup and initialize, and to deploy the
.ear file...cool!
The servlet's init() method is called. In init(), I create an instance
of org.jboss.test.hello.test.Main that I later invoke methods on in the
servlet's service() method.
I get a NoClassDefFoundError...
java.lang.NoClassDefFoundError: org/jboss/test/hello/test/Main
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:307)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at org.apache.tomcat.core.Handler.service(Handler.java:243)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
This worked fine when using the old TomcatService.
I have HelloTest.jar in WEB-INF/lib of the .war file, thinking this
would make org.jboss.test.hello.test.Main available on the classpath.
Does anyone know where I need to put the Main object to make this
work...and why?
TIA,
Rick Horowitz
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]