Hello,
I tried with xerces-J_1.4.0.jar packaged with Castor.
The same error happened.
It was working on the Lastest Released Version: Castor 0.9.3.19
Best regards
Laurent


Keith Visco wrote:
>The problem comes from Xerces itself, not Castor. Have you tried using
>the Xerces 1.4.0 that is packaged with Castor.
>
>--Keith
>
>[EMAIL PROTECTED] wrote:
>>
>> Hello,
>> I'm using the castor_daily_snapshot.tgz of the day and having the
>> following error :
>>
>>
>> P:\XIDE\src\CofaceBase\schema>call p:\xide\castor_daily\sourceGen.bat
>>  -f -i CofaceBdt.xsd           -package com.coface.corp.bas.bdt.castor
>>      -dest p:\xide\src\CofaceBase -verbose
>> -- Suppressing non fatal warnings.
>> org.xml.sax.SAXParseException: File
>>
>>"file:///P:/XIDE/src/CofaceBase/schema/:/XIDE/src/CofaceBase/schema/CofaceCoreBdt.xsd"
>> not found.
>>         at
>> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1156)
>>
>>         at
>>
>>org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:512)
>>
>>         at
>> org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:310)
>>
>>         at
>> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1034)
>>         at
>> org.exolab.castor.xml.schema.reader.ImportUnmarshaller.<init>(Unknown
>> Source)
>>         at
>> org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(Unknown
>> Source)
>>         at
>> org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Unknown
>> Source)
>>         at
>> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
>>         at
>>
>>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1197)
>>
>>         at
>>
>>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1862)
>>
>>         at
>>
>>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1238)
>>
>>         at
>> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
>>
>>         at
>> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
>>         at
>> org.exolab.castor.builder.SourceGenerator.generateSource(Unknown
>> Source)
>>         at
>> org.exolab.castor.builder.SourceGenerator.generateSource(Unknown
>> Source)
>>         at org.exolab.castor.builder.SourceGenerator.main(Unknown
>> Source)
>>
>> schema:
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <xs:schema xmlns:core="http://www.coface.com/2002/bdt/core";
>> xmlns:cct="CoreComponentTypes.xsd"
>> xmlns:xs="http://www.w3.org/2001/XMLSchema"; core:dummy="dummy" c!
>> ct:dummy="dummy">
>>         <xs:import namespace="http://www.coface.com/2002/bdt/core";
>> schemaLocation="CofaceCoreBdt.xsd"/>
>> ...
>>
>> The
>>
>>"file:///P:/XIDE/src/CofaceBase/schema/:/XIDE/src/CofaceBase/schema/CofaceCoreBdt.xsd"
>> is wrong and should be
>> "file:///P:/XIDE/src/CofaceBase/schema/CofaceCoreBdt.xsd".
>>
>> Best regards
>>
>> Laurent
>
>-----------------------------------------------------------
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
>        unsubscribe castor-dev

Reply via email to