enabling dynamic weaving - eclipselink

650 views
Skip to first unread message

Andrzej Cybulski

unread,
Dec 7, 2014, 5:03:56 AM12/7/14
to play-fr...@googlegroups.com
Hi,
When I start my application I am getting message:

[EL Warning]: metadata: 2014-12-07 10:47:31.304--ServerSession(1514100808)--Reverting the lazy setting on the OneToOne or ManyToOne attribute [] for the entity class [] since weaving was not enabled or did not occur.

It seems I should enable weaving by adding eclipselink agent when starting the application. I am trying to do what's eclipse's guide says, by adding "-J-javaagent:org.eclipse.persistence.eclipselink-2.5.1.jar" to command line arguments but it gives me messages:
Error opening zip file or JAR manifest missing : org.eclipse.persistence.eclipselink-2.5.1.jar                                                                                                                                                                   
Error occurred during initialization of VM                                                                                                                                                                                                                       
agent library failed to init: instrument

What am I doing wrong? How should I handle this?

Andrzej

Andrzej Cybulski

unread,
Dec 11, 2014, 6:49:44 AM12/11/14
to play-fr...@googlegroups.com
It seems to me that maybe I've asked my question in a wrong way. Instead of it I should have asked:

1. Is it possible to use FetchType.LAZY for relationships between JPA (eclipse link) entities in Play Framework?
2. If it is, how do I enable it?

Thanks,
Andrzej

Georgi Ivanov

unread,
Dec 19, 2014, 7:57:27 AM12/19/14
to play-fr...@googlegroups.com
I was able to run the agent like this :

activator stage
cd myproj/target/universal/stage
./myproj.sh -J-javaagent:../lib/org.eclipse.persistence.eclipselink-2.5.1.jar

So the path should be right.

After that , LAZY works as expected
Reply all
Reply to author
Forward
0 new messages