[jboss-user] [JBoss Tools] - jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE
R Finlayson
do-not-reply at jboss.com
Thu Dec 29 16:50:26 EST 2011
R Finlayson [http://community.jboss.org/people/rfinlayson] created the discussion
"jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE"
To view the discussion, visit: http://community.jboss.org/message/643854#643854
--------------------------------------------------------------
Hi,
Eclipse Indigo 3.6 latest 2011/12/29
m2e latest
m2e-wtp latest
jBossTools latest
Maven project is jboss-sar packaging configured with jboss-packaging-maven-plugin.
Import Maven Project:
java.lang.NullPointerException
at org.jboss.ide.eclipse.as.wtp.core.vcf.ExportedClassFolderReferenceResolver.canResolve(ExportedClassFolderReferenceResolver.java:36)
at org.eclipse.wst.common.componentcore.resolvers.ReferenceResolverUtil.getResolver(ReferenceResolverUtil.java:43)
at org.eclipse.wst.common.componentcore.internal.StructureEdit.createVirtualReference(StructureEdit.java:326)
at org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualComponent.getHardReferences(JBTVirtualComponent.java:106)
at org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualComponent.getReferences(JBTVirtualComponent.java:76)
at org.maven.ide.eclipse.wtp.overlay.internal.servers.OverlayResourceChangeListener.hasOverlayChanged(OverlayResourceChangeListener.java:117)
at org.maven.ide.eclipse.wtp.overlay.internal.servers.OverlayResourceChangeListener.resourceChanged(OverlayResourceChangeListener.java:60)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
...
Seems that "ReferencedComponent.getHandle()" returns null.
Project builds with mvn OK, project import doesn't complete with NPE above, in Eclipse Indigo, m2e and m2e-wtp, with jBoss Tools Maven integration.
Other projects in workspace (EAR, WAR, Dynamic Web Modules) import and build OK and work with m2e-wtp OK.
How can I resolve this?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/643854#643854]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111229/3a083c5b/attachment.html
More information about the jboss-user
mailing list