[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] IBM's Websphere App Developer Issue

Helen
Thanks for volunteering. This problem has also been reported on JavaRanch site :http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=14&t=000438.

My WSAD version is 5.1.1 and the Eclispe AspectJ Development tools 1.1.4. plugin. I use a W2K machine and run the project locally to test.

The issue:
We have a mid-size J2EE project with 6 components - the traditional EAR, Client, EJB, Web projects, plus a persistance layer and a messaging layer. I have no trouble adding AspectJ nature to the pure-java projects (persistence layer and the messaging layer). If I try it with the Web or EJB projects, I get a compile error (Compile failed: reason compile failed) and the stack trace below. If I remove references to the other projects (e.g., on the web project, if I remove the EJB, persistance and messaging projects) from the class path, the compile using AspectJ compiler goes through (with any build configaration specified).

Hope this explanation helps. Adrian mentioned sending a sample project - should i create an EAR and send it to this e-mail address?

Thanks
Chandra


From: Helen Hawkins <HAWKINSH@xxxxxxxxxx>
Sent: Wednesday, January 05, 2005 3:20 PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] IBM's Websphere App Developer Issue






Hi Chandra,

If you're still having problems, could you send me the information Adrian
asked for below (AJDT version number, WSAD version etc.) so that I can have
a look at this too? It also might be worth raising an AJDT bug and we can
continue to investigate this problem there.

Thanks, Helen

Helen Hawkins
AJDT Development
hawkinsh@xxxxxxxxxx




Adrian Powell

om> To
Sent by: aspectj-users@xxxxxxxxxxx
aspectj-users-adm cc
in@xxxxxxxxxxx
Subject
Re: [aspectj-users] IBM's Websphere 29/12/2004 17:54 App Developer Issue


Please respond to
aspectj-users







Chandra,

There are some known bugs with the AspectJ integration with WSAD's EJB
Generation tools, but the stack traces look different. I'm not involved
with the AspectJ development, but I have been using it with WSAD for a
little while. If you'd like to send me some more info (AJDT version
number, WSAD version) and maybe a small sample project with this problem or
steps to reproduce it, I can try to replicate it and figure out if there
are any work arounds.

cheers,
-adrian.
--
Adrian Powell
Centre for IBM e-Business Innovation :: Vancouver
apowell@xxxxxxxxxx / 604-297-3194


"Chandra Sreeraman"

Sent by: To
aspectj-users-admin@xxxxxxxxxxx
cc

12/29/2004 09:00 AM Subject
[aspectj-users] IBM's
Websphere App Developer Issue
Please respond to
aspectj-users










Good Morning

I am a newbie to AspectJ. We use IBM's WSAD @ work and I have the AspectJ
plug-in installed for it. I am able to use aspects on a regualar Java
project, but not on a J2EE project - I get a compile error.

The core issue is this:
We use a lot of custom tags, but all these tags have lot's of SQL in them.
I want the developers to move away from this philosophy of combining
everything in the tags (refator existing ones and prevent future ones). I
decided to use AspectJ for this purpose. But, the plug-in I have refuses to
compile the project and throws the following error.

Any pointers would be higely helpful and thanks in advance.

Chandra


!ENTRY org.eclipse.ajdt.ui 4 0 Dec 29, 2004 11:48:55.679
!MESSAGE Compile failed.
!STACK 0
java.lang.NullPointerException
at java.lang.Throwable.(Throwable.java)
at java.lang.Throwable.(Throwable.java)
at java.lang.NullPointerException.(NullPointerException.java:63)
at
org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryResolver.resolveLibraryLocations(JRERuntimeClasspathEntryResolver.java:51)

at
org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry(JRERuntimeClasspathEntryResolver.java:43)

at
org.eclipse.jdt.internal.launching.RuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry(RuntimeClasspathEntryResolver.java:81)

at
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:879)

at
org.eclipse.ajdt.internal.ui.ajde.ProjectProperties.getClasspath(ProjectProperties.java:205)

at org.eclipse.ajdt.internal.builder.Builder.build(Builder.java:150)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java)

at org.eclipse.core.runtime.Platform.run(Platform.java)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125)

at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181)

at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)

at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java)

at org.eclipse.core.runtime.Platform.run(Platform.java)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165)

at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:265)
at org.eclipse.core.internal.resources.Project.build(Project.java:85)
at
org.eclipse.ajdt.internal.ui.actions.BuildSelectorAction$1.run(BuildSelectorAction.java:61)

at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)



_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users