当前位置: 代码迷 >> Ruby/Rails >> An internal error occurred during: "Loading descriptor for pro-test."
  详细解决方案

An internal error occurred during: "Loading descriptor for pro-test."

热度:402   发布时间:2016-04-29 02:13:08.0
An internal error occurred during: "Loading descriptor for pro-test.".

在执行Maven Update的时候,提示以下错误:
An error has occurred. See error log for more details.
详细错误:
An error has occurred. See error log for more details.
java.lang.NullPointerException

重新启动Eclipse之后提示以下两个错误:
An internal error occurred during: “Loading descriptor for pro-test.”.
org.xml.sax.SAXParseExceptionpublicId: platform:/resource/pro-test/src/main/webapp/WEB-INF/web.xml;

systemId: platform:/resource/pro-test/src/main/webapp/WEB-INF/web.xml;

lineNumber: 1; columnNumber: 39; 文件提前结束。

这里写图片描述

这里写图片描述

很奇怪,web.xml中只有一行,为什么会报错!

<?xml version="1.0" encoding="UTF-8"?>

解决方案


删除web.xml文件,错误消失。

再重新创建web.xml文件,还是相同的内容,再执行 Maven Update也没有重现此错误!

  相关解决方案