-
Feb 23rd, 2011, 01:39 PM
#1
InstrumentationLoadTimeWeaver configuration in OSGi
Hi,
I have an application running on Tomcat that uses EclipseLink 2.1.0, based on Spring 3.0.4.
I want to switch to OSGi as runtime.
I have EclipseLink configuration in the persistence.xml:
<property name="eclipselink.weaving" value="true" />
When I'm on Tomcat everything is OK.
When the application is run on top on OSGi the following error message from Spring occurs: "Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation."
Also I have the following:
Exception Description: The method [_persistence_set_image_vh] or [_persistence_get_image_vh] is not defined in the object [x.Y].|
Internal Exception: java.lang.NoSuchMethodException: x.Y._persistence_get_image_vh()|
Mapping: org.eclipse.persistence.mappings.OneToOneMapping[image]|
I have specified on Tomcat -javaagent:"Path_to_repo \org\springframework\spring-instrument\3.0.4.RELEASE\spring-instrument-3.0.4.RELEASE.jar"
I know that the classloading in OSGi is different. Can you help me to migrate my application to OSGi. What I have to do?
Thanks in advance
Best Regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules