[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Cannot get the framework extension, org.eclipse.equinox.weaving.hook, to work in OSGI

Hi Daniel,

this looks like a huge step forward. Would you mind sending me a zip that contains all your bundles so that I can try your setting? Just put all the 13 bundles in a ZIP and send it to mlippert@xxxxxxxxx, ok?

-Martin



On 24.06.10 22:50, Kashtan, Daniel wrote:
Sorry again about all the Emails, I wish there was an edit button like on a forums. Below is what my console looks like. I don't understand it, everything looks perfect until I try and run the last bundle, it just somehow ignores the AspectJ code :(

Also, below the my command output is my config.ini if that helps, I don't get an error logs in my configuration file.

djkasht@zaius:~/workspaceBlueprint/EquinoxAspectsHellowWorld4$ java -jar plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -console
[org.aspectj.osgi] info adding AspectJ hooks ...

osgi>  [org.aspectj.osgi] info supplementing org.eclipse.equinox.weaving.demo.hello with [org.eclipse.equinox.weaving.demo.hello.aspects]
start 7

osgi>  start 13
[org.aspectj.osgi.service.weaving] info Starting AspectJ weaving service ...
[org.aspectj.osgi] info triggering update for re-supplementing org.eclipse.equinox.weaving.demo.hello
[org.aspectj.osgi] info supplementing org.eclipse.equinox.weaving.demo.hello with [org.eclipse.equinox.weaving.demo.hello.aspects]

osgi>  start 12
Hello world!

osgi>  ss

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.5.1.R35x_v20090827
                     Fragments=6
1       ACTIVE      org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100
2       ACTIVE      org.eclipse.update.configurator_3.3.0.v20090312
4       RESOLVED    org.eclipse.equinox.weaving.caching_1.0.0.200808061839
6       RESOLVED    org.eclipse.equinox.weaving.hook_1.0.0.200808061839
                     Master=0
7       ACTIVE      org.eclipse.equinox.weaving.demo.hello.aspects_1.0.0
8       RESOLVED    org.eclipse.equinox.launcher_1.0.201.R35x_v20090715
9       RESOLVED    org.aspectj.runtime_1.6.1.20080703120000
10<<LAZY>>     org.eclipse.equinox.weaving.caching.j9_1.0.0.200808061839
11      RESOLVED    org.aspectj.weaver_1.6.1.20080703120000
12      ACTIVE      org.eclipse.equinox.weaving.demo.hello_1.0.0
13      ACTIVE      org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839

osgi>


config.ini:

osgi.clean=true
osgi.frameworkClassPath=file\:/home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld2/plugins/org.eclipse.osgi_3.5.1.R35x_v20090827.jar,file\:/home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld2/plugins/org.eclipse.equinox.weaving.hook_1.0.0.200808061839.jar
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start
   eclipse.ignoreApp=true
osgi.noShutdown=true
aj.weaving.verbose=true
org.aspectj.weaver.showWeaveInfo=true
org.aspectj.osgi.verbose=true


________________________________________ From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel [Daniel.Kashtan@xxxxxxx] Sent: Thursday, June 24, 2010 4:40 PM To: Equinox development mailing list Subject: RE: [equinox-dev] Cannot get the framework extension, org.eclipse.equinox.weaving.hook, to work in OSGI

Well it turns out the java.lang.ClassNotFoundException: for the Activator is only because it is in a bin folder. Once I removed the activator from weaving.demo.hello, it almost worked. I removed the Activator from the bin folder for weaving.demo.hello.aspects too. So now I get the output Hello World!, but not the output that AsepctJ should cause to happen :(

Am I just doomed forever to not be able to get Equinox Aspects to work?
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel [Daniel.Kashtan@xxxxxxx]
Sent: Thursday, June 24, 2010 2:39 PM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

I went back and tried using the equinox launcher as shown in the Equinox Quickstart Guide. I am able to get the hook running, and start the equinox.weaving.aspectj bundle, but when I try to start the weaving.demo.hello bundle I get a java.lang.ClassNotFoundException: org.eclipse.equinox.weaving.demo.hello.internal.Activator. I am not sure why it cannot find the Activator.class. I did not modify the bundle from the Equinox Aspects Quickstart Guide demo. It is sitting in my plugins directory with all the other bundles. Here is what my command prompt looks like as I try to get this to work:

djkasht@zaius:~/workspaceBlueprint/EquinoxAspectsHellowWorld2$ java -jar plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -console
[org.aspectj.osgi] info adding AspectJ hooks ...

osgi>  [org.aspectj.osgi] info supplementing org.eclipse.equinox.weaving.demo.hello with [org.eclipse.equinox.weaving.demo.hello.aspects]
ss

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.5.1.R35x_v20090827
                     Fragments=6
1       ACTIVE      org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100
2       ACTIVE      org.eclipse.update.configurator_3.3.0.v20090312
4       RESOLVED    org.eclipse.equinox.weaving.caching_1.0.0.200808061839
6       RESOLVED    org.eclipse.equinox.weaving.hook_1.0.0.200808061839
                     Master=0
7       RESOLVED    org.eclipse.equinox.weaving.demo.hello.aspects_1.0.0
8       RESOLVED    org.eclipse.equinox.launcher_1.0.201.R35x_v20090715
9       RESOLVED    org.aspectj.runtime_1.6.1.20080703120000
10<<LAZY>>     org.eclipse.equinox.weaving.caching.j9_1.0.0.200808061839
11      RESOLVED    org.aspectj.weaver_1.6.1.20080703120000
12      RESOLVED    org.eclipse.equinox.weaving.demo.hello_1.0.0
13<<LAZY>>     org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839

osgi>  start 13
[org.aspectj.osgi.service.weaving] info Starting AspectJ weaving service ...
[org.aspectj.osgi] info triggering update for re-supplementing org.eclipse.equinox.weaving.demo.hello
[org.aspectj.osgi] info supplementing org.eclipse.equinox.weaving.demo.hello with [org.eclipse.equinox.weaving.demo.hello.aspects]

osgi>  start 12
org.osgi.framework.BundleException: The activator org.eclipse.equinox.weaving.demo.hello.internal.Activator for bundle org.eclipse.equinox.weaving.demo.hello is invalid
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272)
         at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
         at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.weaving.demo.hello.internal.Activator
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150)
         ... 14 more
