Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Servlet -> EJB Session Bean Communication Problem

0 views
Skip to first unread message

Raymond Lee

unread,
May 2, 2001, 12:13:28 PM5/2/01
to
Hi all,
My servlet has communications problem with stateless Session Bean. Since I
found out created a web component in deploytool for servlet didn't work, I
download tomcat from the web, and don't use the one embedded in j2ee app.
server.

However, it throw the exception when the servlet try to connect to Home
interface as the follows:

GradeBookSessionHome home =
(GradeBookSessionHome)PortableRemoteObject.narrow(objref,
GradeBookSessionHome.class);


java.lang.NoClassDefFoundError: javax/ejb/EJBHome
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
org.apache.tomcat.loader.AdaptiveClassLoader12.doDefineClass(Adaptive
ClassLoader12.java:93)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:509)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at GradeBookServlet.class$(GradeBookServlet.java:17)
at GradeBookServlet.init(GradeBookServlet.java:59)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

Anyone knows why? I really appreciate for your help.

Thanks


Robert Klemme

unread,
May 4, 2001, 4:58:54 AM5/4/01
to

add the jar that contains the missing class to the lib/ext directory in
the jdk used to run tomcat.

robert

Raymond Lee schrieb:

--
Robert Klemme
Software Engineer
-------------------------------------------------------------
myview technologies GmbH & Co. KG
Riemekestraße 160 ~ D-33106 Paderborn ~ Germany
E-Mail: mailto:robert...@myview.de
Telefon: +49/5251/69090-321 ~ Fax: +49/5251/69090-399
-------------------------------------------------------------

0 new messages