I have placed my web.xml as well web-app_2_2.dtd in the same folder i.e. (orange.ear\orange.war\WEB-INF), since I don't want to go outside my firewall to do DTD validation.
My web.xml looks like:
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN" "web-app_2_2.dtd">
<web-app>
<servlet-name>LogViewer</servlet-name>
<servlet-class>com.orange.util.logviewer.LogViewServlet</servlet-class>
<servlet-name>vfLobbyServlet</servlet-name>
<servlet-class>com.orange.main.servlet.vfLobbyServlet</servlet-class>
:
:
:
:
</web-app>
In this configuration, during the server(JBOSS-3.0.2_tomcat-4.1.12) start-up I encounter following exception:
19:30:25,927 ERROR [XmlFileLoader] Relative URI "web-app_2_2.dtd"; can not be re
solved without a document URI.:-1:2
org.xml.sax.SAXParseException: Relative URI "web-app_2_2.dtd"; can not be resolv
ed without a document URI.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3108)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3102)
at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2700)
at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2672)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1117)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
Has anyone encountered this problem? If so what is the ideal solution to this problem?
THANKS!
have you tried /WEB-INF/web-app_2_2.dtd?
Not sure if that will work, but the web app root is the dir before WEB-INF, so maybe you need to specify it.