gpt4 book ai didi

java - 错误 : The markup in the document following the root element must be well-formed

转载 作者:行者123 更新时间:2023-11-28 22:34:34 26 4
gpt4 key购买 nike

<分区>

以下是我项目的META-INF目录下的context.xml文件:

<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/poll"/>

<Resource name="jdbc/PollDatasource" auth="Container" type="javax.sql.DataSource"
driverClassName="org.apache.derby.jdbc.ClientDriver"
url="jdbc:derby://localhost:1527/poll database;create=true"
username="suhail" password="suhail"
maxActive="20" maxIdle="10" maxWait="-1" />

但是当我尝试部署/运行项目 netbeans 时会产生以下错误:

[Fatal Error] :4:2: The markup in the document following the root element must be 
well-formed.
W:\UnderTest\NetbeansCurrent\poll\nbproject\build-impl.xml:721: Deployment error:
Tomcat configuration file
W:\UnderTest\NetbeansCurrent\poll\web\META-INF\context.xml seems to be broken.
Please make sure it is parseable and valid.
See the server log for details.

为什么会出现这个错误?我在 context.xml 中添加了数据库信息。

enter image description here

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com