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 to do that in a context (before doing X and after doing X)
the meat is hidden in a helper:
https://scm.ops4j.org/repos/ops4j/projects/pax/swissbox/pax-swissbox-core/src/main/java/org/ops4j/pax/swissbox/core/ContextClassLoaderUtils.java

hth,
Toni



On Tue, Oct 27, 2009 at 10:39 AM, kamil szabo <[email protected]> wrote:

> 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 none knows solution, workaround or alternative
> technology. I'm in little time shortage so please if you know how to
> start server in felix bundle, or what else can i do, please help...
>
> And please be as specific as it gets...
>
> Kamil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Toni Menzel
Independent Software Developer
Professional Profile: http://okidokiteam.com
[email protected]
http://www.ops4j.org     - New Energy for OSS Communities - Open
Participation Software.

Reply via email to