Hello Stefan,

On Apr 9, 2008, at 13:05 , bitrain _ wrote:

We tried setting the classloader in our own thread:

       final ClassLoader cl = context.getClass().getClassLoader();
       Thread thread = new Thread() {
           public void run() {
               Thread.currentThread().setContextClassLoader(cl);

               PrifesPrinterService serv = new PrifesPrinterService();
               PrifesPrinter pp = serv.getPrifesPrinterPort();
               System.out.println(pp.sendData(1, 1, "Test"));
           }
       };
       thread.start();

The context is the bundlecontext from the bundle which contains the
classes. We also tried getting the classloader from the master bundle,
but they all produce the same runtime modeler error.

Hard to tell from just your messages what is going on exactly. The best advice I can give you is to use the debugger to figure out exactly what's going on inside that code. Try and instrument your classloaders if necessary.

Greetings, Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to