Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Location of external schema file for a webapp in Tomcat

Agarwal, Naresh

2004-01-20


Hi
 
I'm writing a web app in Tomcat, which uses a SAX Parser for parsing an XML. I'm specifying the Schema file (ConfigUpdate.xsd) to the SAX Parser by setting a property as follows:
 
parser.setProperty(SCHEMA_LOCATION_PROPERTY_ID, SCHEMA_LOCATION_PROPERTY_VALUE );
 
where SCHEMA_LOCATION_PROPERTY_ID is "http://apache.org/xml/properties/schema/external-schemaLocation"
 
and SCHEMA_LOCATION_PROPERTY_VALUE is "http://www.xyz.com ConfigUpdate.xsd"
 
 
However, parser is not able to find the xsd file at the run time.
 
Where should I put the xsd file in Tomcat, so that SAX Parser can read it at run time?
 
thanks,
Naresh   
 
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.