[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] OSGi, RMI, stubs, and Javassist

Hi,

 

I am fairly new to OSGi and Equinox, and I am having some issues. I am working on a project that began as Java Classic and became OSGi when I needed to incorporate OSGi bundles into this project. Several capabilities that once worked in Java Classic now no longer work. In particular, I am trying to use RMI to enable communication between my OSGi app and several non-OSGi applications. However, when I try to create a Stub for this object at runtime, I get a ClassNotFoundException on the *_Stub class.

 

I am also experiencing problems with the ProActive library, which is a plain vanilla JAR that I manually made into an OSGi bundle. ProActive uses Javassist, a bytecode manipulator, to generate stub classes of its own. Calls within Javassist throw NoClassDefFoundException because the Javassist code uses Class.forName() which does not work properly under OSGi.

 

Has anyone managed to get RMI and stub generation working under RMI? What about Javassist? I can provide more information upon request.

 

Thanks,

Steve

 
 
 
 
THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records.