Hi,
you are right: I copied the RMI_jonas.jar onto the client and added it to the
classpath. Now it works!!!
Muchas gracias,
-- Till.
Rich Johns wrote:
> Are you using rmi registry? I think it's the registry that can't
> unmarshall the stub back to the client side. The reason it can't
> unmarshall it is because it can't find the classes involved.
>
> If you are using the rmi registry are you using the script 'registry'
> in the bin directory of the jonas bin distribution?
>
> Till Gartner wrote:
>
> > Hi John,
> >
> > thank you for your quick response!!
> > Do you think the problem is on the client or the server side? My client & my
> > server are 2 different PCs, the server runs on Linux, the client on Win98.
> >
> > On the server the classpath also points on the directory with the classes I wrote
> > and the home_stubs and skeletons generated by GenIC. I also tries to copy them on
> > the client and put them in the classpath there, but nothing changed.
> >
> > Thank you,
> > -- Till.
> >
> > Rich Johns wrote:
> >
> > > It looks to me like your rmi registry classpath can't find the
> > > the class file for the stub when deserializing it. IOW a lookup
> > > request has been made to the registry, it found the object,
> > > namely the home stub of your bean, but the rmi registry
> > > doesn't have access to the classes to deserialize it, thus the unmarshalling
> > > error. Make sure the classpath
> > > sees $JONAS_ROOT/examples/classes.
> > >
> > > hope this helps
> > >
> > > Till Gartner wrote:
> > >
> > > > Hi all,
> > > >
> > > > I set up a jonas server (on a linux box) and a client (on a win98 box).
> > > > When running my mini-client-program, the lookup fails.
> > > > So far I checked:
> > > > - The bean has been loaded (confirmed by JonasAdmin list & jndi)
> > > > - The stubs & skeletons have been generated (they hang around in a
> > > > directory on the server - that is in the classpath)
> > > >
> > > > That's what the stack looks like:
> > > >
> > > > C:\Projekte\Classes\MyContacts>java vossigroup.Contacts.MyContactsClient
> > > > javax.naming.CommunicationException. Root exception is
> > > > java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
> > > > java.lang.ClassNotFoundException:
> > > > vossigroup.Contacts.JOnASMyContactsBeanMyContactsHome_Stub
> > > > java.lang.ClassNotFoundException:
> > > > vossigroup.Contacts.JOnASMyContactsBeanMyContactsHome_Stub
> > > > at
> > > > java.io.ObjectInputStream.inputObject(ObjectInputStream.java:981)
> > > > at
> > > > java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
> > > > at
> > > > java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
> > > > at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> > > > at
> > > > com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java
> > > > :95)
> > > > at
> > > > com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java
> > > > :105)
> > > > at javax.naming.InitialContext.lookup(InitialContext.java:354)
> > > > at
> > > > vossigroup.Contacts.MyContactsClient.main(MyContactsClient.java:34)
> > > >
> > > > Anyone out there that has a clue how to move on from here?
> > > >
> > > > Thank you for any tip,
> > > > -- Till.
> > > >
> > > > --
> > > > Sent through GMX FreeMail - http://www.gmx.net
> > > >
> > > > ----
> > > > 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".