Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Eclipse RCP with AspectJ - how to export?
Eclipse RCP with AspectJ - how to export? [message #501051] Mon, 30 November 2009 19:40 Go to next message
Tobias Hoppenthaler is currently offline Tobias Hoppenthaler
Messages: 21
Registered: July 2009
Junior Member
I am trying to export my Eclipse RCP but I had no success so far. It
runs perfectly in the IDE and I even can export it fine, but when I run
the export, it always says the following on startup:

[org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ...

osgi> [org.eclipse.equinox.weaving.aspectj] info Starting AspectJ
weaving servic
e ...
30.11.2009 18:57:09 org.aspectj.weaver.tools.Jdk14Trace error
SEVERE: register definition failed
java.lang.RuntimeException: Cannot register non aspect:
com$company$erp$client$core$
aspects$OneToOneAspect , com.company.erp.client.core.aspects.OneToOneAspect
at
org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeav er.java:2
22)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erAspects
(ClassLoaderWeavingAdaptor.java:433)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erDefinit
ions(ClassLoaderWeavingAdaptor.java:267)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initia lize(Clas
sLoaderWeavingAdaptor.java:159)
at
org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdap tor.initi
alize(Unknown Source)
at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.en sureAdapt
orInit(Unknown Source)
at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.pr eProcess(
Unknown Source)
at
org.eclipse.equinox.weaving.adaptors.WeavingAdaptor.weaveCla ss(Unknow
n Source)
at
org.eclipse.equinox.weaving.hooks.WeavingHook.processClass(U nknown So
urce)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(Clas
spathManager.java:571)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(Cl
asspathManager.java:546)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassIm
pl(ClasspathManager.java:477)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_L
ockClassLoader(ClasspathManager.java:465)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(C
lasspathManager.java:445)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalCla
ss(DefaultClassLoader.java:211)
at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLo
ader.java:381)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
eLoader.java:457)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:410)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:398)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
faultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.
java:326)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleH
ost.java:231)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(Abs
tractBundle.java:1193)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createEx
ecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutable
Extension(ExtensionRegistry.java:874)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecuta
bleExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createE
xecutableExtension(ConfigurationElementHandle.java:51)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandl
e.java:189)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runAppli
cation(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Ec
lipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:179)
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.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
[com.company.erp.client.core] warning register definition failed --
(RuntimeExceptio
n) Cannot register non aspect:
com$company$erp$client$core$aspects$OneToOneAspect ,
com.company.erp.client.core.aspects.OneToOneAspect
Cannot register non aspect:
com$company$erp$client$core$aspects$OneToOneAspect , com
..company.erp.client.core.aspects.OneToOneAspect
java.lang.RuntimeException: Cannot register non aspect:
com$company$erp$client$core$
aspects$OneToOneAspect , com.company.erp.client.core.aspects.OneToOneAspect
at
org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeav er.java:2
22)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erAspects
(ClassLoaderWeavingAdaptor.java:433)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erDefinit
ions(ClassLoaderWeavingAdaptor.java:267)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initia lize(Clas
sLoaderWeavingAdaptor.java:159)
at
org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdap tor.initi
alize(Unknown Source)
at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.en sureAdapt
orInit(Unknown Source)
at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.pr eProcess(
Unknown Source)
at
org.eclipse.equinox.weaving.adaptors.WeavingAdaptor.weaveCla ss(Unknow
n Source)
at
org.eclipse.equinox.weaving.hooks.WeavingHook.processClass(U nknown So
urce)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(Clas
spathManager.java:571)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(Cl
asspathManager.java:546)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassIm
pl(ClasspathManager.java:477)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_L
ockClassLoader(ClasspathManager.java:465)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(C
lasspathManager.java:445)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalCla
ss(DefaultClassLoader.java:211)
at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLo
ader.java:381)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
eLoader.java:457)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:410)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:398)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
faultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.
java:326)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleH
ost.java:231)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(Abs
tractBundle.java:1193)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createEx
ecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutable
Extension(ExtensionRegistry.java:874)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecuta
bleExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createE
xecutableExtension(ConfigurationElementHandle.java:51)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandl
e.java:189)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runAppli
cation(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Ec
lipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:179)
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.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

[org.eclipse.equinox.weaving.aspectj] info not weaving bundle
'com.company.erp.clien
t.core'

I read that I would have to use a different export dialog to export my
rcp with aspectj support. I just do not know, how to do that or where to
find that dialog. Any help would be appreciated!

Thanks,

Tobias
Re: Eclipse RCP with AspectJ - how to export? [message #501131 is a reply to message #501051] Tue, 01 December 2009 08:33 Go to previous messageGo to next message
Tobias Hoppenthaler is currently offline Tobias Hoppenthaler
Messages: 21
Registered: July 2009
Junior Member
I found the export with AspectJ in the context menu of the plugin, but
the export stalls at every platform dependent fragment with the
following error message:

C:\workspaces\TobiasHoppenthaler\.metadata\.plugins\org.ecli pse.pde.core\temp\org.eclipse.pde.container.feature\compile. org.eclipse.pde.container.feature.xml:8:
The following error occurred while executing this line:
C:\workspaces\TobiasHoppenthaler\com.tm3.erp.client.jpos.win 32\build.xml:190:
The following error occurred while executing this line:
C:\workspaces\TobiasHoppenthaler\com.company.erp.client.jpos .win32\build.xml:146:
failure[-1] running ajc
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:508)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:622)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:455)
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.ant.core.AntRunner.run(AntRunner.java:378)
at
org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:482)
at
org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:321)
at
org.eclipse.ajdt.internal.core.exports.ProductExportOperatio n.run(ProductExportOperation.java:130)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by:
C:\workspaces\TobiasHoppenthaler\com.company.erp.client.jpos .win32\build.xml:190:
The following error occurred while executing this line:
C:\workspaces\TobiasHoppenthaler\com.company.erp.client.jpos .win32\build.xml:146:
failure[-1] running ajc
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:508)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:38)
at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
.... 24 more
Caused by:
C:\workspaces\TobiasHoppenthaler\com.company.client.jpos.win 32\build.xml:146:
failure[-1] running ajc
at
org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1355)
at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1040)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:38)
at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
.... 38 more
--- Nested Exception ---
C:\workspaces\TobiasHoppenthaler\com.company.client.jpos.win 32\build.xml:190:
The following error occurred while executing this line:
C:\workspaces\TobiasHoppenthaler\com.company.client.jpos.win 32\build.xml:146:
failure[-1] running ajc
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:508)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:38)
at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:622)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:455)
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.ant.core.AntRunner.run(AntRunner.java:378)
at
org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:482)
at
org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:321)
at
org.eclipse.ajdt.internal.core.exports.ProductExportOperatio n.run(ProductExportOperation.java:130)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by:
C:\workspaces\TobiasHoppenthaler\com.company.client.jpos.win 32\build.xml:146:
failure[-1] running ajc
at
org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1355)
at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1040)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:38)
at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
.... 38 more
--- Nested Exception ---
C:\workspaces\TobiasHoppenthaler\com.company.client.jpos.win 32\build.xml:146:
failure[-1] running ajc
at
org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1355)
at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1040)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:38)
at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:38)
at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:622)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:455)
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.ant.core.AntRunner.run(AntRunner.java:378)
at
org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:482)
at
org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:321)
at
org.eclipse.ajdt.internal.core.exports.ProductExportOperatio n.run(ProductExportOperation.java:130)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


I would be really happy about every piece of advice,

Tobias

Tobias Hoppenthaler wrote:
> I am trying to export my Eclipse RCP but I had no success so far. It
> runs perfectly in the IDE and I even can export it fine, but when I run
> the export, it always says the following on startup:
>
> [org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ...
>
> osgi> [org.eclipse.equinox.weaving.aspectj] info Starting AspectJ
> weaving servic
> e ...
> 30.11.2009 18:57:09 org.aspectj.weaver.tools.Jdk14Trace error
> SEVERE: register definition failed
> java.lang.RuntimeException: Cannot register non aspect:
> com$company$erp$client$core$
> aspects$OneToOneAspect , com.company.erp.client.core.aspects.OneToOneAspect
> at
> org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeav er.java:2
> 22)
> at
> org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erAspects
> (ClassLoaderWeavingAdaptor.java:433)
> at
> org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erDefinit
> ions(ClassLoaderWeavingAdaptor.java:267)
> at
> org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initia lize(Clas
> sLoaderWeavingAdaptor.java:159)
> at
> org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdap tor.initi
> alize(Unknown Source)
> at
> org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.en sureAdapt
> orInit(Unknown Source)
> at
> org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.pr eProcess(
> Unknown Source)
> at
> org.eclipse.equinox.weaving.adaptors.WeavingAdaptor.weaveCla ss(Unknow
> n Source)
> at
> org.eclipse.equinox.weaving.hooks.WeavingHook.processClass(U nknown So
> urce)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(Clas
> spathManager.java:571)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(Cl
> asspathManager.java:546)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassIm
> pl(ClasspathManager.java:477)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_L
> ockClassLoader(ClasspathManager.java:465)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(C
> lasspathManager.java:445)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalCla
> ss(DefaultClassLoader.java:211)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLo
> ader.java:381)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
> eLoader.java:457)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
> java:410)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
> java:398)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
> faultClassLoader.java:105)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.
> java:326)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleH
> ost.java:231)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(Abs
> tractBundle.java:1193)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createEx
> ecutableExtension(RegistryStrategyOSGI.java:160)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutable
> Extension(ExtensionRegistry.java:874)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecuta
> bleExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createE
> xecutableExtension(ConfigurationElementHandle.java:51)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandl
> e.java:189)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runAppli
> cation(EclipseAppLauncher.java:110)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Ec
> lipseAppLauncher.java:79)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
> va:368)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
> va:179)
> 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.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> [com.company.erp.client.core] warning register definition failed --
> (RuntimeExceptio
> n) Cannot register non aspect:
> com$company$erp$client$core$aspects$OneToOneAspect ,
> com.company.erp.client.core.aspects.OneToOneAspect
> Cannot register non aspect:
> com$company$erp$client$core$aspects$OneToOneAspect , com
> .company.erp.client.core.aspects.OneToOneAspect
> java.lang.RuntimeException: Cannot register non aspect:
> com$company$erp$client$core$
> aspects$OneToOneAspect , com.company.erp.client.core.aspects.OneToOneAspect
> at
> org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeav er.java:2
> 22)
> at
> org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erAspects
> (ClassLoaderWeavingAdaptor.java:433)
> at
> org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erDefinit
> ions(ClassLoaderWeavingAdaptor.java:267)
> at
> org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initia lize(Clas
> sLoaderWeavingAdaptor.java:159)
> at
> org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdap tor.initi
> alize(Unknown Source)
> at
> org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.en sureAdapt
> orInit(Unknown Source)
> at
> org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.pr eProcess(
> Unknown Source)
> at
> org.eclipse.equinox.weaving.adaptors.WeavingAdaptor.weaveCla ss(Unknow
> n Source)
> at
> org.eclipse.equinox.weaving.hooks.WeavingHook.processClass(U nknown So
> urce)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(Clas
> spathManager.java:571)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(Cl
> asspathManager.java:546)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassIm
> pl(ClasspathManager.java:477)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_L
> ockClassLoader(ClasspathManager.java:465)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(C
> lasspathManager.java:445)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalCla
> ss(DefaultClassLoader.java:211)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLo
> ader.java:381)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
> eLoader.java:457)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
> java:410)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
> java:398)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
> faultClassLoader.java:105)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.
> java:326)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleH
> ost.java:231)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(Abs
> tractBundle.java:1193)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createEx
> ecutableExtension(RegistryStrategyOSGI.java:160)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutable
> Extension(ExtensionRegistry.java:874)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecuta
> bleExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createE
> xecutableExtension(ConfigurationElementHandle.java:51)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandl
> e.java:189)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runAppli
> cation(EclipseAppLauncher.java:110)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Ec
> lipseAppLauncher.java:79)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
> va:368)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
> va:179)
> 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.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
>
> [org.eclipse.equinox.weaving.aspectj] info not weaving bundle
> 'com.company.erp.clien
> t.core'
>
> I read that I would have to use a different export dialog to export my
> rcp with aspectj support. I just do not know, how to do that or where to
> find that dialog. Any help would be appreciated!
>
> Thanks,
>
> Tobias
Re: Eclipse RCP with AspectJ - how to export? [message #638810 is a reply to message #501051] Fri, 12 November 2010 16:10 Go to previous message
André Santos is currently offline André Santos
Messages: 1
Registered: November 2010
Junior Member
Hi!

Apparently I'm having the same problem as you. I'm trying to export an RCP product with AspectJ and I get an error in the export process that I cannot find the cause.

Did you end up successful on this? Could you give me a hint?

I'd be very thankful,
best regards,

André
Previous Topic:Eclipse Progress View
Next Topic:Command line RCP
Goto Forum:
  


Current Time: Tue Sep 16 13:41:42 GMT 2014

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

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