You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Benoit Mahe <bm...@activia.net> on 2002/03/22 10:49:17 UTC

Entity in web.xml

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>