Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing obsolete files from server... Could not clean server of obsolete files: Content is not allowed in prolog

Publishing Error in Tomcat Servr

I am creating a project which is in jsp,servlet and tomcat v 8.0.upto last night it works fine but today it didn't work it gives error in publishing tomcat server,please give me any suggestions. I used Eclipse Mars and Tomcat v8.0 Actually I try to clean Tomcat Work Directory and also clean project("build/clean"), but still i get this error what should I do??

like image 356
Meghan Bidwaik Avatar asked Mar 24 '16 09:03

Meghan Bidwaik


Video Answer


4 Answers

One or more of the temporary xml files have become corrupt.

  • Close eclipse.
  • In your workspace go to .metadata/.plugins/org.eclipse.wst.server.core
  • Delete the tmp[#] folder. (where [#] is some number). Mine was called tmp0
  • Start eclipse
like image 50
pyropunk51 Avatar answered Oct 20 '22 07:10

pyropunk51


From the Servers view:

  • right click on your server
  • properties
  • Switch Location

This worked for me.

like image 32
Akrax Avatar answered Oct 20 '22 09:10

Akrax


In my case, the server.xml file in Tomcat directory (/conf/server.xml) was corrupt. Replacing it with the original version worked for me.

like image 39
Padmini C Avatar answered Oct 20 '22 08:10

Padmini C


Your tomcat apache has been corrupted. so you have to delete your server and configure again. I

like image 27
suraj mahto Avatar answered Oct 20 '22 07:10

suraj mahto