title: Publish on Tomcat from Eclipse
body: <p>I have problem when publishing web project on tomcat. I've got this error:</p>
  
  <p>!ENTRY org.eclipse.wst.server.core 4 0 2013-07-17 14:22:41.293
  !MESSAGE Could not publish to the server.
  !STACK 0
  java.lang.NullPointerException
          at org.eclipse.wst.common.componentcore.internal.util.VirtualReferenceUtilities.getDefaultProjectArchiveName(VirtualReferenceUtilities.java:81)
          at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getJavaClasspathReferences(J2EEModuleVirtualComponent.java:338)
          at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getNonManifestRefs(J2EEModuleVirtualComponent.java:242)
          at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getReferences(J2EEModuleVirtualComponent.java:166)</p>
  
  <p>But If I turn off Maven's resolve dependencies from Workspace in web project everything works fine.</p>
  
  <p>Any idea</p>
  
  <p>Thanks</p>
  
  <p>Zlaja</p>