在执行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也没有重现此错误!
走过的路成为背后的风景,不能回头不能停留,若此刻停留,