Java Error

General discussion on the JZOS batch launcher and toolkit
Post Reply
steveo
Posts: 6
Joined: Mon Jun 13, 2005 2:15 pm

Java Error

Post by steveo »

Has anyoneseen this error.. same code works just fine on desktop !!

Code: Select all

 SAXException: Property 'http://java.sun.com/xml/jaxp/properties/schemaLanguage' must be set before setting property 'http://java.sun
 .com/xml/jaxp/properties/schemaSource'.                                        
Code Snippet:

Code: Select all

 private static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
/**   * Schema source property     */
private static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
/**     * XML schema language     */
private static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
.
.
.
SAXParser saxParser = factory.newSAXParser();
saxParser.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
saxParser.setProperty(JAXP_SCHEMA_SOURCE, new File(schemaSource));     
This does not appear to be JZOS specific, but it makes no sense to me...
Thanks,
Steve
Post Reply