Nested Exception:
java.lang.ClassNotFoundException: org.eclipse.equinox.weaving.demo.hello.internal.Activator
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272)
         at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
         at java.lang.Thread.run(Thread.java:619)
Nested Exception:
java.lang.ClassNotFoundException: org.eclipse.equinox.weaving.demo.hello.internal.Activator
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272)
         at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
         at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
         at java.lang.Thread.run(Thread.java:619)

osgi>
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel [Daniel.Kashtan@xxxxxxx]
Sent: Thursday, June 24, 2010 11:55 AM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

Sorry to flood this mailing list with my little updates, but I think I found the root of the problem. Unfortunately I am not sure of an elegant way to solve it.

I added the org.eclipse.core.runtime-3.4.0.jar to my config.ini because I found out my log was complaining about it. It would say, java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini). This could be why I am getting some random sax error.

Once I added this jar, I get errors saying to include a bunch of other dependant jars. Is there a way to take care of this problem without manually adding all of these jars? How come the Quickstart project does not use them?
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel [Daniel.Kashtan@xxxxxxx]
Sent: Thursday, June 24, 2010 11:02 AM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

I found out of a command called packages. I tried it with org.xml.sax and got some interesting output. It seems to show that org.eclipse.equinox.aspectj.jar has 3 imports of sax. It also looks like sax is available, but something must be wrong though. I am still stuck on this problem...

