Re: Eclipselink2 "weaving" does not take place on JOnAS 5.3.0 M4
Florent BENOIT <[email protected]> Thu, 08 Sep 2011 16:20:29 +0200
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------090205000302090307090607
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hans,
Maybe it's linked to the following issue
:https://bugs.eclipse.org/bugs/show_bug.cgi?id=323403 (as you said on
missing wawing classes)
We should upgrade EclipseLink 2 version in JOnAS
In 5.2.0-M5, what was the property set for JPA persistence provider ?
eclipselink or eclipselink2 ?
You may try to weave your classes offline, so that the runtime weawing
won't occur :
org.eclipse.persistence.tools.weaving.jpa.StaticWeave needs to be used
As you're using if I remember well, here is a link :
http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_Weaving/Static_Weaving
Also you may try with another provider like hibernate3.5
Regards,
Florent
On 09/08/2011 07:52 AM, Hans J. Prueller wrote:
> Hi JOnAS Team!
>
> I just downloaded and configured the new JOnAS 5.3 M4 Milestone, and
> tried to deploy our EAR application.
>
> Basically it works, but there seems to be a Problem with contained
> EclipseLink (2.1.3) -_seems that weaving does not take place!_
>
> The identical EAR archive which works on 5.2.0-M5/RC produces the
> following error on 5.3.0 M4:
>
>
> [EL Info]: 2011-09-08
> 07:45:23.633--ServerSession(2018501004)--*EclipseLink, version:
> Eclipse Persistence Services - 2.1.3.v20110304-r9073*
> [EL Info]: 2011-09-08 07:45:23.661--ServerSession(2018501004)--Server:
> EasyBeans
> [EL Severe]: 2011-09-08 07:45:24.343--ServerSession(2018501004)--Local
> Exception Stack:
> Exception [EclipseLink-0] (Eclipse Persistence Services -
> 2.1.3.v20110304-r9073):
> org.eclipse.persistence.exceptions.IntegrityException
> Descriptor Exceptions:
> ---------------------------------------------------------
>
> *Exception [EclipseLink-60] (Eclipse Persistence Services -
> 2.1.3.v20110304-r9073):
> org.eclipse.persistence.exceptions.DescriptorException*
> *Exception Description: The method [_persistence_set_businessTrip_vh]
> or [_persistence_get_businessTrip_vh] is not defined in the object
> [com.lbslogics.ims.model.Event].*
> *Internal Exception: java.lang.NoSuchMethodException:
> com.lbslogics.ims.model.Event._persistence_get_businessTrip_vh()*
> *Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[businessTrip]*
> *Descriptor: RelationalDescriptor(com.lbslogics.ims.model.Event -->
> [DatabaseTable(EventBean_)])*
>
> Exception [EclipseLink-60] (Eclipse Persistence Services -
> 2.1.3.v20110304-r9073):
> org.eclipse.persistence.exceptions.DescriptorException
> Exception Description: The method
> [_persistence_set_businessTripDay_vh] or
> [_persistence_get_businessTripDay_vh] is not defined in the object
> [com.lbslogics.ims.model.Event].
> Internal Exception: java.lang.NoSuchMethodException:
> com.lbslogics.ims.model.Event._persistence_get_businessTripDay_vh()
> Mapping:
> org.eclipse.persistence.mappings.ManyToOneMapping[businessTripDay]
> Descriptor: RelationalDescriptor(com.lbslogics.ims.model.Event -->
> [DatabaseTable(EventBean_)])
>
> Runtime Exceptions:
> ---------------------------------------------------------
>
> java.lang.NullPointerException
>
> at
> org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:471)
> at
> org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:406)
> at
> org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:666)
> at
> org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:615)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:228)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:389)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:164)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:221)
> at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:209)
> at
> org.ow2.easybeans.persistence.TxEntityManagerHandler.buildNewTxEntityManager(TxEntityManagerHandler.java:124)
> at
> org.ow2.easybeans.persistence.TxEntityManagerHandler.getCurrent(TxEntityManagerHandler.java:112)
> at
> org.ow2.easybeans.persistence.TxEntityManager.getCurrentEntityManager(TxEntityManager.java:74)
> at
> org.ow2.easybeans.persistence.TxEntityManager.createNamedQuery(TxEntityManager.java:246)
> at
> org.ow2.easybeans.persistence.ContainerManagedEntityManager.createNamedQuery(ContainerManagedEntityManager.java:244)
> at
> com.lbslogics.ims.system.objects.IMSSetting.loadFromStore(IMSSetting.java:430)
>
>
>
> Seems very clear to me that the error occurs because the JPA entities
> are not "enhanced"/weaved by EclipseLink -- what do you think ?
>
> regards,
> HANS
>
--------------090205000302090307090607
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Ty=
pe">
</head>
<body bgcolor=3D"#FFFFFF" text=3D"#000000">
=C2=A0=C2=A0=C2=A0 Hans,<br>
<br>
Maybe it's linked to the following issue
:<a class=3D"moz-txt-link-freetext" href=3D"https://bugs.eclipse.org/=
bugs/show_bug.cgi?id=3D323403">https://bugs.eclipse.org/bugs/show_bug.cgi=
?id=3D323403</a> (as you said
on missing wawing classes)<br>
We should upgrade EclipseLink 2 version in JOnAS<br>
In 5.2.0-M5, what was the property set for JPA persistence provider
? eclipselink or eclipselink2 ?<br>
<br>
You may try to weave your classes offline, so that the runtime
weawing won't occur :<br>
org.eclipse.persistence.tools.weaving.jpa.StaticWeave needs to be
used<br>
As you're using if I remember well, here is a link :
<a class=3D"moz-txt-link-freetext" href=3D"http://wiki.eclipse.org/Eclips=
eLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_W=
eaving/Static_Weaving">http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/=
Advanced_JPA_Development/Performance/Weaving/Static_Weaving/Static_Weavin=
g</a><br>
<br>
<br>
Also you may try with another provider like hibernate3.5<br>
<br>
Regards,<br>
<br>
Florent<br>
<br>
<br>
On 09/08/2011 07:52 AM, Hans J. Prueller wrote:
<blockquote cite=3D"mid:1315461147.1930.7.camel@kodos" type=3D"cite">
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DU=
TF-8">
<meta name=3D"GENERATOR" content=3D"GtkHTML/3.32.2">
Hi JOnAS Team!<br>
<br>
I just downloaded and configured the new JOnAS 5.3 M4 Milestone,=C2=
=A0
and tried to deploy our EAR application.<br>
<br>
Basically it works, but there seems to be a Problem with contained
EclipseLink (2.1.3) -<u> seems that weaving does not take place!</u=
><br>
<br>
The identical EAR archive which works on 5.2.0-M5/RC produces the
following error on 5.3.0 M4:<br>
<br>
<br>
[EL Info]: 2011-09-08 07:45:23.633--ServerSession(2018501004)--<b>E=
clipseLink,
version: Eclipse Persistence Services - 2.1.3.v20110304-r9073</b>=
<br>
[EL Info]: 2011-09-08
07:45:23.661--ServerSession(2018501004)--Server: EasyBeans<br>
[EL Severe]: 2011-09-08
07:45:24.343--ServerSession(2018501004)--Local Exception Stack: <br=
>
Exception [EclipseLink-0] (Eclipse Persistence Services -
2.1.3.v20110304-r9073):
org.eclipse.persistence.exceptions.IntegrityException<br>
Descriptor Exceptions: <br>
---------------------------------------------------------<br>
<br>
<b>Exception [EclipseLink-60] (Eclipse Persistence Services -
2.1.3.v20110304-r9073):
org.eclipse.persistence.exceptions.DescriptorException</b><br>
<b>Exception Description: The method
[_persistence_set_businessTrip_vh] or
[_persistence_get_businessTrip_vh] is not defined in the object
[com.lbslogics.ims.model.Event].</b><br>
<b>Internal Exception: java.lang.NoSuchMethodException:
com.lbslogics.ims.model.Event._persistence_get_businessTrip_vh()<=
/b><br>
<b>Mapping:
org.eclipse.persistence.mappings.ManyToOneMapping[businessTrip]</=
b><br>
<b>Descriptor: RelationalDescriptor(com.lbslogics.ims.model.Event
--> [DatabaseTable(EventBean_)])</b><br>
<br>
Exception [EclipseLink-60] (Eclipse Persistence Services -
2.1.3.v20110304-r9073):
org.eclipse.persistence.exceptions.DescriptorException<br>
Exception Description: The method
[_persistence_set_businessTripDay_vh] or
[_persistence_get_businessTripDay_vh] is not defined in the object
[com.lbslogics.ims.model.Event].<br>
Internal Exception: java.lang.NoSuchMethodException:
com.lbslogics.ims.model.Event._persistence_get_businessTripDay_vh()=
<br>
Mapping:
org.eclipse.persistence.mappings.ManyToOneMapping[businessTripDay]<=
br>
Descriptor: RelationalDescriptor(com.lbslogics.ims.model.Event
--> [DatabaseTable(EventBean_)])<br>
<br>
Runtime Exceptions: <br>
---------------------------------------------------------<br>
<br>
java.lang.NullPointerException<br>
<br>
at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeD=
escriptors(DatabaseSessionImpl.java:471)<br>
at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeD=
escriptors(DatabaseSessionImpl.java:406)<br>
at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnect=
Datasource(DatabaseSessionImpl.java:666)<br>
at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDet=
ectDatasource(DatabaseSessionImpl.java:615)<br>
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(E=
ntityManagerFactoryProvider.java:228)<br>
at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(Entity=
ManagerSetupImpl.java:389)<br>
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSe=
ssion(EntityManagerFactoryImpl.java:164)<br>
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntit=
yManagerImpl(EntityManagerFactoryImpl.java:221)<br>
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntit=
yManager(EntityManagerFactoryImpl.java:209)<br>
at
org.ow2.easybeans.persistence.TxEntityManagerHandler.buildNewTxEntityMana=
ger(TxEntityManagerHandler.java:124)<br>
at
org.ow2.easybeans.persistence.TxEntityManagerHandler.getCurrent(TxEntityM=
anagerHandler.java:112)<br>
at
org.ow2.easybeans.persistence.TxEntityManager.getCurrentEntityManager(TxE=
ntityManager.java:74)<br>
at
org.ow2.easybeans.persistence.TxEntityManager.createNamedQuery(TxEntityMa=
nager.java:246)<br>
at
org.ow2.easybeans.persistence.ContainerManagedEntityManager.createNamedQu=
ery(ContainerManagedEntityManager.java:244)<br>
at
com.lbslogics.ims.system.objects.IMSSetting.loadFromStore(IMSSetting.java=
:430)<br>
<br>
<br>
<br>
Seems very clear to me that the error occurs because the JPA
entities are not "enhanced"/weaved by EclipseLink=C2=A0 -- what do =
you
think ?<br>
<br>
regards,<br>
HANS<br>
<br>
</blockquote>
<br>
</body>
</html>
--------------090205000302090307090607--