ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | oscar List | March 2005 Index

<--  Date Index  --> <--  Thread Index  -->

RE: [oscar] Re:need info - servlet, RMI, SOAP...


I have tried everything I could think of, and either ended with "class not 
found" or "class cast exception". I was able to do rmi calls but only without 
the rmi class loading : putting the stubs into bundles and loading the stub 
classes through the osgi class loader.
Regards,
Anne

-----Message d'origine-----
De : Manuel Santillan Palencia [mailto:santillan@xxxxxxxxxx] 
Envoyé : lundi 14 mars 2005 19:11
À : GERODOLLE Anne RD-MAPS-GRE; oscarlist
Objet : RE: [oscar] Re:need info - servlet, RMI, SOAP...

have you tried not to have that classes in the bundle, so that only the 
codebase's ones are used?
El lun, 14-03-2005 a las 19:00 +0100, GERODOLLE Anne RD-MAPS-GRE
escribió:
> Is it so easy if you have both rmi client and rmi server running as osgi 
> bundles ?
> 
> What I have experienced is as follows :
> 
> Say the remote interface is called Hello, when downloading the stub, the 
> Hello interface is downloaded from the server codebase, and it is not the 
> same class as the one loaded through the osgi classloader and already known 
> by the client. This results in a ClassCastException : HelloImpl_Stub cannot 
> be casted as Hello !
> 
> Anne
> 
> -----Message d'origine-----
> De : Manuel Santillan Palencia [mailto:santillan@xxxxxxxxxx] Envoyé : 
> lundi 14 mars 2005 16:58 À : oscarlist Objet : [oscar] Re:need info - 
> servlet, RMI, SOAP...
> 
> If you are using RMI, then you need to define the property 
> java.rmi.server.codebase=URL which contains the clases that are not 
> standard, in OSCAR. To do this, you can either use java 
> -Djava.rmi.server.codebase at start up, or else use the 
> System.setProperty(propName, propValue) at runtime. 
> 
> Hope it helps....
> 
> Regards,
> 
> Manuel
> 




<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.