Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Package WAR gives NullPointer Exception
Package WAR gives NullPointer Exception [message #572543] Thu, 04 March 2010 19:11
Tom Talbott is currently offline Tom TalbottFriend
Messages: 11
Registered: July 2009
Junior Member
I am trying to use the WAR Overlay functionality in the latest IAM. If Packaging is set to 'war' in the pom.xml file, I get the following exception:

eclipse.buildId=M20090917-0800
java.version=1.5.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation


Error
Thu Mar 04 10:50:13 PST 2010
Unexpected error on project P/sersol-cas: java.lang.NullPointerException

java.lang.NullPointerException
at org.codehaus.plexus.util.xml.Xpp3Dom.<init>(Xpp3Dom.java:73)
at org.apache.maven.lifecycle.LifecycleUtils.mergeBindings(Life cycleUtils.java:304)
at org.apache.maven.lifecycle.plan.BuildPlan.<init>(BuildPlan.java:47)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan_aroundBody0(DefaultBuildPlanner.java:103)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan(DefaultBuildPlanner.java:1)
at org.eclipse.iam.core.embedder.internal.EclipseMavenBuildPlan ner.constructBuildPlan(EclipseMavenBuildPlanner.java:43)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:571)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:537)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.getGoals ForPhase(EclipseMaven.java:937)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.g etExecutionMojos(EclipseMavenRequest.java:436)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.r un(EclipseMavenRequest.java:106)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:175)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:160)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.run WarExploded(WarBuilderDelegate.java:378)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.pro cessOverlayWar(WarBuilderDelegate.java:220)
at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe ner.addOverlayWarFolders(MavenWarClasspathListener.java:123)
at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe ner.resolved(MavenWarClasspathListener.java:57)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.resolveArtifacts(MavenClasspathContainer.java:272)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.refreshClasspath(MavenClasspathContainer.java:141)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.newClasspath(MavenClasspathContainer.java:181)
at org.eclipse.iam.jdt.core.classpath.container.UpdateClasspath Job.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:55)

The pom.xml is as follows:

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sersol</groupId>
<artifactId>sersol-cas</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>sersol-cas</warName>
<packagingExcludes>**/*.ORIG</packagingExcludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<version>${cas.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-core</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>edu.ucmerced.cas</groupId>
<artifactId>cas-server-support-shib</artifactId>
<version>3.3.5a</version>
</dependency>

</dependencies>


<properties>
<cas.version>3.3.5</cas.version>
</properties>

<repositories>
<repository>
<id>ja-sig</id>
<url>http://developer.ja-sig.org/maven2/</url>
</repository>
</repositories>
</project>

Any ideas?

Thanks,
-Tom
Previous Topic:File org.eclipse.wst.common.component modified
Next Topic:Disable Dependecy Path Update
Goto Forum:
  


Current Time: Sat Dec 20 14:38:28 GMT 2014

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

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