You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Toby Saville <To...@ditm.nsw.gov.au> on 2002/09/23 04:06:19 UTC

XML Parsing in Servlet

Hi,

Im not sure if this is the correct place to post this type of message but
ill try anyways.

Im trying to parse an XML file in a servlet's init(Servlet config) method on
a tomcat4.1 server. I am using a xerces SAX parser. The servlet has a
load-on-startup tag in web.xml with a value of 1.

When i attempt to parse the file in the init method, the loading of the web
server stops. 
The standard output prints up to:

The log file outputs up to "starting filters", but nothing else. i pass a
URI compliant string to the parser which looks like this:
file:///d:/Projects/portfolio/webapps/xml/metadata.xml

I can create a File object using this URI and look at its details in the
init method, but as soon as i say parser.parse(fileURI, handler); the
loading of tomcat stops. 

Any ideas why this could be?

Thanks

-Tobes


***************************************************************
This message is intended for the addressee named and 
may  contain confidential information. If you are not the 
intended recipient, please delete it and notify the sender. 
Views expressed in this message are those of the 
individual sender, and are not necessarily the views of the
Department of  Information Technology & Management.

This email message has been swept by MIMEsweeper 
for the presence of computer viruses.
***************************************************************