Lomboz開發JSTL和EL

simpson發表於2005-11-03
在配置web.xml過程中
tomcat啟動時總是報錯
下面是tomcat 所報的錯誤:

資訊: Installing web application at context path /demoWeb2 from URL file:D:/java/jakarta-tomcat/webapps/demoWeb2
2005-4-22 10:47:18 org.apache.commons.digester.Digester fatalError
嚴重: Parse Fatal Error at line 1 column 7: The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

我的web.xml的配置內容是
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>

</web-app>

請問那位高手知道 配置的xml檔案 在什麼地方出現了問題?
十分感謝!~

相關文章