Sorry, i already have the right url in my prog file:C://mask.xsd, i only posted it false.
In an other forum i read this might help, but not for me =( Thread.getCurrentThread().setContextClassLoader(this.getClass().getClassLoader()); It must be a prob with the endorsed option cause if i start without the option,the prog works all fine. No other suggestions? Jacob Kjome wrote: > > > Try using a valid URL... > > file:/C:/mask.xsd > OR > file:///C:/mask.xsd > > > Jake > > Quoting Cheffe <[EMAIL PROTECTED]>: > >> >> Hi folks, >> I have this code under 1.4.2_10: >> ... >> SAXBuilder builder = new >> SAXBuilder("org.apache.xerces.parsers.SAXParser"); >> builder.setValidation(true); >> builder.setFeature("http://apache.org/xml/features/validation/schema", >> true); >> > builder.setProperty("http://apache.org/xml/properties/schema/externalnoNamespaceSchemaLocation", >> "file:C://mask.xsd"); >> ... >> >> The validation is doing correct! All fine. >> >> But when i am starting with the endorsed option to override the >> xerces.jar >> and ..impl.jar etc., i get the following Errror: >> Error on line 2: cvc-elt.1: Cannot find the declaration of element >> 'mask'. >> >> It seems the mask.xsd couldnt be found? Or the Classloader() is mixxing >> up >> the different xerces-versions. >> >> Any suggestions? >> >> >> >> -- >> View this message in context: >> > http://www.nabble.com/1.4.x-%2Cendorsed-%2Cxerces2.7.2-%2Cschema-validation-problem-tf3294246.html#a9163242 >> Sent from the Xerces - J - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/1.4.x-%2Cendorsed-%2Cxerces2.7.2-%2Cschema-validation-problem-tf3294246.html#a9167924 Sent from the Xerces - J - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]