我收到以下錯誤在我的應用程序的一個匹配一個只有一個web.xml和pom.xml的servlet。CORE3282:標準輸出:org.xml.sax.SAXParseException: -</p> <pre><code>CORE3282: stdout: org.xml.sax.SAXParseException: Document root element "taglib", mustmatch DOCTYPE root "null" </code></pre> <p>應用程序只有文檔根元素「標籤庫」,必須DOCTYPE根「空」
WEB.XML =======
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Test</display-name>
<description>Test Servlet</description>
<servlet>
<servlet-name>open</servlet-name>
<servlet-class>com.test.openRateServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>open</servlet-name>
<url-pattern>/email</url-pattern>
</servlet-mapping>
</web-app>
這個問題是否與我的web應用程序和Tomcat版本的不匹配?
你在你的ptoject中使用了一些其他的taglib嗎? – 2013-04-21 03:39:23