Hello:
 
Am currently trying to get my servlet client to communicate with my bean. I have created my ejb-jar.xml and bundled it into /deploy. It deploys just fine. I also have a servlet client which is not bundled as part of the overall application. I have another message to the list group about problems executing .ear using servlet clients. So I'm leaving the servlet as a stand alone. I start the JBoss server (without tomcat) just fine and my bean is properly deployed. If I start Tomcat separately (I have apache/tomcat on my server as well as the JBoss/Tomcat combo-here I've started this version of tomcat, not the version integrated with JBoss) and execute my servlet(which is in the /classes dir in tomcat), I can call my bean just fine. It's not to fast, however, because my beans are running in a different container.
 
I then start the JBoss/Tomcat integrated version and place my servlet in that tomcat's /classes dir. Again the bean deploys correctly. When I call the servlet, it executes correctly but fails to make the call to the bean - giving me the following errors:
 
    In my browser I get:
 
     Error: 500
Location: /servlet/SecondJBoss.JBossServlet1
Internal Servlet Error:
 
java.lang.NoClassDefFoundError: SecondJBoss/JBoss
 at SecondJBoss.JBossServlet1.doPost(JBossServlet1.java:90)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Unknown Source)
 
and the server errors reads as follows:
 
[EmbeddedTomcat] javax.naming.CommunicationException [Root exception is java.lan
g.ClassNotFoundException: SecondJBoss.JBossHome]
[EmbeddedTomcat] Account no: 1
2001-06-03 01:16:36 - Ctx(  ): Exception in: R(  + /servlet/SecondJBoss.JBossSer
vlet1 + null) - java.lang.NoClassDefFoundError: SecondJBoss/JBoss
        at SecondJBoss.JBossServlet1.doPost(JBossServlet1.java:90)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
04)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
        at java.lang.Thread.run(Unknown Source)
Why doesn't this run in the integrated version  when the identical software runs fine from the separate Tomcat version?
 
 
 
Bernard Lavallee

Reply via email to