Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Could not publish to the server(Problem occurs when I try to publish my web project)
Could not publish to the server [message #1000425] Mon, 14 January 2013 13:38 Go to next message
Paulo Vitor Braga Pessoa is currently offline Paulo Vitor Braga Pessoa
Messages: 2
Registered: January 2013
Junior Member
Hi everybody,

When I try to publish one simple web project in tomcat 7 server, the wtp gives me a nullpointer with the following stacktrace:

java.lang.NullPointerException
	at org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:331)
	at org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:367)
	at org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:367)
	at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishDir(TomcatServerBehaviour.java:348)
	at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishModule(TomcatServerBehaviour.java:268)
	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:3108)
	at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)


I have tried to remove server and add again, even update eclipse!

This error never happens to me before, can you help-me?

Sorry for my bad english.

Additional information:

eclipse.buildId=M20120914-1800
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=pt_BR

Re: Could not publish to the server [message #1000487 is a reply to message #1000425] Mon, 14 January 2013 16:42 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1261
Registered: July 2009
Senior Member
On 1/14/2013 2:39 PM, Paulo Vitor Braga Pessoa wrote:
> Hi everybody,
>
> When I try to publish one simple web project in tomcat 7 server, the wtp
> gives me a nullpointer with the following stacktrace:
>
>
> java.lang.NullPointerException
> at
> org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:331)
>
> at
> org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:367)
>
> at
> org.eclipse.wst.server.core.util.PublishHelper.publishSmart(PublishHelper.java:367)
>
> at
> org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishDir(TomcatServerBehaviour.java:348)
>
> at
> org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishModule(TomcatServerBehaviour.java:268)
>
> 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:3108)
> at
> org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>
>
> I have tried to remove server and add again, even update eclipse!
>
> This error never happens to me before, can you help-me?
>
> Sorry for my bad english.
>
> Additional information:
>
> eclipse.buildId=M20120914-1800
> java.version=1.6.0_29
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=pt_BR
>
>

It's not clear exactly what scenario brings about this NPE. Does
right-clicking on the Tomcat 7 server in the Servers view and executing
"Clean..." able to get past this error?

Cheers,
Larry
Re: Could not publish to the server [message #1000768 is a reply to message #1000487] Tue, 15 January 2013 07:05 Go to previous messageGo to next message
Paulo Vitor Braga Pessoa is currently offline Paulo Vitor Braga Pessoa
Messages: 2
Registered: January 2013
Junior Member
Larry Isaacs wrote on Mon, 14 January 2013 16:42


It's not clear exactly what scenario brings about this NPE. Does
right-clicking on the Tomcat 7 server in the Servers view and executing
"Clean..." able to get past this error?

Cheers,
Larry


So, when I do this, the same NPE occurs. I tried to re-build the project and clean de work directory of tomcat too. Nothing of this actions works for me.

Thank you for the answer!

Paulo
Re: Could not publish to the server [message #1002407 is a reply to message #1000768] Fri, 18 January 2013 09:17 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1261
Registered: July 2009
Senior Member
On 1/15/2013 7:05 AM, Paulo Vitor Braga Pessoa wrote:
> Larry Isaacs wrote on Mon, 14 January 2013 16:42
>> It's not clear exactly what scenario brings about this NPE. Does
>> right-clicking on the Tomcat 7 server in the Servers view and
>> executing "Clean..." able to get past this error?
>>
>> Cheers,
>> Larry
>
>
> So, when I do this, the same NPE occurs. I tried to re-build the project
> and clean de work directory of tomcat too. Nothing of this actions works
> for me.
>
> Thank you for the answer!
>
> Paulo
>

I've inspected the code and I have no good guesses as to what is causing
you to encounter the NPE. It's not something I've ever seen. The stack
trace indicates that you have selected "Use Tomcat installation...". Do
you get the same behavior with "Use workspace metadata..."?

Cheers,
Larry
Previous Topic:Web Application wont deploy
Next Topic:JSP include from other project - false error
Goto Forum:
  


Current Time: Mon May 20 16:57:02 EDT 2013

Powered by FUDForum. Page generated in 0.01532 seconds