Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ?
Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ? [message #38089] Mon, 12 July 2004 23:10 Go to next message
Eclipse UserFriend
Originally posted by: schroeder.teccomm.les.inf.puc-rio.br

Hello all.

I work for a year and a half at the Software Engeneering Laboratory from
PUC-Rio (http://www.teccomm.les.inf.puc-rio.br) in a project sponsored by
eclipse inovation grants.
I'm developing a plugin and I want to add some instrumentation to the
code: tracing capability. For that, I've installed AJDT on my Eclipse 2.1.2
platform.
When I run my plugin in the runtime-workbench, I get a No Class
definition error comming from org.eclipse.ui.workbench for
org/aspectj/lang/Signature.
I've already tried to convert org.eclipse.ui.workbench into an aspectj
project. I've also tried to add aspectjrt.jar in the plugin manifest
plugin.xml of both org.eclipse.ui.workbench and my plugin, it was useless.

How do I run AspectJ Instrumented Plugin ?

At the end follows the stack trace from the error log.

Thnaks for the att.

Bruno Schroeder

java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivatio
n(PluginDescriptor.java:709)
at
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(Plugin
Descriptor.java:188)
at
org.eclipse.core.internal.plugins.PluginClassLoader.activate Plugin(PluginCla
ssLoader.java:112)
at
org.eclipse.core.internal.plugins.PluginClassLoader.internal FindClassParents
Self(PluginClassLoader.java:185)
at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.find ClassParentsSelf
(DelegatingURLClassLoader.java:485)
at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
URLClassLoader.java:882)
at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
URLClassLoader.java:862)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
(PluginDescriptor.java:130)
at
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
(PluginDescriptor.java:167)
at
org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExten
sion(ConfigurationElement.java:103)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
:155)
at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
661)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
..java:459)
at
org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java
:333)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056
)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1887)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
at
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
a:96)
at
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
oup.java:111)
at
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
oup.java:250)
at
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
r.java:613)
at
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
va:384)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:397)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:39
5)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
605)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
a:694)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
a:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
Re: Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ? [message #38124 is a reply to message #38089] Tue, 13 July 2004 00:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schroeder.teccomm.les.inf.puc-rio.br

Hello all.

I've found the article "Visualizing AspectJ-enabling Eclipse Plugins
using Bytecode Instrumentation" http://www.martinlippert.com.
I could not download AspectJ-enabled Eclipse Runtime. I've tried to
reach Dr. Lippert.

Still waiting for replies,
Bruno Schroeder

"Bruno Schroeder" <schroeder@teccomm.les.inf.puc-rio.br> wrote in message
news:ccv567$tm$1@eclipse.org...
> Hello all.
>
> I work for a year and a half at the Software Engeneering Laboratory
from
> PUC-Rio (http://www.teccomm.les.inf.puc-rio.br) in a project sponsored by
> eclipse inovation grants.
> I'm developing a plugin and I want to add some instrumentation to the
> code: tracing capability. For that, I've installed AJDT on my Eclipse
2.1.2
> platform.
> When I run my plugin in the runtime-workbench, I get a No Class
> definition error comming from org.eclipse.ui.workbench for
> org/aspectj/lang/Signature.
> I've already tried to convert org.eclipse.ui.workbench into an aspectj
> project. I've also tried to add aspectjrt.jar in the plugin manifest
> plugin.xml of both org.eclipse.ui.workbench and my plugin, it was useless.
>
> How do I run AspectJ Instrumented Plugin ?
>
> At the end follows the stack trace from the error log.
>
> Thnaks for the att.
>
> Bruno Schroeder
>
> java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.getConstructor(Unknown Source)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivatio
> n(PluginDescriptor.java:709)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(Plugin
> Descriptor.java:188)
> at
>
org.eclipse.core.internal.plugins.PluginClassLoader.activate Plugin(PluginCla
> ssLoader.java:112)
> at
>
org.eclipse.core.internal.plugins.PluginClassLoader.internal FindClassParents
> Self(PluginClassLoader.java:185)
> at
>
org.eclipse.core.internal.boot.DelegatingURLClassLoader.find ClassParentsSelf
> (DelegatingURLClassLoader.java:485)
> at
>
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> URLClassLoader.java:882)
> at
>
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> URLClassLoader.java:862)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> (PluginDescriptor.java:130)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> (PluginDescriptor.java:167)
> at
>
org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExten
> sion(ConfigurationElement.java:103)
> at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
> :155)
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1006)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
> at
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
> 661)
> at
>
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
> .java:459)
> at
>
org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java
> :333)
> at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
> at
>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056
> )
> at
org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1887)
> at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> at
>
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
> a:96)
> at
>
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
> oup.java:111)
> at
>
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
> oup.java:250)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
> r.java:613)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
> va:384)
> at
>
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:397)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1006)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:39
> 5)
> at
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
> 605)
> at
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
> a:694)
> at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> at
>
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> a:858)
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> at org.eclipse.core.launcher.Main.run(Main.java:747)
> at org.eclipse.core.launcher.Main.main(Main.java:583)
>
>
Re: Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ? [message #38156 is a reply to message #38089] Tue, 13 July 2004 09:52 Go to previous messageGo to next message
George Harley is currently offline George HarleyFriend
Messages: 70
Registered: July 2009
Member
Hi Bruno,

In order to run your plug-in in a workbench I would recommend that you
add the org.aspectj.ajde plug-in as a dependency for your plug-in. You
should do this after you have given your PDE project an AspectJ nature.
Doing this has the added bonus of ensuring that the aspectjrt.jar does
not get inadvertently removed from the project build path if you choose
to let Eclipse update your build path. See bugzilla report 62625 for
more on this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=62625).

