Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Stuck with Moxy getting started example(How to setup project when using MOXy in an OSGI bundle?)
Stuck with Moxy getting started example [message #693246] Wed, 06 July 2011 02:13 Go to next message
Michael Gerzabek is currently offline Michael Gerzabek
Messages: 16
Registered: June 2011
Junior Member
Hi,

I try to setup the wiki.eclipse.org/EclipseLink/Examples/MOXy/GettingStarted as an OSGI bundle.

MANIFEST.MF:
Require-Bundle: javax.xml.bind;bundle-version="2.2.0",
org.eclipse.persistence.moxy;bundle-version="2.1.3"

Launch configuration:
org.eclipse.persistence.core startlevel 2 auto-start true
my bundle startlevel 3 auto-start true

When running equinox I get the exception:

javax.xml.bind.JAXBException
- with linked exception:
[java.lang.ClassNotFoundException: org.eclipse.persistence.jaxb.JAXBContextFactory]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:186)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:330)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)

What do I miss here? How do I have to setup my bundle project when using MOXy in an OSGI bundle?

Regards,
Michael
Re: Stuck with Moxy getting started example [message #693556 is a reply to message #693246] Wed, 06 July 2011 14:32 Go to previous message
Michael Gerzabek is currently offline Michael Gerzabek
Messages: 16
Registered: June 2011
Junior Member
Somehow this thread got posted twice. Conversation continued here: http://www.eclipse.org/forums/index.php/m/693554/#msg_693554
Previous Topic:Using @PrivateOwned
Next Topic:Circular references with identity id - what's the right way?
Goto Forum:
  


Current Time: Sat Apr 19 02:59:57 EDT 2014

Powered by FUDForum. Page generated in 0.03685 seconds