Issue 581 in q4e: Unable to build WAR archives without all of WTP installed

5 views
Skip to first unread message

q...@googlecode.com

unread,
Nov 22, 2010, 1:07:40 PM11/22/10
to q4e...@googlegroups.com
Status: New
Owner: ----

New issue 581 by clajoie: Unable to build WAR archives without all of WTP
installed
http://code.google.com/p/q4e/issues/detail?id=581

Q4E Version: 0.11.0.20100181900
Eclipse Version: 3.6
Java Version: 1.6
OS: OS X 10.6.5

Compiling a maven project whose packaging type is "war" throws an NPE (see
below) if IAM WTP support is installed but the container related bits of
WTP are not installed.

java.lang.NullPointerException
at
org.eclipse.wst.common.componentcore.internal.resources.VirtualContainer.createLink(VirtualContainer.java:261)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.addResourceComponents(MavenWarClasspathListener.java:135)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.addOverlayWarFolders(MavenWarClasspathListener.java:107)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.resolved(MavenWarClasspathListener.java:57)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.resolveArtifacts(MavenClasspathContainer.java:272)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.refreshClasspath(MavenClasspathContainer.java:141)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.newClasspath(MavenClasspathContainer.java:181)
at
org.eclipse.iam.jdt.core.classpath.container.UpdateClasspathJob.runInWorkspace(UpdateClasspathJob.java:80)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

q...@googlecode.com

unread,
Mar 15, 2011, 7:14:44 AM3/15/11
to q4e...@googlegroups.com

Comment #1 on issue 581 by mike.jam...@gmail.com: Unable to build WAR
archives without all of WTP installed
http://code.google.com/p/q4e/issues/detail?id=581

I'm getting the same exception. Yesterday (3/14/2011) I've downloaded the
latest release of Helios for J2EE, and updated/installed new software via
Eclipse update process for GWT SDK and Eclipse IAM (Maven). Then I
downloaded the archetypes for GWT and have been trying to get that to build
an empty war project for me. It creates the project, but at the tail end
of compiling, I get this same NPE error. I can reproduce this error from
scratch (from no IDE on my machien thru NPE error). I don't understand the
workaround mentioned above, as I've downloaded a version of Eclipse that
contains the WTP stack.

Eclipse:
-----------------
Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 2
Build id: 20110218-0911

Top level error log message:
-----------------
"An internal error occurred during: "Updating classpath container:
myFirstAppComp".

Stack Trace:
-----------------


java.lang.NullPointerException
at
org.eclipse.wst.common.componentcore.internal.resources.VirtualContainer.createLink(VirtualContainer.java:261)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.addResourceComponents(MavenWarClasspathListener.java:135)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.addOverlayWarFolders(MavenWarClasspathListener.java:107)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.resolved(MavenWarClasspathListener.java:57)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.resolveArtifacts(MavenClasspathContainer.java:272)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.refreshClasspath(MavenClasspathContainer.java:141)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.newClasspath(MavenClasspathContainer.java:181)
at
org.eclipse.iam.jdt.core.classpath.container.UpdateClasspathJob.runInWorkspace(UpdateClasspathJob.java:80)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Session Data:
-----------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product

q...@googlecode.com

unread,
Mar 16, 2011, 6:05:44 AM3/16/11
to q4e...@googlegroups.com

Comment #2 on issue 581 by claj...@gmail.com: Unable to build WAR archives

At this point, as best as I can tell, the IAM project is dead so you might
want to consider moving over to the sonatype plugin.

To fix this particular issue make go to the "Install New Software" menu and
make sure you have the WST Server Adapter installed and then ensure that
you have the IAM Web Tools Support plugin installed.

q...@googlecode.com

unread,
Mar 16, 2011, 7:12:09 AM3/16/11
to q4e...@googlegroups.com

Comment #3 on issue 581 by carlossg: Unable to build WAR archives without

Please try with IAM 0.12 from
http://q4e.googlecode.com/svn/trunk/updatesite-dev/ and let us know if
still fails.

q...@googlecode.com

unread,
Jun 17, 2011, 8:29:00 AM6/17/11
to q4e...@googlegroups.com

Comment #4 on issue 581 by Francesc...@gmail.com: Unable to build WAR
archives without all of WTP installed
http://code.google.com/p/q4e/issues/detail?id=581

Hello, i'm having the same issue here with the updated version of IAM
(updated today, 2011/06/17).
Here is the error log :

Stack trace :

java.lang.NullPointerException
at
org.eclipse.wst.common.componentcore.internal.resources.VirtualContainer.createLink(VirtualContainer.java:261)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.addResourceComponents(MavenWarClasspathListener.java:135)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.addOverlayWarFolders(MavenWarClasspathListener.java:107)
at
org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListener.resolved(MavenWarClasspathListener.java:57)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.resolveArtifacts(MavenClasspathContainer.java:272)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.refreshClasspath(MavenClasspathContainer.java:141)
at
org.eclipse.iam.jdt.core.classpath.container.MavenClasspathContainer.newClasspath(MavenClasspathContainer.java:181)
at

org.eclipse.iam.jdt.core.classpath.container.UpdateClasspathJob.doRunInWorkspace(UpdateClasspathJob.java:49)
at
org.eclipse.iam.core.project.resource.MavenProjectUpdateJob.runInWorkspace(MavenProjectUpdateJob.java:68)


at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Session data :

eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=it_IT
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product
org.eclipse.epp.package.java.product -clean

Moreover, i have already installed WST Server Adapter v.
3.2.1.v201104191422-51EoAkF77g8HBSc and IAM Web Tools Support v.
0.12.0.201009031308,
so the solution proposed in comment #2 doesn't work for me.


Reply all
Reply to author
Forward
0 new messages