Re: Using XStream in OSGi Project

2013-01-24 Thread Jordi Deu-Pons
Hi Dhiego, that means that the class loader of the XStream bundle don't have access to your Project2 class loader. You need to register a composed class loader to XStream. Have a look to this code:

Re: Using XStream in OSGi Project

2013-01-24 Thread Jordi Deu-Pons
The classloader solution is a workaround? I don't think it's a workaround. Because of the OSGi class loading mechanism, there is a need to use the correct class loader when you are unserializing your class instance. I don't known if there is a better way to do this. -- a10! i fins aviat.