With the (imminent) release of AJDT 1.1.11 for Eclipse 3.0, the plug-in
dependency addition will be automatically carried out upon giving a PDE
project an AspectJ nature. Further on down the line we hope that a more
lightweight AspectJ plug-in that just exports aspectjrt.jar will be
shipped in AJDT.

Hope this helps. Let us know how you get on.

Best regards,
George

Bruno Schroeder wrote:
> Hello all.
>
> I work for a year and a half at the Software Engeneering Laboratory from
> PUC-Rio (http://www.teccomm.les.inf.puc-rio.br) in a project sponsored by
> eclipse inovation grants.
> I'm developing a plugin and I want to add some instrumentation to the
> code: tracing capability. For that, I've installed AJDT on my Eclipse 2.1.2
> platform.
> When I run my plugin in the runtime-workbench, I get a No Class
> definition error comming from org.eclipse.ui.workbench for
> org/aspectj/lang/Signature.
> I've already tried to convert org.eclipse.ui.workbench into an aspectj
> project. I've also tried to add aspectjrt.jar in the plugin manifest
> plugin.xml of both org.eclipse.ui.workbench and my plugin, it was useless.
>
> How do I run AspectJ Instrumented Plugin ?
>
> At the end follows the stack trace from the error log.
>
> Thnaks for the att.
>
> Bruno Schroeder
>
> java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.getConstructor(Unknown Source)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivatio
> n(PluginDescriptor.java:709)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(Plugin
> Descriptor.java:188)
> at
> org.eclipse.core.internal.plugins.PluginClassLoader.activate Plugin(PluginCla
> ssLoader.java:112)
> at
> org.eclipse.core.internal.plugins.PluginClassLoader.internal FindClassParents
> Self(PluginClassLoader.java:185)
> at
> org.eclipse.core.internal.boot.DelegatingURLClassLoader.find ClassParentsSelf
> (DelegatingURLClassLoader.java:485)
> at
> org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> URLClassLoader.java:882)
> at
> org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> URLClassLoader.java:862)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> (PluginDescriptor.java:130)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> (PluginDescriptor.java:167)
> at
> org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExten
> sion(ConfigurationElement.java:103)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
> :155)
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1006)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
> at
> org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
> 661)
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
> .java:459)
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java
> :333)
> at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056
> )
> at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1887)
> at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> at
> org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
> a:96)
> at
> org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
> oup.java:111)
> at
> org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
> oup.java:250)
> at
> org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
> r.java:613)
> at
> org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
> va:384)
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:397)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1006)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:39
> 5)
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
> 605)
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
> a:694)
> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> at
> org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> a:858)
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> at org.eclipse.core.launcher.Main.run(Main.java:747)
> at org.eclipse.core.launcher.Main.main(Main.java:583)
>
>
Re: Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ? [message #38189 is a reply to message #38156] Wed, 14 July 2004 03:01 Go to previous message
Eclipse UserFriend
Originally posted by: schroeder.teccomm.les.inf.puc-rio.br

Hello George Harley.

Thanks for the help. It seems I had mistunderstood Dr. Lippert's work. A
colleague of mine told me it's an application wich lights the little planets
to ilustrate the eclipse componentized architecture. I'll try it latter.
My aspect does function now. Using wildcard (*) in "within", even using
the package nema with the wildcard, I can compile but the error in running
that is the same. Even for a simple java application. Maybe the combination
of JDK and AJDK that I'm using makes it. I've succeded using within and ors
(||) for each class in my project.

Best regards,
Bruno Schroeder

"George Harley" <gharley@uk.ibm.com> wrote in message
news:cd0bbi$o48$1@eclipse.org...
> Hi Bruno,
>
> In order to run your plug-in in a workbench I would recommend that you
> add the org.aspectj.ajde plug-in as a dependency for your plug-in. You
> should do this after you have given your PDE project an AspectJ nature.
> Doing this has the added bonus of ensuring that the aspectjrt.jar does
> not get inadvertently removed from the project build path if you choose
> to let Eclipse update your build path. See bugzilla report 62625 for
> more on this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=62625).
>
> With the (imminent) release of AJDT 1.1.11 for Eclipse 3.0, the plug-in
> dependency addition will be automatically carried out upon giving a PDE
> project an AspectJ nature. Further on down the line we hope that a more
> lightweight AspectJ plug-in that just exports aspectjrt.jar will be
> shipped in AJDT.
>
> Hope this helps. Let us know how you get on.
>
> Best regards,
> George
>
> Bruno Schroeder wrote:
> > Hello all.
> >
> > I work for a year and a half at the Software Engeneering Laboratory
from
> > PUC-Rio (http://www.teccomm.les.inf.puc-rio.br) in a project sponsored
by
> > eclipse inovation grants.
> > I'm developing a plugin and I want to add some instrumentation to
the
> > code: tracing capability. For that, I've installed AJDT on my Eclipse
2.1.2
> > platform.
> > When I run my plugin in the runtime-workbench, I get a No Class
> > definition error comming from org.eclipse.ui.workbench for
> > org/aspectj/lang/Signature.
> > I've already tried to convert org.eclipse.ui.workbench into an
aspectj
> > project. I've also tried to add aspectjrt.jar in the plugin manifest
> > plugin.xml of both org.eclipse.ui.workbench and my plugin, it was
useless.
> >
> > How do I run AspectJ Instrumented Plugin ?
> >
> > At the end follows the stack trace from the error log.
> >
> > Thnaks for the att.
> >
> > Bruno Schroeder
> >
> > java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
> > at java.lang.Class.getDeclaredConstructors0(Native Method)
> > at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> > at java.lang.Class.getConstructor0(Unknown Source)
> > at java.lang.Class.getConstructor(Unknown Source)
> > at
> >
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivatio
> > n(PluginDescriptor.java:709)
> > at
> >
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(Plugin
> > Descriptor.java:188)
> > at
> >
org.eclipse.core.internal.plugins.PluginClassLoader.activate Plugin(PluginCla
> > ssLoader.java:112)
> > at
> >
org.eclipse.core.internal.plugins.PluginClassLoader.internal FindClassParents
> > Self(PluginClassLoader.java:185)
> > at
> >
org.eclipse.core.internal.boot.DelegatingURLClassLoader.find ClassParentsSelf
> > (DelegatingURLClassLoader.java:485)
> > at
> >
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> > URLClassLoader.java:882)
> > at
> >
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> > URLClassLoader.java:862)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at
> >
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> > (PluginDescriptor.java:130)
> > at
> >
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> > (PluginDescriptor.java:167)
> > at
> >
org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExten
> > sion(ConfigurationElement.java:103)
> > at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
> > at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> > at
> >
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
> > :155)
> > at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
> > at
> >
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> > :1006)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
> > at
> >
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
> > 661)
> > at
> >
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
> > .java:459)
> > at
> >
org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java
> > :333)
> > at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056
> > )
> > at
org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
> > at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
> > at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1887)
> > at
org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> > at
> >
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
> > a:96)
> > at
> >
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
> > oup.java:111)
> > at
> >
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
> > oup.java:250)
> > at
> >
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
> > r.java:613)
> > at
> >
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
> > va:384)
> > at
> >
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:397)
> > at
> >
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> > :1006)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
> >
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:39
> > 5)
> > at
> >
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
> > 605)
> > at
> >
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
> > a:694)
> > at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> > at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> > at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
> > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> > at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> > at
> >
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> > a:858)
> > at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> > at org.eclipse.core.launcher.Main.run(Main.java:747)
> > at org.eclipse.core.launcher.Main.main(Main.java:583)
> >
> >
Re: Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ? [message #581243 is a reply to message #38089] Tue, 13 July 2004 00:27 Go to previous message
Eclipse UserFriend
Originally posted by: schroeder.teccomm.les.inf.puc-rio.br

Hello all.

I've found the article "Visualizing AspectJ-enabling Eclipse Plugins
using Bytecode Instrumentation" http://www.martinlippert.com
I could not download AspectJ-enabled Eclipse Runtime. I've tried to
reach Dr. Lippert.

Still waiting for replies,
Bruno Schroeder

"Bruno Schroeder" <schroeder@teccomm.les.inf.puc-rio.br> wrote in message
news:ccv567$tm$1@eclipse.org...
> Hello all.
>
> I work for a year and a half at the Software Engeneering Laboratory
from
> PUC-Rio (http://www.teccomm.les.inf.puc-rio.br) in a project sponsored by
> eclipse inovation grants.
> I'm developing a plugin and I want to add some instrumentation to the
> code: tracing capability. For that, I've installed AJDT on my Eclipse
2.1.2
> platform.
> When I run my plugin in the runtime-workbench, I get a No Class
> definition error comming from org.eclipse.ui.workbench for
> org/aspectj/lang/Signature.
> I've already tried to convert org.eclipse.ui.workbench into an aspectj
> project. I've also tried to add aspectjrt.jar in the plugin manifest
> plugin.xml of both org.eclipse.ui.workbench and my plugin, it was useless.
>
> How do I run AspectJ Instrumented Plugin ?
>
> At the end follows the stack trace from the error log.
>
> Thnaks for the att.
>
> Bruno Schroeder
>
> java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.getConstructor(Unknown Source)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivatio
> n(PluginDescriptor.java:709)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(Plugin
> Descriptor.java:188)
> at
>
org.eclipse.core.internal.plugins.PluginClassLoader.activate Plugin(PluginCla
> ssLoader.java:112)
> at
>
org.eclipse.core.internal.plugins.PluginClassLoader.internal FindClassParents
> Self(PluginClassLoader.java:185)
> at
>
org.eclipse.core.internal.boot.DelegatingURLClassLoader.find ClassParentsSelf
> (DelegatingURLClassLoader.java:485)
> at
>
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> URLClassLoader.java:882)
> at
>
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> URLClassLoader.java:862)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> (PluginDescriptor.java:130)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> (PluginDescriptor.java:167)
> at
>
org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExten
> sion(ConfigurationElement.java:103)
> at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
> :155)
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1006)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
> at
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
> 661)
> at
>
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
> .java:459)
> at
>
org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java
> :333)
> at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
> at
>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056
> )
> at
org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1887)
> at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> at
>
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
> a:96)
> at
>
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
> oup.java:111)
> at
>
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
> oup.java:250)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
> r.java:613)
> at
>
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
> va:384)
> at
>
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:397)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1006)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:39
> 5)
> at
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
> 605)
> at
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
> a:694)
> at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> at
>
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> a:858)
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> at org.eclipse.core.launcher.Main.run(Main.java:747)
> at org.eclipse.core.launcher.Main.main(Main.java:583)
>
>
Re: Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ? [message #581257 is a reply to message #38089] Tue, 13 July 2004 09:52 Go to previous message
George Harley is currently offline George HarleyFriend
Messages: 70
Registered: July 2009
Member
Hi Bruno,

In order to run your plug-in in a workbench I would recommend that you
add the org.aspectj.ajde plug-in as a dependency for your plug-in. You
should do this after you have given your PDE project an AspectJ nature.
Doing this has the added bonus of ensuring that the aspectjrt.jar does
not get inadvertently removed from the project build path if you choose
to let Eclipse update your build path. See bugzilla report 62625 for
more on this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=62625).

