Java EclipseNeon 3中加载描述符错误
我在stackoverflow中发现了几个问题,问的是同一个问题,但没有一个问题有正确的解决方案 我已经在Eclipse中创建了一个演示动态项目。现在它显示了一条错误消息Java EclipseNeon 3中加载描述符错误,java,eclipse,eclipse-neon,Java,Eclipse,Eclipse Neon,我在stackoverflow中发现了几个问题,问的是同一个问题,但没有一个问题有正确的解决方案 我已经在Eclipse中创建了一个演示动态项目。现在它显示了一条错误消息 An internal error occurred during: "Loading descriptor for DemoServlet.". org.eclipse.emf.ecore.xmi.IllegalValueException: Value ' Container ' is not legal. (platfo
An internal error occurred during: "Loading descriptor for DemoServlet.".
org.eclipse.emf.ecore.xmi.IllegalValueException: Value '
Container
' is not legal. (platform:/resource/DemoServlet/WebContent/WEB-INF/web.xml, 15,
14)
这个错误消息在一段时间后一次又一次地显示出来,但是我能够正确地运行这个项目
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID"
version="3.1">
<display-name>DemoServlet</display-name>
<resource-ref>
<res-ref-name>
jdbc/javaDB
</res-ref-name>
<res-type>
javax.sql.DataSource
</res-type>
<res-auth>
Container
</res-auth>
</resource-ref>
<welcome-file-list>
<welcome-file>Login.html</welcome-file>
</welcome-file-list>
</web-app>
DemoServlet
jdbc/javaDB
javax.sql.DataSource
容器
Login.html
如何从eclipse中消除此错误 Eclipse工具可能过于严格,不希望在
res auth
中的实际值周围有任何空格。尝试更改它,使开始标记和结束标记之间仅包含“Container”一词。可能是Eclipse工具过于严格,不希望在res auth
中的实际值周围有任何空格。谢谢。这对我很有用。你能不能把它作为一个答案,这样我就可以接受。这可能对其他人很有帮助