|problems setting javaagent in glassfish v3 with eclipselink 2.0 [message #643572]
||Tue, 07 December 2010 13:45
Registered: December 2010
My problem is that after i give the JVm option of -javaagent:eclipselink-2.0.0.jar, by giving the full directory path of the jar file,,
the server fails to start. because it cannot find the class PersistenceUnitInfo in the javax.persistence.spi package from the eclipselink jar.
i have checked and found that the class is not present in the spi package.
do I have to use a different eclipselink jar file to be used as agent..
I need help with this.
My basic problem is that I get a communication failure message while tryling to load entities which have sub lists of other entities. it is not working with fetch type of eager or lazy. where as it works for other entities. one entity is giving me this trouble.
then i did some search and found out about the following in the persistence.xml file
<property name="eclipselink.weaving" value="true"/>
<property name="eclipselink.weaving.lazy" value="true"/>
but then the message occured that
Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28022] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.EntityManagerSetupExcepti on
Exception Description:Value [true] for the property [eclipselink.weaving] is incorrect when global instrumentation is null, value should either be null or false.
then i came to this forum and learnt about turning javaagent on but rather got stuck in this classnotfoundexception.
[Updated on: Tue, 07 December 2010 13:46]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02309 seconds