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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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?

Reply via email to