Hello, We are trying to automate the pre-compilation of our JSP files with JspC and the inclusion of the generated "webinc.xml" file in our application "web.xml" file. We have constructed an application web.xml as shown below. Both "web.xml" and "webinc.xml" are local to the .../webapps/<application>/WEB-INF/ directory.
Our problem is that Tomcat complains when starting up with the message: org.xml.sax.SAXParseException: Relative URI "webinc.xml"; can not be resolved without a base URI. Note the local reference to "webinc.xml" below in the DOCTYPE tag. If we change the reference to "webinc.xml" to an absolute URI of the form below (on Windows): file://E/jakarta-tomcat-4.0.4b3/webapps/appname/WEB-INF/webinc.xml ... we get a null pointer exception when Tomcat starts up (parser error at the line where we reference the file to be included): 2002-06-04 08:55:27 ContextConfig[/voicemail] Parse error in application web.xml java.lang.NullPointerException at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) ... What are we doing wrong? We're using Tomcat 4.0.4b3. Thanks, Alan Tingley Iperia, Inc. --- The application web.xml file: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" [<!ENTITY includes SYSTEM "webinc.xml">] > <web-app> <!-- all of the precompiled jsp declarations and mappings are in this included file from the JspC --> &includes; </web-app> --- Output when starting up Tomcat: Starting service Tomcat-Standalone Apache Tomcat/4.0.4-b3 PARSE error at line 6 column -1 org.xml.sax.SAXParseException: Relative URI "webinc.xml"; can not be resolved without a base URI. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>