Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not publish to the server. Tomcat 7.0

Tags:

eclipse

tomcat

I am getting below error when trying to deploy war file on Tomcat 7.0.28 server. My Eclipse is Eclipse Java EE IDE for Web Developers.Version: Indigo Service Release 2 Build id: 20120216-1857. I would appreicate if anyone can provide a solution/fix? Is it related to version of eclipse or tomcat compatability? Thanks.

java.lang.NullPointerException
    at java.io.FileInputStream.<init>(Unknown Source)
    at org.eclipse.wst.server.core.util.PublishHelper.copyFile(PublishHelper.java:501)
    at org.eclipse.wst.server.core.util.PublishHelper.publishDelta(PublishHelper.java:435)
    at org.eclipse.wst.server.core.util.PublishHelper.publishDelta(PublishHelper.java:459)
    at org.eclipse.wst.server.core.util.PublishHelper.publishDelta(PublishHelper.java:459)
    at org.eclipse.jst.server.tomcat.core.internal.PublishOperation2.publishDir(PublishOperation2.java:141)
    at org.eclipse.jst.server.tomcat.core.internal.PublishOperation2.execute(PublishOperation2.java:82)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.performTasks(ServerBehaviourDelegate.java:1290)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:933)
    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)


eclipse.buildId=M20120208-0800
java.version=1.6.0_32
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
like image 839
user1549311 Avatar asked Jul 24 '12 16:07

user1549311


1 Answers

If you using Eclipse or Myeclipse IDE's, Clean all projects like Project --> Clean --> Clean all projects --> Ok. Now its working fine

like image 140
chakri Avatar answered Nov 15 '22 02:11

chakri