tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iyad Elayyan" <ielayyan2...@hotmail.com>
Subject Content is not allowed in prolog.
Date Thu, 17 Jul 2003 07:08:39 GMT
I found what's causing this wierd error: Content is not allowed in prolog.
when using jsps in tomcat. the solution is to switch web.xml to use xsd
<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 web-app_2_4.xsd"
    version="2.4">

hope someone fixes tomcat4.0 and 5.0 to support dtds for back compatibility. 
toreproduce try the jstl-examples with a web.xml that has
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

thanks.

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message