found the answer myself with some experimenting.  I was able to reach the file by changing the protocol to http and putting in my port number.  basically treating it like a jsp.  Now I have my next problem.  One that I have been worrying that I would have for about for a day or so.

java.io.IOException: Problems occurred:Error on line 6 of document
                                                               http://duck1.lilly.com:7655/catd/validation.xsd: General Schema Error: Grammar with uri 2:
                                                               http://www.w3.org/2000/10/XMLSchema , can not found. at

I'm inside a firewall, using a proxy server.  Anyone have a solution or ideas for this one?


Jonathan Bricker
Lilly Research Labs
Java ATG



[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]

04/10/01 09:45 AM
Please respond to Orion-Interest

       
        To:        Orion-Interest <[EMAIL PROTECTED]>
        cc:        
        Subject:        Java URL to a file from within container



I want to parse an XML file and I'm creating a java.net.URL to give the location but I seem to be running into trouble.  Here is what I have:


The XML file is in the .war file and is in the application( /proj/orion/application/catd/catd)


I create a URL like this:


URL schemaURL = new URL("file","duck1.lilly.com","/proj/orion/application/catd/catd/validation.xsd");


basically, file protocol, the machine the file is on and the exact directory.


This is created and called within a servlet but with the exact URL it should not matter which layer of the container the files are at.


The file parses so it is not a problem with the parser or file.


Has anyone done something like this before?



Jonathan Bricker
Lilly Research Labs
Java ATG


Reply via email to