osgi>  packages org.xml.sax
org.xml.sax; version="0.0.0"<System Bundle [0]>
   initial@reference:file:org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar/ [3] imports
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel [Daniel.Kashtan@xxxxxxx]
Sent: Thursday, June 24, 2010 10:48 AM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

I forgot to mention that I did try just doing a refresh on bundle 6 and then tried to start it, but it still had the same results :*(
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel [Daniel.Kashtan@xxxxxxx]
Sent: Thursday, June 24, 2010 10:39 AM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

I did a refresh 0 1 2 3 4 5 6 and then exit and then started OSGI again like before and I still get the same SAX error. I am very confused about why SAX is causing problems too, it isn't used in weaving.demo.hello at all.
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Martin Lippert [lippert@xxxxxxx]
Sent: Thursday, June 24, 2010 10:34 AM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

Hi Daniel,

[org.aspectj.osgi] info adding AspectJ hooks ...

osgi>   [org.aspectj.osgi] info supplementing org.eclipse.equinox.weaving.demo.hello with [org.eclipse.equinox.weaving.demo.hello.aspects]
ss

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.4.0.v20080605-1900
                      Fragments=1
1       RESOLVED    org.eclipse.equinox.weaving.hook_1.0.0.200808061839
                      Master=0
2       RESOLVED    org.eclipse.equinox.weaving.demo.hello.aspects_1.0.0
3<<LAZY>>      org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839
4       RESOLVED    org.aspectj.weaver_1.6.1.20080703120000
5       RESOLVED    org.aspectj.runtime_1.6.1.20080703120000
6       RESOLVED    org.eclipse.equinox.weaving.demo.hello_1.0.0

osgi>   start 3
[org.aspectj.osgi.service.weaving] info Starting AspectJ weaving service ...
[org.aspectj.osgi] info triggering update for re-supplementing org.eclipse.equinox.weaving.demo.hello
[org.aspectj.osgi] info supplementing org.eclipse.equinox.weaving.demo.hello with [org.eclipse.equinox.weaving.demo.hello.aspects]

This looks quite good so far. Try a "refresh" now before starting bundle 6. And tell me if that helps or not... ;-)

-Martin




osgi> start 6



org.osgi.framework.BundleException: The activator org.eclipse.equinox.weaving.demo.hello.internal.Activator for bundle org.eclipse.equinox.weaving.demo.hello is invalid
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:146)
          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
          at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
          at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:441)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionFromRequiredBundle(OSGiWeavingAdaptor.java:169)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsFromRequiredBundles(OSGiWeavingAdaptor.java:196)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsForBundle(OSGiWeavingAdaptor.java:105)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingContext.getDefinitions(OSGiWeavingContext.java:113)
          at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initialize(ClassLoaderWeavingAdaptor.java:137)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.initialize(OSGiWeavingAdaptor.java:74)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.ensureAdaptorInit(WeavingService.java:111)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.getKey(WeavingService.java:78)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptorFactory.getCachingService(AspectJAdaptorFactory.java:141)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.initialize(AspectJAdaptor.java:203)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.findClass(AspectJAdaptor.java:99)
          at org.eclipse.equinox.weaving.hooks.AspectJBundleFile.getEntry(AspectJBundleFile.java:44)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:505)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
          at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:139)
          ... 14 more
Caused by: java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          ... 57 more
Nested Exception:
java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:441)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionFromRequiredBundle(OSGiWeavingAdaptor.java:169)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsFromRequiredBundles(OSGiWeavingAdaptor.java:196)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsForBundle(OSGiWeavingAdaptor.java:105)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingContext.getDefinitions(OSGiWeavingContext.java:113)
          at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initialize(ClassLoaderWeavingAdaptor.java:137)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.initialize(OSGiWeavingAdaptor.java:74)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.ensureAdaptorInit(WeavingService.java:111)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.getKey(WeavingService.java:78)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptorFactory.getCachingService(AspectJAdaptorFactory.java:141)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.initialize(AspectJAdaptor.java:203)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.findClass(AspectJAdaptor.java:99)
          at org.eclipse.equinox.weaving.hooks.AspectJBundleFile.getEntry(AspectJBundleFile.java:44)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:505)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
          at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:139)
          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
          at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
          at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          ... 57 more
