Hi all.
I read some schema in from the file to Castor Schema object,
with SchemaReader, as follows:
InputSource in = new InputSource(fileStream);
SchemaReader reader = new SchemaReader(in);
Schema schema = reader.read();
 
Now, when I invoke this code from main method of some class, it works perfectly fine, creates the Schema class on which I can run my queries.
BUT when I run exactly the same code (for exactly the same schema.xsd) from a Servlet, or a JSP, I get an exception:
org.xml.sax.SAXException: 'xs:schema' has not been declared in the XML Schema namespace.
 
Does anybody know what this means, and why this code stops working in the Servelt invocation?
 
Thank you very much for help.
 
Anna
 
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to