[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] compositePU on OSGi environment
|
Ok no proplem. The last couple days I have played around with eclipselink and composite pu in some tutorials, all stand alone web apps works fine. Now i have try to put my knowledge to the osgi context and it doesnt work, even the eclispelink jars all look like osgi ready (Export/Import tag in manifest, etc.).
But anyway, I'll check out Gemini JPA ;-)
By the way:
whats wrong with my glassfish, he have the same problem ("no persistence provider for EM .....") without any composite pu stuff? -> normal perstence.xml
Today its its a bad day!
2013/3/12 Tom Ware
<tom.ware@xxxxxxxxxx>
I do not think we test composite PU in an OSGi context in any release. I am simply suggesting that if you are using JPA in OSGi on EclipseLink you should use Gemini which is the reference implementation for the OSGi Enterprise standard. There is a larger body of people that can support you when you are running on that platform.
On 12/03/2013 11:47 AM, Alexander Kley wrote:
So, composite pu (eclispelink 2.5.0, so on glassfish 4) only runs with gemini
jpa on osgi context?
2013/3/12 Tom Ware <tom.ware@xxxxxxxxxx <mailto:tom.ware@xxxxxxxxxx>>
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@gmail.com>
<mailto:alexander.kley@gmail.__com <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>
<mailto:andrei.ilitchev@__oracle.com
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"/>
<mailto:andrei.ilitchev@
<mailto:andrei.ilitchev@>__orac__le.com <http://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@
<mailto:eclipselink-users@>__ec__lipse.org <http://eclipse.org>
<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>
_____________________________________________________
<mailto:eclipselink-users@
<mailto:eclipselink-users@>__ec__lipse.org <http://eclipse.org>
<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>