I have
tried to generate your error and I've discovered this:
- When I have the jar file in my
CLASSPATH and I run the EJB client, ClassNoDefFoundError
occurs
- But if I have NOT the jar file
in my CLASPPATH and the Home/Remote classes in my CLASSPATH (for example if I
decompress them), there is no problem.
I
think it happens because there is a manifest in the jar file. You
can try this: with your jar file (with manifest) write "java
section.BannerHome", it doesn't go; build another jar file with the same
classes you have used while deploying but without the manifest and put it in
your CLASSPATH.... write "java section.BannerHome" and it
goes.
If
yout think, it's logical: your clients must not access to jar EJB file; it
only must be known by the server. Clients only have to know the
interfaces.
I hope
your problem will be solved. Write me if it won't, please.
Luis F. Canals
Samaniego
CEDETEL
Parque Tecnol�gico de Boecillo
Edificio Centro,
Parcela 109
E-47151 Boecillo (Valladolid)
Tfno: +34 983 54 65
02
Fax: +34 983 54 66 96
Hi,
There exists a jar file containing all
necessary files for a bean, ser, home, stub etc. It is deployed to the WLS,
referenced in weblogic.properties file. Also CLASSPATH includes the path of
this jar file. And no error occurs while deploying, successfully deploys
it.
The error is at the time while we are running
the client. It cannot finds HOME:
Exception in thread "main"
java.lang.NoClassDefFoundError:
section.BannerHome
at
section.ClientBannerSmallEx.class$(ClientBannerSmallEx.java:29)
at
section.ClientBannerSmallEx.main(ClientBannerSmallEx.java:42)
But connects to server and finds JNDI
name...
----- Original Message -----
Sent: Thursday, June 15, 2000 1:54
PM
Subject: Re: NOCLASSDEFFOUNDERROR
"Home"
Hello,
I think that you don't have your Interface Home
in your client CLASSPATH.
Luis F. Canals Samaniego
CEDETEL
-----Mensaje original-----
De: A mailing list
for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]En
nombre de Zafer BAYRAKTAR
Enviado el: jueves 15 de junio de
2000 11:03
Para: [EMAIL PROTECTED]
Asunto:
NOCLASSDEFFOUNDERROR "Home"
Hi,
I have a problem of
connecting to an entity bean. It doesn't give an error while deploying
it, successfully deploys.
But error arises when we try to call
tis bean. It finds JNDI name on the server but couldn't find class
" XXXX..Home".
It throws just this error. !!!
???