You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/08/09 10:30:42 UTC

DO NOT REPLY [Bug 30533] New: - search dtd with system location in CATALINA_BASE/bin

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30533>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30533

search dtd with system location in CATALINA_BASE/bin

           Summary: search dtd with system location in CATALINA_BASE/bin
           Product: Tomcat 5
           Version: 5.0.26
          Platform: PC
               URL: http://www.eurotours.at
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dietmar.mueller@eurotours.at


I have a web-app where I use some XML files with DTD for setting some
configurations. The XML look like:

<?xml version="1.0" ?>
<!DOCTYPE Request SYSTEM "Request.dtd">
<Request>
  <Methodes>
....

If I run the app I get:

java.io.FileNotFoundException: 
D:\jakarta-tomcat\bin\Request.dtd (Das System kann die angegebene Datei nicht
finden)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
        at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
        at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)

I don't belief that the bin path from catalina_home is the right location for
this kind of system DTD without any path in it. I expect the same path as the
xml document.

System:

WinNt 6a
JDK: 1.4.2-b28, mixed mode
Tomcat: 5.0.25

regards Dietmar

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org