Nested Exception:
java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:441)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionFromRequiredBundle(OSGiWeavingAdaptor.java:169)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsFromRequiredBundles(OSGiWeavingAdaptor.java:196)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsForBundle(OSGiWeavingAdaptor.java:105)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingContext.getDefinitions(OSGiWeavingContext.java:113)
          at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initialize(ClassLoaderWeavingAdaptor.java:137)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.initialize(OSGiWeavingAdaptor.java:74)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.ensureAdaptorInit(WeavingService.java:111)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.getKey(WeavingService.java:78)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptorFactory.getCachingService(AspectJAdaptorFactory.java:141)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.initialize(AspectJAdaptor.java:203)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.findClass(AspectJAdaptor.java:99)
          at org.eclipse.equinox.weaving.hooks.AspectJBundleFile.getEntry(AspectJBundleFile.java:44)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:505)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
          at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:139)
          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
          at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
          at java.lang.Thread.run(Thread.java:619)
Nested Exception:
java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:441)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionFromRequiredBundle(OSGiWeavingAdaptor.java:169)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsFromRequiredBundles(OSGiWeavingAdaptor.java:196)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsForBundle(OSGiWeavingAdaptor.java:105)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingContext.getDefinitions(OSGiWeavingContext.java:113)
          at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initialize(ClassLoaderWeavingAdaptor.java:137)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.initialize(OSGiWeavingAdaptor.java:74)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.ensureAdaptorInit(WeavingService.java:111)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.getKey(WeavingService.java:78)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptorFactory.getCachingService(AspectJAdaptorFactory.java:141)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.initialize(AspectJAdaptor.java:203)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.findClass(AspectJAdaptor.java:99)
          at org.eclipse.equinox.weaving.hooks.AspectJBundleFile.getEntry(AspectJBundleFile.java:44)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:505)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
          at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:139)
          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
          at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
          at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          ... 57 more
Nested Exception:
java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:441)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionFromRequiredBundle(OSGiWeavingAdaptor.java:169)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsFromRequiredBundles(OSGiWeavingAdaptor.java:196)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.parseDefinitionsForBundle(OSGiWeavingAdaptor.java:105)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingContext.getDefinitions(OSGiWeavingContext.java:113)
          at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initialize(ClassLoaderWeavingAdaptor.java:137)
          at org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.initialize(OSGiWeavingAdaptor.java:74)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.ensureAdaptorInit(WeavingService.java:111)
          at org.eclipse.equinox.weaving.aspectj.WeavingService.getKey(WeavingService.java:78)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptorFactory.getCachingService(AspectJAdaptorFactory.java:141)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.initialize(AspectJAdaptor.java:203)
          at org.eclipse.equinox.weaving.adaptors.AspectJAdaptor.findClass(AspectJAdaptor.java:99)
          at org.eclipse.equinox.weaving.hooks.AspectJBundleFile.getEntry(AspectJBundleFile.java:44)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:505)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
          at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
          at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:139)
          at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
          at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
          at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
          at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
          at java.lang.Thread.run(Thread.java:619)

osgi>   exit

________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Martin Lippert [lippert@xxxxxxx]
Sent: Thursday, June 24, 2010 10:25 AM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

Hi Daniel!

Glad to hear that the weaving extension is running now. But the error
you get is strange, since the weaving demo doesn't do anything with XML
or SAX... Do you have a stack trace for the exception?

-Martin



On 24.06.10 16:16, Kashtan, Daniel wrote:
I seem to be getting closer. I get the ouput "[org.aspectj.osgi] info adding AspectJ hooks ..." which means my weaving hook fragment must be working now. I can start org.eclipse.equinox.weaving.aspectj jar without any IWeavingService missing errors. When I start the weaving.demo.hello though I am met with a java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler error.

