title: Could not publish to the server. Tomcat 7.0
body: <p>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.</p>
  
  <pre><code>java.lang.NullPointerException
      at java.io.FileInputStream.&lt;init&gt;(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
  </code></pre>