It's probably due to your jndi configuration.
First, you have to check whether you started the naming service (registry)
or not.
Second, all others executables you run have to lookup for the right jndi
service. For that you have to put the directory where the jndi.properties
(the same the registry uses) in the classpath.
Usually we put this directory at the beginning of the classpath, so you
avoid possible conflicts.

Hope it helps

Régis LE BRETTEVILLOIS
LIBeLIS, Liberty for Large IS
Directeur Technique
+33 (0)6 14 36 54 88



> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Ghielli Patrick
> Envoyé : jeudi 12 avril 2001 11:12
> À : 'Jonas'
> Objet : ClassNotFoundException
>
>
> Hi,
>
> we are new at EJB and we are trying to create our first beans. We
> have some
> problems registering our self-created beans.
> On starting the EJB server in the directory containing the xml file or on
> adding the bean with JonasAdmin(on a unix environment), I get the
> following
> exception. I think it is some setting problem but I can't figure
> out which.
> Two other developpers experienced the same problem but it dissapeared
> miraculously, they don't know what they did that made it work. It is
> probably something trivial for more experienced users. So, if anyone can
> help us out.
>
> InvocationTargetException : java.rmi.RemoteException: failed to register
> bean to jndi; nested exception is:
>         javax.naming.CommunicationException [Root exception is
> java.rmi.ServerException: RemoteException occurred in server
> thread; nested
> exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested
> exception is:
>         java.lang.ClassNotFoundException:
> slv.UserRegistration.JOnASUserHome_Stub]
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to