Re: RMI Server in osgi bundle.

2009-10-28 Thread kamil szabo
Thank a lot, it works. And it was far simplest method to make it work... I just really don't understand why it work, as in method: ContextClassLoaderUtils.doWithClassLoader( null, // getClass().getClassLoader() new Callable() you use null parameter, wich causes usage

Re: RMI Server in osgi bundle.

2009-10-27 Thread Toni Menzel
Hi, we do this at Pax Exam all the time. Actually its important to work around the classloader when accessing the rmiregistry. Have a look at https://scm.ops4j.org/repos/ops4j/projects/pax/exam/pax-exam-container-rbc/src/main/java/org/ops4j/pax/exam/rbc/internal/Activator.java Because you have t

RMI Server in osgi bundle.

2009-10-27 Thread kamil szabo
Hey, i'm having hard times to run RMI server in an OSGI budnle... The problem is totally understandable: java.rmi.StubNotFoundException: Stub class not found: sk.procus.pax.server.remoteaccess.RemoteServer_Stub I googled and found nothing usefull - everyone just knows why it doesn't work, but no