This error seems easy enough, I download the sax2r2.jar and ran this: java -cp sax2r2.jar:org.eclipse.osgi_3.4.0.v20080605-1900.jar:org.eclipse.equinox.weaving.hook_1.0.0.200808061839.jar org.eclipse.core.runtime.adaptor.EclipseStarter -console

For some reason though that does not correct the problem. I get the exact same error as before when I try to start the weaving.demo.hello bundle. I don't get it, I have the sax2r2.jar in the same folder as everything else. Am I doing something wrong again?
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Thomas Watson [tjwatson@xxxxxxxxxx]
Sent: Thursday, June 24, 2010 9:20 AM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

When using java -jar command I don't think the -cp option is sometimes ignored depending on the VM you are using.

You would have to use the "main" class org.eclipse.core.runtime.adaptor.EclipseStarter to launch Equinox along with the -cp option to list the org.eclipse.osgi jar and the framework extension jars you want to include:

java -cp org.eclipse.osgi.jar:<extension.jar>    org.eclipse.core.runtime.adaptor.EclipseStarter -console

Tom



[cid:1__=09BBFDDFDFDB7F098f9e8a93df938@xxxxxxxxxx]"Kashtan, Daniel" ---06/24/2010 08:10:42 AM---I also forgot to ask if there is a way to use a framework extension without the org.eclipse.equinox.launcher? I would be intere


From: "Kashtan, Daniel"<Daniel.Kashtan@xxxxxxx>

To:
Equinox development mailing list<equinox-dev@xxxxxxxxxxx>

Date:
06/24/2010 08:10 AM

Subject:
RE: [equinox-dev] Cannot get the framework extension, org.eclipse.equinox.weaving.hook, to work in OSGI

________________________________



I also forgot to ask if there is a way to use a framework extension without the org.eclipse.equinox.launcher? I would be interested in knowing that how to do that too.
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel [Daniel.Kashtan@xxxxxxx]
Sent: Thursday, June 24, 2010 8:57 AM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

I have been starting Equinox directly with java -jar org.eclipse.osgi.jar -console. I'll investigate the org.eclipse.equinox.launcher, feel free to show me how you all would use it. Hopefully I can find some documentation on it.

Martin, I tried java -jar org.eclipse.osgi_3.4.0.v20080605-1900.jar -console -cp org.eclipse.equinox.weaving.hook, but that did not work. I am thinking that I need to use the launcher that Tom referenced.

________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Thomas Watson [tjwatson@xxxxxxxxxx]
Sent: Wednesday, June 23, 2010 5:27 PM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Cannot get the framework extension,  org.eclipse.equinox.weaving.hook, to work in OSGI

How are you launching equinox? Are you using the org.eclipse.equinox.launcher jar or using the eclipse.exe or are you starting equinox directly with something like java -jar org.eclipse.osgi.jar?

The reason I ask is because the osgi.framework.extensions property is processed by the org.eclipse.equinox.launcher jar which sets up the class loader for the framework (org.eclipse.osgi). The launcher uses the osgi.framework.extensions property to discover additional jars that should be placed on the framework class loader's class path.

Tom



[cid:1__=09BBFDD8DFE613508f9e8a93df938@xxxxxxxxxx]"Kashtan, Daniel" ---06/23/2010 04:03:02 PM---Hey Martin,


From: "Kashtan, Daniel"<Daniel.Kashtan@xxxxxxx>

To:
Equinox development mailing list<equinox-dev@xxxxxxxxxxx>

Date:
06/23/2010 04:03 PM

Subject:
RE: [equinox-dev] Cannot get the framework extension, org.eclipse.equinox.weaving.hook, to work in OSGI

________________________________



Hey Martin,

