Mike check this link http://www.dynamicjava.org/projects/jsr-api/jaxb-osgi

Maybe it could be useful.


On Tue, May 4, 2010 at 8:54 AM, mjk <[email protected]> wrote:
> Hey Martin,
>
> Thanks for the reply.
>
> I checked the imports in the Felix console, and sure enough there were no
> imports for the annotations.  However, I still get the same Exception.
>
> --Mike
>
> On Tue, May 4, 2010 at 12:54 AM, Martin Thelian <[email protected]>wrote:
>
>> Hi!
>>
>> This sounds that you have not defined the Import-Package for
>> javax.xml.bind.annotation and javax.xml.bind.annotation.adapters.
>>
>> Regards,
>> Martin
>>
>>
>> mjk schrieb:
>>
>>  I am new to OSGi development, and have been trying to figure out how to
>>> make
>>> this work:
>>>
>>> I have JAXB classes generated from an XSD using Eclipse XJC.  I verified
>>> that everything (class usage, marchalling and un-marshalling) works in a
>>> non-OSGi scenario.  They do.
>>>
>>> When deployed within Apache Felix (Communique' 5.3) - when I marshal the
>>> class, I get the Exception:
>>>
>>> Caused by: com.sun.istack.internal.SAXException2: unable to marshal type
>>> "com.nielsen.rankings.bind.RankingData" as an element because it is
>>> missing
>>> an @XmlRootElement annotation
>>>
>>> Class "com.nielsen.rankings.bind.RankingData" DOES in fact have that
>>> annotation, and like I said, it functions OK within a non-OSGi scenario.
>>>
>>> Can anyone help me out?  I am at my wits end, and this is completely
>>> blocking any further progress on a high visibility project.
>>>
>>> Thanks.
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>



-- 
Daniel Caro Peñaloza
Estudiante de Ingeniería Civil Telemática

Celular: (08) - 2613696

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to