Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat v7.0 stopped to run my project at localhost

I was working on my web application in eclipse with Tomcat v7.0, and everything was fine.
But today suddenly I can't run my poject on server anymore.
I do as usual:
Right click on my project->Run As->Run on Server and then choose to run it on my Tomcat server, but I get this error:

'Publishing to Tomcat v7.0 Server at localhost...'  
has encountered a problem  

Removing obsolete files from server...
Could not clean server of obsolete files: Premature end of file.
Premature end of file.

Does anyone know what should I do please?

web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>LinkedIn</display-name>
  <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
  </welcome-file-list>
</web-app>
like image 972
qazerty23 Avatar asked Apr 25 '14 09:04

qazerty23


1 Answers

I had similar problem, but java.lang.NullPointerException instead.

For me the only thing that worked was to:

  1. Right-click on server instance on servers view -> Properties -> Switch Location;
  2. Remove all published projects from server;
  3. Right click on server again and do both cleans.

Hope that helps!

like image 102
Kristjan Veskimäe Avatar answered Oct 20 '22 05:10

Kristjan Veskimäe