eclipse 正在从服务器中删除过时的文件...无法清除过时文件的服务器:prolog 中不允许使用内容

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36196734/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 23:06:15  来源:igfitidea点击:

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

eclipsejspservletstomcat8

提问by Meghan Bidwaik

Publishing Error in Tomcat Servr

Tomcat 服务器发布错误

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??

我正在创建一个项目,它在 jsp、servlet 和 tomcat v 8.0.upto 中昨晚它工作正常但今天它没有工作它在发布 tomcat 服务器时出错,请给我任何建议。我使用了 Eclipse Mars 和 Tomcat v8.0 实际上我尝试清理 Tomcat 工作目录并清理项目(“构建/清理”),但仍然出现此错误我该怎么办?

回答by pyropunk51

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

一个或多个临时 xml 文件已损坏。

  • 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
  • 关闭日食。
  • 在你的工作区去 .metadata/.plugins/org.eclipse.wst.server.core
  • 删除 tmp[#] 文件夹。(其中 [#] 是某个数字)。我的被​​称为 tmp0
  • 开始日食

回答by Padmini C

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

就我而言,Tomcat 目录 (/conf/server.xml) 中的 server.xml 文件已损坏。用原始版本替换它对我有用。

回答by Akshay bhavsar

Here you have to follow some steps:

在这里你必须遵循一些步骤:

  • go to the server and right-click on the server, click on delete
  • click to remove all servers from the list and press apply & save
  • add the server (tomcat or other)
  • start that server
  • 转到服务器并右键单击服务器,单击删除
  • 单击以从列表中删除所有服务器,然后按应用并保存
  • 添加服务器(tomcat 或其他)
  • 启动那个服务器

You have to wait for sometime while it configure all data, finally click on restart server.

您必须等待一段时间才能配置所有数据,最后单击重新启动服务器。