|Re: [eclipselink-users] OSGi Dynamic Weaving?|
Our initial dynamic weaving support for Equinox is currently being integrated into the trunk. You can't use the agent to make it work. OSGi classloading is very different from Java SE so it requires special support. In the meantime you can use static weaving for OSGi apps.
Unfortunately, the implementation of dynamic weaving is platform specific so we need to find ways of doing it for each OSGi runtime. We're starting with Equinox and hope to provide support in other runtimes.
Tim Hollosy wrote:
Alright, I'm trying to get dynamic weaving working in an RCP app. First off the M7 osgi release jars didn't work, i ended up having to download the .core & .jpa plugins from source (M7 tag). The osgi stuff works fine with the M7 plugins from svn source, however I thought dynamic weaving was supposed to work now. So, I added -javaagent:c:\\eclipselink.jar to my vmargs and launch my application and it fails with the following error: FATAL ERROR in native method: processing of -javaagent failed ClassNotFoundException: javax.persistence.spi.PersistenceUnitInfo . . . and so on. I'm a complete newbie to doing any sort of weaving, and the directions didn't really make it clear where exactly the eclipselink.jar should be placed (Does it have to be inside one of my bundles maybe?). Any help on how to actually use it inside eclipse launching an RCP app would be nice. Thanks, Tim _______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users
Back to the top