I just recently found this link, http://wiki.eclipse.org/JDT_weaving_features, which I believe details the classpath setup code you are referring to (correct me if I am wrong). I unfortunately still can't get the hook working with the system bundle. Here is what my config.ini looks like:

osgi.clean=true
osgi.frameworkClassPath=file\:/home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld/org.eclipse.osgi_3.4.0.v20080605-1900.jar,file\:/home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld/org.eclipse.equinox.weaving.hook_1.0.0.200808061839.jar
osgi.bundles=org.aspectj.runtime_1.6.1.20080703120000, org.aspectj.weaver_1.6.1.20080703120000,org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar, org.eclipse.equinox.weaving.hook_1.0.0.200808061839.jar,org.eclipse.equinox.weaving.demo.hello, org.eclipse.equinox.weaving.demo.hello.aspects
osgi.framework.extensions=org.eclipse.equinox.weaving.hook
aj.weaving.verbose=true
org.aspectj.weaver.showWeaveInfo=true
org.aspectj.osgi.verbose=true


All my bundles are in /home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld. My config.ini is in /home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld/Configuration. I am not sure what else I could be doing wrong at this point and I must be close to figuring out this problem :) ________________________________________ From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Martin Lippert [lippert@xxxxxxx] Sent: Wednesday, June 23, 2010 3:50 PM To: Equinox development mailing list Subject: Re: [equinox-dev] Cannot get the framework extension, org.eclipse.equinox.weaving.hook, to work in OSGI

Hi Daniel,

if I remember this correctly you need to put the org.eclipse.osgi bundle
AND the framework extension bundles on the classpath if you start the
runtime the way you do it.

(The exception you mention indicates that the framework extension is not
installed correctly.)

HTH,
-Martin



I have been trying very hard to get the Equinox Aspects Hello World project run correctly outside of Eclipse, just using a custom config.ini and the Equinox shell. I believe the last thing holding me up is that the weaving.hook fragment bundle is not hooking into the system bundle. I have all the files from the plugins folder of the Hello World demo in the same folder as my system bundle and I have the hello and hello.aspects bundle in the same folder. My config.ini is in the ./configuration folder. It is a simple setup and there shouldn't be a co-location problems with the hook bundle. I'll post my config.ini below.

Config.ini:

osgi.clean=true
org.aspectj.osgi.verbose=true
eclipse.ignoreApp=true
aj.weaving.verbose=true
org.aspectj.weaver.showWeaveInfo=true
osgi.bundles=org.eclipse.equinox.weaving.demo.hello.aspects, org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar, org.aspectj.weaver_1.6.1.20080703120000, org.aspectj.runtime_1.6.1.20080703120000, org.eclipse.equinox.weaving.demo.hello
osgi.framework.extensions=org.eclipse.equinox.weaving.hook





I set the framework extension correctly right? Also, here is how I start the Equinox shell. If I enter start 3 I get an error, java.lang.NoClassDefFoundError: org.eclipse.equinox.service.weaving.IWeavingService

djkasht@zaius:~/workspaceBlueprint/EquinoxAspectsHellowWorld$ java -jar org.eclipse.osgi_3.4.0.v20080605-1900.jar -console -Dosgi.framework.extensions=org.eclipse.equinox.weaving.hook

osgi>     ss

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.4.0.v20080605-1900
                        Fragments=1
1       RESOLVED    org.eclipse.equinox.weaving.hook_1.0.0.200808061839
                        Master=0
2       RESOLVED    org.eclipse.equinox.weaving.demo.hello.aspects_1.0.0
3<<LAZY>>        org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839
4       RESOLVED    org.aspectj.weaver_1.6.1.20080703120000
5       RESOLVED    org.aspectj.runtime_1.6.1.20080703120000
6       RESOLVED    org.eclipse.equinox.weaving.demo.hello_1.0.0

osgi>

This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________ equinox-dev mailing list equinox-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/equinox-dev _______________________________________________ equinox-dev mailing list equinox-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________ equinox-dev mailing list equinox-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev