[jbosstools-issues] [JBoss JIRA] (JBIDE-11593) NullPointerException when publish web project to JBoss AS
Jozef Krššák (JIRA)
jira-events at lists.jboss.org
Mon Apr 23 07:46:17 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-11593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12686580#comment-12686580 ]
Jozef Krššák commented on JBIDE-11593:
--------------------------------------
I have found after adding of .settings/org.eclipse.wst.common.project.facet.core.xml
with content:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.5"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
Publish in Eclipse 3.7/JBoss Tools 3.3 works and NullPointerException does not occur.
In Eclipse 3.6/JBoss Tools 3.2 it is not necessary.
> NullPointerException when publish web project to JBoss AS
> ---------------------------------------------------------
>
> Key: JBIDE-11593
> URL: https://issues.jboss.org/browse/JBIDE-11593
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: JBossAS/Servers
> Affects Versions: 3.3.0.Beta3
> Environment: Eclipse 3.7.2 JEE 64 bit (Version: Indigo Service Release 2, Build id: 20120216-1857),
> JBoss Tools - Core 3.3 Snapshot from 4th Apr. 2012 (installed JBossAS Tools, Version: 2.3.0.v20120403-1320-H1209-Beta3),
> Maven Integration for Eclipse 0.12.1.20110112-1712,
> Subclipse 1.6.18,
> JBoss 4.2.3
> Reporter: Jozef Krššák
> Assignee: Rob Stryker
> Priority: Blocker
> Fix For: 3.3.0.Beta3
>
> Attachments: testProject2.zip
>
>
> I want to publish simple web project (WTP project) in Eclipse 3.7.2 to JBoss AS 4.2.3 with JBoss Tools 3.3 Beta3. I get NullPointerException in ResourceModuleResourceUtil.getProjectIncludesExcludes(ResourceModuleResourceUtil.java:223).
> I have tested it with JBoss Tools 3.3 Beta2 but with the similar result (in ResourceModuleResourceUtil.getProjectIncludesExcludes() but on another line).
> In Eclipse 3.6.2 with JBoss Tools 3.2 there is no problem to publish the same web project.
> Stack trace from eclipse 3.7 workspace log file:
> !ENTRY org.eclipse.wst.server.core 4 0 2012-04-20 16:22:58.670
> !MESSAGE Could not publish to the server.
> !STACK 0
> java.lang.NullPointerException
> at org.jboss.ide.eclipse.as.core.modules.ResourceModuleResourceUtil.getProjectIncludesExcludes(ResourceModuleResourceUtil.java:223)
> at org.jboss.ide.eclipse.as.core.modules.ResourceModuleResourceUtil.findDefaultModuleFilter(ResourceModuleResourceUtil.java:172)
> at org.jboss.ide.eclipse.as.core.server.internal.AbstractBehaviourDelegate.getPathFilter(AbstractBehaviourDelegate.java:98)
> at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.getPathFilter(DelegatingServerBehavior.java:78)
> at org.jboss.ide.eclipse.as.core.publishers.AbstractServerToolsPublisher.getPathFilter(AbstractServerToolsPublisher.java:275)
> at org.jboss.ide.eclipse.as.core.publishers.AbstractServerToolsPublisher.fullPublish(AbstractServerToolsPublisher.java:218)
> at org.jboss.ide.eclipse.as.core.publishers.AbstractServerToolsPublisher.publishModule(AbstractServerToolsPublisher.java:117)
> at org.jboss.ide.eclipse.as.core.server.internal.v7.JBoss7JSTPublisher.publishModule(JBoss7JSTPublisher.java:42)
> at org.jboss.ide.eclipse.as.core.publishers.AbstractPublishMethod.publishModule(AbstractPublishMethod.java:75)
> at org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.publishModule(DeployableServerBehavior.java:119)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1046)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1138)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:955)
> at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
> at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3087)
> at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list