> -----Original Message-----
> From: Simon Nash [mailto:[email protected]]
> Sent: Wednesday, January 11, 2012 9:47 AM
> To: [email protected]
> Subject: Re: RMIBinding does not work with ContributionClassLoader
>
[snip]
> >
> I suspect that RMI is searching the thread context class loader (TCCL)
> when looking for the parameter types.  The Java launcher gives TCCL an
> initial value of the application classloader.
>
> There's an API in the Thread class to change TCCL, but doing this is
> an evil hack and I'd be hesitant to recommend it.
>
> As an experiment, you could try setting TCCL to the contribution
> classloader before making the RMI invocation and resetting it to its
> previous value when the invocation returns.  It would be interesting
> to know whether that resolves the problem.
>
>    Simon

I have put the classes that occur as parameter types on the application
class path. Although not nice from an aesthetic point of view, it does
solve the immediate problem.

-- Sebastian
IDS Scheer Consulting GmbH
Geschäftsführer/Managing Directors: Kamyar Niroumand, Ivo Totev
Sitz/Registered office: Altenkesseler Straße 17, 66115 Saarbrücken, Germany - 
Registergericht/Commercial register: Saarbrücken HRB 19681
http://www.softwareag.com

Reply via email to