|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
osgi dynamic weaving initialization problemI've tried a few times to get dynamic weaving working following the
example application [1] The application functions fine, but without any weaving which I tested as recommended: Helper.classImplementsInterface(Person.class, PersistenceWeaved.class) With some use of the debugger it appears to me that hookconfigurators provided by org.eclipse.persistence.jpa.equinox.weaving are not being registered in the HookRegistry. The weaving bundle fragments are resolved as seen in the following osgi short status: 0 ACTIVE org.eclipse.osgi_3.5.0.v20090520 Fragments=4 1 ACTIVE org.eclipse.equinox.common_3.5.0.v20090520-1800 2 RESOLVED org.eclipse.persistence.jpa.equinox_1.1.2.v20090612-r4475 Master=8 3 ACTIVE org.eclipse.persistence.antlr_1.1.2.v20090612-r4475 4 RESOLVED org.eclipse.persistence.jpa.equinox.weaving_1.1.2.v20090612-r4475 Master=0 5 ACTIVE javax.persistence_1.99.0.v200906021518 6 ACTIVE org.eclipse.persistence.asm_1.1.2.v20090612-r4475 7 ACTIVE org.eclipse.update.configurator_3.3.0.v20090312 8 ACTIVE org.eclipse.persistence.jpa_1.1.2.v20090612-r4475 Fragments=2 9 ACTIVE myplugin_1.0.0.qualifier 10 ACTIVE org.eclipse.persistence.core_1.1.2.v20090612-r4475 I have specified the vm argument: -Dosgi.framework.extensions=org.eclipse.persistence.jpa.equinox.weaving But presumably that wouldn't impact the registry of the available hookconfigurators. Is there anything that I maybe did wrong that could be preventing the identification of the hookconfigurators? Am I on the wrong track? Thanks - Ted [1] http://wiki.eclipse.org/EclipseLink/Examples/OSGi/Equinox_Byte_Code_Weaving _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: osgi dynamic weaving initialization problem
Hi Ted,
I hate to be pedantic but you have to follow the wiki instructions _very_ closely. Various people have confirmed the instructions work as written. The last person who posted on the newsgroup having trouble with the example had not followed the wiki example to the letter. For example, if you're trying to boot Equinox with java -jar then it definitely won't work. When started this way, Equinox processes adaptor hooks before it has loaded the EclipseLink framework extension--very frustrating. So far I've had success using the Equinox launcher framework as described on the wiki and with the Spring OSGi test framework which starts Equinox and loads all bundles programatically. Shaun Ted Pricer wrote: I've tried a few times to get dynamic weaving working following the example application [1] The application functions fine, but without any weaving which I tested as recommended: Helper.classImplementsInterface(Person.class, PersistenceWeaved.class) With some use of the debugger it appears to me that hookconfigurators provided by org.eclipse.persistence.jpa.equinox.weaving are not being registered in the HookRegistry. The weaving bundle fragments are resolved as seen in the following osgi short status: 0 ACTIVE org.eclipse.osgi_3.5.0.v20090520 Fragments=4 1 ACTIVE org.eclipse.equinox.common_3.5.0.v20090520-1800 2 RESOLVED org.eclipse.persistence.jpa.equinox_1.1.2.v20090612-r4475 Master=8 3 ACTIVE org.eclipse.persistence.antlr_1.1.2.v20090612-r4475 4 RESOLVED org.eclipse.persistence.jpa.equinox.weaving_1.1.2.v20090612-r4475 Master=0 5 ACTIVE javax.persistence_1.99.0.v200906021518 6 ACTIVE org.eclipse.persistence.asm_1.1.2.v20090612-r4475 7 ACTIVE org.eclipse.update.configurator_3.3.0.v20090312 8 ACTIVE org.eclipse.persistence.jpa_1.1.2.v20090612-r4475 Fragments=2 9 ACTIVE myplugin_1.0.0.qualifier 10 ACTIVE org.eclipse.persistence.core_1.1.2.v20090612-r4475 I have specified the vm argument: -Dosgi.framework.extensions=org.eclipse.persistence.jpa.equinox.weaving But presumably that wouldn't impact the registry of the available hookconfigurators. Is there anything that I maybe did wrong that could be preventing the identification of the hookconfigurators? Am I on the wrong track? Thanks - Ted [1] http://wiki.eclipse.org/EclipseLink/Examples/OSGi/Equinox_Byte_Code_Weaving _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users --
Shaun Smith | Principal Product Manager Phone: +19055023094 Oracle Server Technologies, Oracle TopLink ORACLE Canada | 110 Matheson Boulevard West, Suite 100, Mississauga, Ontario | L5R 3P4 _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: osgi dynamic weaving initialization problemShaun,
It just occurred to me what a lousy job I did explaining what I'm doing. I'm actually trying to get this all working in the Eclipse PDE, per the PDE OSGi tutorial. I came across a post from you (forum message #482226) indicating that this can work with weaving. I'm hoping that the behavior I'm observing is something someone has seen before. Based on your feedback - perhaps I need to launch differently.
Ted
On Mon, Sep 28, 2009 at 4:16 PM, Shaun Smith <shaun.smith@...> wrote:
_______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: osgi dynamic weaving initialization problemIt turns out that the PDE launcher works fine. You do have to specify -Dosgi.framework.extensions in the launch configuration but the biggest restriction is that org.eclipse.osgi, the Equinox bundle, has to be co-located with any framework extensions [1] like EclipseLink weaving. If you're working with the Java EE Galileo distribution then the EclipseLink bundles are installed in your Eclipse IDE install's plugins folder along with Equinox. You can always install the EclipseLink bundles into Eclipse from the Galileo or RT update sites to achieve this configuration. Hope this helps, Shaun [1] See red text in: http://wiki.eclipse.org/Adaptor_Hooks#Hookable_Adaptor Ted Pricer wrote: Shaun, --
Shaun Smith | Principal Product Manager Phone: +19055023094 Oracle Server Technologies, Oracle TopLink ORACLE Canada | 110 Matheson Boulevard West, Suite 100, Mississauga, Ontario | L5R 3P4 _______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: osgi dynamic weaving initialization problemShaun,
Not colocating the bundles was my problem. I had created a new target definition to simplify my environment, but was including the eclipselink bundles and osgi bundles from separate locations on disk.
Thanks for your help and the great product. Ted
On Tue, Sep 29, 2009 at 9:41 AM, Shaun Smith <shaun.smith@...> wrote:
_______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
| Free embeddable forum powered by Nabble | Forum Help |