Re: JAXB conflict when using OSGi Bundle in NetBeans Platform app (Netigso)

Boris Heithecker <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAL465RE6OFs=_yCsGcTar8FvLHb10HaN9pweBv_Hyju_pMCMhA@mail.gmail.com>
Apache Felix framework won't by default load classes from the javax.*
packages. For me it works with the following platform startup switch in
platform.config

-J-Dorg.osgi.framework.bootdelegation=javax.xml,javax.xml.*

Good luck!
Boris
Hello, I have been struggling with this error for an entire day and I just
couldn't find any posts out there. This is the error I am getting:


Code:
org.netbeans.InvalidException: Netigso: my-module-path: Cannot start
com.my-bundle state remains INSTALLED after start()



This is my scenario:
[list=]
I have a NetBeans Platform v7.4 app, that uses an OSGi Module.
Inside of the OSGi module I have a simple POJO API
I need to add JAXB annotations "import javax.xml.bind.annotation" to the
POJOs because in another non-OSGi module I am saving/reading the model from
an XML file
The OSGi module import works, as long as I do not add the @XML annotations.
The moment I add the annotations, I get the error above.

[/list]

Can somebody help me figure out how do I need to handle the
"javax.xml.bind.annotation" import inside of the OSGi bundle? What is
causing this error?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.