Well, it still doesn't works :( Now I got:
XmlMapper: Can't find resource for entity: jspdecl --> /var/tomcat4/webapps/ROOT/WEB-INF/jspdecl.xml "null" PARSE error at line 0 column 0 org.xml.sax.SAXParseException: File "/var/tomcat4/webapps/ROOT/WEB-INF/jspdecl.xml" not found. Thank you for your help. Regards, Benoit. On Fri, 2002-03-22 at 10:57, Szegedi, Attila wrote: > Try declaring your ENTITY using a public identifier: > > <!ENTITY jspdecl PUBLIC "jspdecl" > "/var/tomcat4/webapps/ROOT/WEB-INF/jspdecl.xml"> > > This works for me altough I've only used Tomcat 3.x versions this far. > Cheers, > Attila. > > > -----Original Message----- > > From: Benoit Mahe [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 22, 2002 10:49 AM > > To: Szegedi, Attila; > > Cc: Benoit Mahe > > Subject: 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.startReadingFro > > mExternalEntity(DefaultEntityHandler.java) > > at > > org.apache.xerces.readers.DefaultEntityHandler.startReadingFro > > mEntity(DefaultEntityHandler.java) > > ... > > > > Are you using entities in web.xml with tomcat 4.0.3? > > > > Regards, > > > > Benoit Mahe. > > > > > > > > -- -- Benoit Mahe -- -- ActiVia Networks -- -- Constellation Manager, Project Leader -- -- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>