Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Error when using AspectJ with Rational Application Developer headless Ant build
Error when using AspectJ with Rational Application Developer headless Ant build [message #72675] Tue, 11 November 2008 15:38 Go to next message
Rudolf Visagie is currently offline Rudolf VisagieFriend
Messages: 2
Registered: July 2009
Junior Member
Hi

We're using AspectJ (ajdt_1.4.2_for_eclipse_3.2.zip) with Rational
Application Developer 7.0.0.7 (built on Eclipse 3.2).
When we build & deploy aspect-utilizing EJB's inside the IDE, everything
works fine.

However, when we try and build using a headless Ant build, we get the
following root exception (it happens when invoking the ejbDeploy Ant task):

Root exception:
java.lang.NoClassDefFoundError:
org.eclipse.ajdt.internal.ui.resources.AspectJImages (initialization
failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:132)
at org.eclipse.ajdt.ui.AspectJUIPlugin.start(AspectJUIPlugin.ja va:296)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(AccessController .java:246)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.osgi.framework.util.SecureAction$17.run(SecureAc tion.java:348)
at java.security.AccessController.doPrivileged(AccessController .java:279)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:346)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:88)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:334)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:347)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:595)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:278)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.core.internal.resources.NatureManager.createNatu re(NatureManager.java:228)
at org.eclipse.core.internal.resources.Project.getNature(Projec t.java:395)
at
org.eclipse.jst.j2ee.internal.validation.AWorkbenchMOFHelper .getMOFNature(AWorkbenchMOFHelper.java:75)
at
org.eclipse.jst.j2ee.internal.validation.AWorkbenchMOFHelper .getResource(AWorkbenchMOFHelper.java:39)
at
org.eclipse.jst.j2ee.internal.ejb.workbench.validation.EJBHe lper.getResource(EJBHelper.java:245)
at
org.eclipse.wst.validation.internal.operations.WorkbenchRepo rter.getMessageResource(WorkbenchReporter.java:417)
at
org.eclipse.wst.validation.internal.operations.WorkbenchRepo rter.addMessage(WorkbenchReporter.java:520)
at
org.eclipse.jst.j2ee.model.internal.validation.EJBValidation Context.addMessage(EJBValidationContext.java:138)
at
org.eclipse.jst.j2ee.model.internal.validation.ATypeVRule.va lidateRMI_IIOPTypeRules(ATypeVRule.java:582)
at
org.eclipse.jst.j2ee.model.internal.validation.AComponentVRu le.validate(AComponentVRule.java:115)
at
org.eclipse.jst.j2ee.model.internal.validation.ATypeVRule.va lidate(ATypeVRule.java:228)
at
org.eclipse.jst.j2ee.model.internal.validation.ATypeVRule.va lidate(ATypeVRule.java:79)
at
org.eclipse.jst.j2ee.model.internal.validation.AbstractEJBVa lidator.run(AbstractEJBValidator.java:133)
at
org.eclipse.jst.j2ee.model.internal.validation.EJBValidator. fullValidate(EJBValidator.java:418)
at
org.eclipse.jst.j2ee.model.internal.validation.EJBValidator. commonValidate(EJBValidator.java:80)
at
org.eclipse.jst.j2ee.model.internal.validation.EJBValidator. validateInJob(EJBValidator.java:104)
at
org.eclipse.jst.j2ee.internal.ejb.workbench.validation.UIEjb Validator.validateInJob(UIEjbValidator.java:51)
at
org.eclipse.wst.validation.internal.core.ValidatorLauncher.s tart(ValidatorLauncher.java:102)
at
org.eclipse.wst.validation.internal.operations.ValidationOpe ration.launchValidator(ValidationOperation.java:1294)
at
org.eclipse.wst.validation.internal.operations.ValidationOpe ration.internalValidate(ValidationOperation.java:1109)
at
org.eclipse.wst.validation.internal.operations.ValidationOpe ration.validate(ValidationOperation.java:1001)
at
org.eclipse.wst.validation.internal.operations.ValidationOpe ration.run(ValidationOperation.java:661)
at
com.ibm.etools.ejbdeploy.batch.plugin.HeadlessDeployOperatio n.validate(HeadlessDeployOperation.java:398)
at
com.ibm.etools.ejbdeploy.batch.plugin.HeadlessDeployOperatio n.internalJarProcess(HeadlessDeployOperation.java:183)
at
com.ibm.etools.ejbdeploy.batch.plugin.HeadlessDeployOperatio n.execute(HeadlessDeployOperation.java:74)
at
com.ibm.etools.common.frameworks.internal.datamodel.WTPOpera tion.doRun(WTPOperation.java:338)
at
com.ibm.etools.common.frameworks.internal.datamodel.WTPOpera tion$1.run(WTPOperation.java:250)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
at
com.ibm.etools.common.frameworks.internal.datamodel.WTPOpera tion.run(WTPOperation.java:268)
at com.ibm.etools.ejb.ant.EJBDeploy.execute(EJBDeploy.java:120)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential. java:64)
at net.sf.antcontrib.logic.ForEach.executeSequential(ForEach.ja va:178)
at net.sf.antcontrib.logic.ForEach.execute(ForEach.java:254)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:584)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:494)
at com.ibm.ant.extras.RunAnt.run(RunAnt.java:24)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:996)
at org.eclipse.core.launcher.Main.main(Main.java:971)


Does anybody have any idea what might cause this? Surely this Ant task
should have the AspectJ plug-in available to the IDE even though it's in
headless mode? (This is the case for the IBM plug-ins that make up RAD)

Thanks
Re: Error when using AspectJ with Rational Application Developer headless Ant build [message #72772 is a reply to message #72675] Tue, 18 November 2008 21:01 Go to previous message
Eclipse UserFriend
Originally posted by: erdal.karaca.airbus.com

I was redirected to

https://bugs.eclipse.org/bugs/show_bug.cgi?id=252641

You may try this workaround:
Add the project output (i.e. "bin" directory) to the bundle's classpath
and it should work (do this for all aspectj projects/bundles)
Re: Error when using AspectJ with Rational Application Developer headless Ant build [message #599423 is a reply to message #72675] Tue, 18 November 2008 21:01 Go to previous message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 18
Registered: July 2009
Junior Member
I was redirected to

https://bugs.eclipse.org/bugs/show_bug.cgi?id=252641

You may try this workaround:
Add the project output (i.e. "bin" directory) to the bundle's classpath
and it should work (do this for all aspectj projects/bundles)
Previous Topic:create update site with aj support
Next Topic:What arguments should be passed to ProceedingJoinPoint
Goto Forum:
  


Current Time: Thu Mar 28 14:30:50 GMT 2024

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

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

Back to the top