[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] compositePU on OSGi environment
|
Starting with 2.5.0 the only JPA OSGi configuration we will support is Gemini
JPA. There has been very little work or no work on the deprecated
implementation in the 2.4 stream.
-Tom
On 12/03/2013 11:18 AM, Alexander Kley wrote:
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@xxxxxxxxx>>
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@xxxxxxxxxx>>
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
first post
But also with this entry it doesnt work :-(
Alex
2013/3/12 Andrei Ilitchev <andrei.ilitchev@xxxxxxxxxx
<mailto:andrei.ilitchev@xxxxxxxxxx>
<mailto:andrei.ilitchev@__oracle.com
<mailto:andrei.ilitchev@xxxxxxxxxx>>>
Composite persistence unit is not configured correctly,
please see
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>
<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>>
On 3/12/2013 9:06 AM, Alexander Kley wrote:
Hi,
for a while have a problem to integrate the composite pu
concept
to my
osgi bundle.
I have a persistence bundle which works fine with the
underlying pu
(single persistence unit). If i try to transform the bundle
to works
with an composite pu and one member pu as jar as follow:
composite pu (persitence.xml) ->
<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>
___________________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
<mailto:eclipselink-users@__eclipse.org
<mailto:eclipselink-users@xxxxxxxxxxx>>
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>>
___________________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
<mailto:eclipselink-users@__eclipse.org
<mailto:eclipselink-users@xxxxxxxxxxx>>
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>>
_________________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
https://dev.eclipse.org/__mailman/listinfo/eclipselink-__users
<https://dev.eclipse.org/mailman/listinfo/eclipselink-users>
_________________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
https://dev.eclipse.org/__mailman/listinfo/eclipselink-__users
<https://dev.eclipse.org/mailman/listinfo/eclipselink-users>
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users