1 Reply Latest reply on Jun 10, 2003 4:40 PM by Kevin

    Relative URI "web-app_2_2.dtd"; can not be resolved ...

    Ram Newbie

      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!