Hi Tom,
we dont use Gemini, only JPA and eclipseLink. And the problem occurred since
using 2.4.2 nightly / 2.5.0 nightly. First try with 2.4.1 in osgi context works
fine and 2.5.0 in non osgi context also works fine.
So for my understanding: if i use eclipseLink 2.4.2+ with composite pu's in a
osgi context i must use gemini on top of eclipselink?
2013/3/12 Alexander Kley <
alexander.kley@xxxxxxxxx
<mailto:alexander.kley@gmail.com>>
also tryed but without success!
It seems that there is a problem on the base.
also set in manifest:
Meta-Persistence: META-INF/persistence.xml
JPA-PersistenceUnits: composite-pu
2013/3/12 Andrei Ilitchev <
andrei.ilitchev@xxxxxxxxxx
<mailto:andrei.ilitchev@oracle.com>>
Try adding:
<provider>
org.eclipse.persistence.jpa.__PersistenceProvider
</provider>
On 3/12/2013 10:43 AM, Alexander Kley wrote:
Hi Andrei,
my fault, i forget the <property
name="eclipselink.composite-__unit.member" value="true"/> in the
<mailto:andrei.ilitchev@__oracle.com
http://wiki.eclipse.org/____EclipseLink/UserGuide/JPA/____Advanced_JPA_Development/____Composite_Persistence_Units
<http://wiki.eclipse.org/__EclipseLink/UserGuide/JPA/__Advanced_JPA_Development/__Composite_Persistence_Units>
<jar-file>member.jar</jar-____file>
The member.jar is not a bundle, only a plain jar file with an
META-INF
dir and it is located in the root dir of the bundle jar.
Structure of bundle:
member.jar (this is the jar where the member pu
persistence.xml is
stored in /META-INF)
/META-INF/persistence.xml
...packages...
During start the bundle, the activator class have problem. The
EMFactory
can't find the persistence provider!?
"javax.persistence.____PersistenceException: No Persistence
provider for
EntityManager named composite-pu"
Have anyone ideas why i've got th exception during bundle
start?
Best regards
Alex
My PU:
<persistence-unit name=" composite-pu"
transaction-type="RESOURCE_____LOCAL">
<jar-file>member.jar</jar-____file>
<properties>
<property name="eclipselink.ddl-____generation"
value="create-or-extend-____tables"/>
<property name="eclipselink.logging.____level"
value="FINEST"/>
<property name="eclipselink.target-____server"
value="SunAS9"/>
<property name="eclipselink.target-____database"
value="PostgreSQL"/>
</properties>
</persistence-unit>
___________________________________________________
<mailto:eclipselink-users@__eclipse.org
<mailto:eclipselink-users@eclipse.org>>
https://dev.eclipse.org/____mailman/listinfo/eclipselink-____users
<https://dev.eclipse.org/__mailman/listinfo/eclipselink-__users>
<https://dev.eclipse.org/__mailman/listinfo/eclipselink-__users
<https://dev.eclipse.org/mailman/listinfo/eclipselink-users>>
___________________________________________________
<mailto:eclipselink-users@__eclipse.org
<mailto:eclipselink-users@eclipse.org>>
https://dev.eclipse.org/____mailman/listinfo/eclipselink-____users
<https://dev.eclipse.org/__mailman/listinfo/eclipselink-__users>