Hi Abdellah,

Abdellah MERZOUK wrote:

> Thank you Jörg.
> 
> I tried the two solutions, but unfortunately didn't work
> 
> I am doing some tests to see how annotation processing will be handled
> when the "CustomerDTO" is within the same bundle. The surprise is it
> succeeded only when I use :
>   stream = new XStream();
>             stream.processAnnotations(CustomerDTO.class);
> It always failed when I set autodetectAnnotations to true (and remove
> "processAnnotations(...)") even when I change Xstream's ClassLoader...
>
> However I couldn't find a solution when I put CustomerDTO in a separated
> bundle

Sorry, but just as I said before, I don't have any experience with OSGi 
myself. I know that other users seem to have found solutions. All I can say 
ism, that it fails because XStream does not use the proper class loaders for 
the individual classes.

- Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to