tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 3980] New: - bug in handling java.net.URL for document root?
Date Thu, 04 Oct 2001 21:43:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3980

bug in handling java.net.URL for document root?

           Summary: bug in handling java.net.URL for document root?
           Product: Tomcat 4
           Version: Nightly Build
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tom.costandine@optimacy.com


Using the defalt context:

<Context path="/examples" docBase="examples" debug="0"
                 reloadable="true">

I set up the default Xalan and attempt to use the XSLTSimpleServlet example to 
process a xml/xsl.  The code:

 Source xmlSource = new StreamSource(new URL("file:todo.xml").openStream());

Throws:
todo.xml (The system cannot find the file specified)
java.io.FileNotFoundException: todo.xml

i have todo.xml in webapps/examples.  If I change the statement:

Source xmlSource = new StreamSource(new URL
("file:///c:/Tomcat/webapps/examples/todo.xml").openStream());

it works, is this a problem?

Mime
View raw message