tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Mahe <bm...@activia.net>
Subject Entity in web.xml
Date Fri, 22 Mar 2002 09:49:17 GMT
Hello, I'm trying to use entity in web.xml for tomcat 4.0.3, but
it doesn't work:

Here is my web.xml:

<!DOCTYPE web-app 
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" 
[ 
<!ENTITY jspdecl SYSTEM "/var/tomcat4/webapps/ROOT/WEB-INF/jspdecl.xml">
]>

<web-app>

 <!-- ... -->

 &jspdecl;

</web-app>

But when tomcat starts, I got an exception:

2002-03-22 09:39:42 ContextConfig[] Parse error in application web.xml
java.lang.NullPointerException
	at java.util.Hashtable.get(Hashtable.java:320)
	at
org.apache.catalina.util.xml.XmlMapper.resolveEntity(XmlMapper.java:441)
	at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntity(DefaultEntityHandler.java)
	at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromEntity(DefaultEntityHandler.java)
...

Are you using entities in web.xml with tomcat 4.0.3?

Regards, 

Benoit Mahe.




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


Mime
View raw message