EclipseLink weaving fragment require-bundle version [message #783470] |
Wed, 25 January 2012 19:20 |
|
Hi,
I'm trying to make eclipselink working in an osgi environment (not eclipse pde environment, but just standalone equinox).
But when I look at the org.eclipse.persistence.jpa.equinox.weaving bundle, I see that the fragment-Host is defined as:
Fragment-Host: org.eclipse.osgi;extension:=framework;bundle-version="3.4.0"
I'm running this combo on eclipse 3.7.1.XXXXX, resulting that the fragment can't start.
How can I find a workaround (I prefer not to override manifest, neither overriding all the manifest that imports org.eclipse.osgi)?
Regards,
Charlie
|
|
|
|
Re: EclipseLink weaving fragment require-bundle version [message #783710 is a reply to message #783483] |
Thu, 26 January 2012 09:26 |
|
After reading the doc (one time again), I have some questions:
My persistence.xml, my model classes and my EntityManager are defined in 3 different bundles (persistence.xml is a fragment of the entitymanager module).
Wich module must have the "Require-Bundle: org.eclipse.persistence.jpa;bundle-version="1.1.2"" Manifest entry?
Does the eclipselink start order must absolutely be
javax.persistence@4:start, \
org.eclipse.persistence.jpa@5:start, \
org.eclipse.persistence.jpa.osgi, \
org.eclipse.persistence.antlr, \
org.eclipse.persistence.asm, \
org.eclipse.persistence.core, \
org.eclipse.persistence.jpa.equinox, \
hello.jpa@start, \
What if my hello bundle starts before the jpa.equinox one (or asm before antlr...), I have no control on my bundle start order but start level (running with Maven/Pax)?
Is the org.eclipse.update.configurator mandatory?
I did all of this without configurator, but my weaving fragment is not resolved (I'll try tonight with it).
My project also contains dependencies with equinox aspects, equinox hook and spring-weaving adaptor, can it be the source of the problem?
May I add the weaving fragment to the boot classpath (http://team.ops4j.org/wiki/display/paxrunner/Manage+boot+classpath#Managebootclasspath-bcp), bootdelegation or osgi-extra-package (there is an issue with pax and framework extension wich force this: https://github.com/nilshartmann/aries-spy-fly/blob/master/spi-fly-itests-old/src/test/java/org/apache/aries/spifly/CustomizerWithAopTest.java)?
Best regards, Charlie
|
|
|
|
|
Re: EclipseLink weaving fragment require-bundle version [message #787284 is a reply to message #783823] |
Tue, 31 January 2012 11:54 |
|
Hi Shaun,
Thank you so much for your comment, it's the first that convince me to move to Gemini JPA.
I'll try to mix gemini JPA and spring emf/jta resolution (I'm an Atomikos community contributor, and the purpose of this project is to provide a sample).
I'll keep you informed about the feasibility (prorata my knowledge on the subject).
Regards, Charlie
|
|
|
Re: EclipseLink weaving fragment require-bundle version [message #787286 is a reply to message #783823] |
Tue, 31 January 2012 11:54 |
|
Hi Shaun,
Thank you so much for your comment, it's the first that convince me to move to Gemini JPA.
I'll try to mix gemini JPA and spring emf/jta resolution (I'm an Atomikos community contributor, and the purpose of this project is to provide a sample).
I'll keep you informed about the feasibility (prorata my knowledge on the subject).
Regards, Charlie
|
|
|
Powered by
FUDForum. Page generated in 0.25244 seconds