Hi
I have some code which says:
xmlFile = "file:///home/harry/fastcar/Jaguar.xml"
DOMParser parser = new DOMParser();
parser.parse(xmlFile);
Specifying a filename in this form works fine when run as an
application, but as a servlet, it gives:
org.xml.sax.SAXParseException: File
"file:///home/harry/fastcar/Jaguar.xml" not found.
at org.apache.xerces.framework.XMLParser.reportError(Compiled Code)
at
org.apache.xerces.framework.XMLParser.startReadingFromDocument(Compiled
Code)
at org.apache.xerces.framework.XMLParser.parseSomeSetup(Compiled Code)
at org.apache.xerces.framework.XMLParser.parse(Compiled Code)
at org.apache.xerces.framework.XMLParser.parse(Compiled Code)
at ParseXMLServlet.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.processRequest(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
the file is definitely there. permissions are 666.
same problem if i use xmlFile="/home/harry/etc
i'm running xerces 1.0.2, and i suspect i'm missing something
straightforward...
as usual, any help greatly appreciated.
cheers,
jason harrop