Thank a lot for your help I tried following the same solution discussed here: http://old.nabble.com/AW%3A-Re%3A-AW%3A-Re%3A-AW%3A-Re%3A-Xstream-Annotations-problem-p29406523.html by creating another bundle that includes XStream jars and export all needed packages (com.thoughtworks.xstream...) unfortunately didn't success... I am wondering what I am doing wrong!
Thanks anyway Abdellah 2012/8/3 Jörg Schaible <[email protected]> > 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 > > >