With the (imminent) release of AJDT 1.1.11 for Eclipse 3.0, the plug-in
dependency addition will be automatically carried out upon giving a PDE
project an AspectJ nature. Further on down the line we hope that a more
lightweight AspectJ plug-in that just exports aspectjrt.jar will be
shipped in AJDT.

Hope this helps. Let us know how you get on.

Best regards,
George

Bruno Schroeder wrote:
> Hello all.
>
> I work for a year and a half at the Software Engeneering Laboratory from
> PUC-Rio (http://www.teccomm.les.inf.puc-rio.br) in a project sponsored by
> eclipse inovation grants.
> I'm developing a plugin and I want to add some instrumentation to the
> code: tracing capability. For that, I've installed AJDT on my Eclipse 2.1.2
> platform.
> When I run my plugin in the runtime-workbench, I get a No Class
> definition error comming from org.eclipse.ui.workbench for
> org/aspectj/lang/Signature.
> I've already tried to convert org.eclipse.ui.workbench into an aspectj
> project. I've also tried to add aspectjrt.jar in the plugin manifest
> plugin.xml of both org.eclipse.ui.workbench and my plugin, it was useless.
>
> How do I run AspectJ Instrumented Plugin ?
>
> At the end follows the stack trace from the error log.
>
> Thnaks for the att.
>
> Bruno Schroeder
>
> java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.getConstructor(Unknown Source)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivatio
> n(PluginDescriptor.java:709)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(Plugin
> Descriptor.java:188)
> at
> org.eclipse.core.internal.plugins.PluginClassLoader.activate Plugin(PluginCla
> ssLoader.java:112)
> at
> org.eclipse.core.internal.plugins.PluginClassLoader.internal FindClassParents
> Self(PluginClassLoader.java:185)
> at
> org.eclipse.core.internal.boot.DelegatingURLClassLoader.find ClassParentsSelf
> (DelegatingURLClassLoader.java:485)
> at
> org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> URLClassLoader.java:882)
> at
> org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> URLClassLoader.java:862)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> (PluginDescriptor.java:130)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> (PluginDescriptor.java:167)
> at
> org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExten
> sion(ConfigurationElement.java:103)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
> :155)
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1006)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
> at
> org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
> 661)
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
> .java:459)
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java
> :333)
> at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056
> )
> at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1887)
> at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> at
> org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
> a:96)
> at
> org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
> oup.java:111)
> at
> org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
> oup.java:250)
> at
> org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
> r.java:613)
> at
> org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
> va:384)
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:397)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1006)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:39
> 5)
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
> 605)
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
> a:694)
> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> at
> org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> a:858)
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> at org.eclipse.core.launcher.Main.run(Main.java:747)
> at org.eclipse.core.launcher.Main.main(Main.java:583)
>
>
Re: Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ? [message #581290 is a reply to message #38156] Wed, 14 July 2004 03:01 Go to previous message
Eclipse UserFriend
Originally posted by: schroeder.teccomm.les.inf.puc-rio.br

Hello George Harley.

Thanks for the help. It seems I had mistunderstood Dr. Lippert's work. A
colleague of mine told me it's an application wich lights the little planets
to ilustrate the eclipse componentized architecture. I'll try it latter.
My aspect does function now. Using wildcard (*) in "within", even using
the package nema with the wildcard, I can compile but the error in running
that is the same. Even for a simple java application. Maybe the combination
of JDK and AJDK that I'm using makes it. I've succeded using within and ors
(||) for each class in my project.

Best regards,
Bruno Schroeder

"George Harley" <gharley@uk.ibm.com> wrote in message
news:cd0bbi$o48$1@eclipse.org...
> Hi Bruno,
>
> In order to run your plug-in in a workbench I would recommend that you
> add the org.aspectj.ajde plug-in as a dependency for your plug-in. You
> should do this after you have given your PDE project an AspectJ nature.
> Doing this has the added bonus of ensuring that the aspectjrt.jar does
> not get inadvertently removed from the project build path if you choose
> to let Eclipse update your build path. See bugzilla report 62625 for
> more on this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=62625).
>
> With the (imminent) release of AJDT 1.1.11 for Eclipse 3.0, the plug-in
> dependency addition will be automatically carried out upon giving a PDE
> project an AspectJ nature. Further on down the line we hope that a more
> lightweight AspectJ plug-in that just exports aspectjrt.jar will be
> shipped in AJDT.
>
> Hope this helps. Let us know how you get on.
>
> Best regards,
> George
>
> Bruno Schroeder wrote:
> > Hello all.
> >
> > I work for a year and a half at the Software Engeneering Laboratory
from
> > PUC-Rio (http://www.teccomm.les.inf.puc-rio.br) in a project sponsored
by
> > eclipse inovation grants.
> > I'm developing a plugin and I want to add some instrumentation to
the
> > code: tracing capability. For that, I've installed AJDT on my Eclipse
2.1.2
> > platform.
> > When I run my plugin in the runtime-workbench, I get a No Class
> > definition error comming from org.eclipse.ui.workbench for
> > org/aspectj/lang/Signature.
> > I've already tried to convert org.eclipse.ui.workbench into an
aspectj
> > project. I've also tried to add aspectjrt.jar in the plugin manifest
> > plugin.xml of both org.eclipse.ui.workbench and my plugin, it was
useless.
> >
> > How do I run AspectJ Instrumented Plugin ?
> >
> > At the end follows the stack trace from the error log.
> >
> > Thnaks for the att.
> >
> > Bruno Schroeder
> >
> > java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
> > at java.lang.Class.getDeclaredConstructors0(Native Method)
> > at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> > at java.lang.Class.getConstructor0(Unknown Source)
> > at java.lang.Class.getConstructor(Unknown Source)
> > at
> >
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivatio
> > n(PluginDescriptor.java:709)
> > at
> >
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(Plugin
> > Descriptor.java:188)
> > at
> >
org.eclipse.core.internal.plugins.PluginClassLoader.activate Plugin(PluginCla
> > ssLoader.java:112)
> > at
> >
org.eclipse.core.internal.plugins.PluginClassLoader.internal FindClassParents
> > Self(PluginClassLoader.java:185)
> > at
> >
org.eclipse.core.internal.boot.DelegatingURLClassLoader.find ClassParentsSelf
> > (DelegatingURLClassLoader.java:485)
> > at
> >
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> > URLClassLoader.java:882)
> > at
> >
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
> > URLClassLoader.java:862)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at
> >
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> > (PluginDescriptor.java:130)
> > at
> >
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension
> > (PluginDescriptor.java:167)
> > at
> >
org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExten
> > sion(ConfigurationElement.java:103)
> > at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
> > at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> > at
> >
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
> > :155)
> > at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
> > at
> >
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> > :1006)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
> > at
> >
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
> > 661)
> > at
> >
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager
> > .java:459)
> > at
> >
org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java
> > :333)
> > at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056
> > )
> > at
org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
> > at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
> > at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1887)
> > at
org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:96)
> > at
> >
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.jav
> > a:96)
> > at
> >
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGr
> > oup.java:111)
> > at
> >
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGr
> > oup.java:250)
> > at
> >
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigato
> > r.java:613)
> > at
> >
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.ja
> > va:384)
> > at
> >
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:397)
> > at
> >
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> > :1006)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
> >
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:39
> > 5)
> > at
> >
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
> > 605)
> > at
> >
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
> > a:694)
> > at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:209)
> > at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:204)
> > at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:233)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2022)
> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1729)
> > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> > at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> > at
> >
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> > a:858)
> > at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> > at org.eclipse.core.launcher.Main.run(Main.java:747)
> > at org.eclipse.core.launcher.Main.main(Main.java:583)
> >
> >
Previous Topic:Plug-in with AspectJ (PDE Development) - How do I run AspectJ Instrumented Plugin ?
Next Topic:using AJ in eclipse plugins
Goto Forum:
  


Current Time: Sat Nov 22 14:38:50 GMT 2014

Powered by FUDForum. Page generated in 0.02524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software