Hi Joseph,

I believe you are not running the example of the SourceGenerator
but rather old test cases that are not used anymore (that need to be cleaned
up).
We are using a Testing Framework to test castor, we planned with Sebastien
Gignoux
to release it some months ago but never really found the opportunity to do so.
However you can use it:
CTFRun ./src/tests/MasterTestSuite/xml/sourcegenerator

but it won't be useful.
In order to learn how to use the SourceGenerator, launch the example
(src/examples/SourceGenerator) and
read the documentation (www.castor.org/SourceGeneratorUser.pdf).

Hope this helps,
Arnaud

> -----Original Message-----
> From: Joseph Hannon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 23, 2001 9:31 PM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Source Generator example does not run- Please
> advise.
>
>
> I am evaluating Castor for use in many of our
> projects.    I have two more days to evaluate and
> decide on competing products. I won't be comfortable
> recommending Castor if I am unable to get the examples
> working first, which would be unfortunate since it
> looks like a useful framework. See the history section
> below for specifics.
>
> Question 1:
> How do I get the sample SourceGenerator example to
> work? Is there a way to specify the schema to use
> without searching/replacing 30 files?  I need to see
> this thing build working files from a schema I will
> write.
>
> Question 2:
> How can you compile and test your sources if you are
> looking at the same url for the schema as I am (ie:
> you are using the same source I downloaded)?
>
> History:
> I was able to get the JDO example working with MySQL
> only after using mm.mysql.Driver 2.0.6. Driver 2.0.4
> failed with a JDBC2 error. Next, I worked on building
> source files from an xml representation of my
> database, having no success. To make sure I was
> working with the latest fixes, I downloaded the daily
> snapshot of the source on 8/23/01.  I modified
> src/build.xml to use a classpath instead of relying on
> environment settings. I was able to run Ant typing
> "ant" which used the main target and was successful.
> Same for "ant tests".  The problem occurs with "ant
> runtests"- SAX  is looking at an XMLSchema url that is
> no longer supported. The exception is listed below.
>
> Error:
> $ ant runtests
> Buildfile: build.xml
>
> prepare:
>    [delete] Deleting directory
> C:\development\castor_082301\src\schema
>     [mkdir] Created dir:
> C:\development\castor_082301\src\schema
>      [copy] Copying 2 files to
> C:\development\castor_082301\src\schema
>      [copy] Copying 2 files to
> C:\development\castor_082301\src\schema
>      [copy] Copying 4 files to
> C:\development\castor_082301\src\schema
>
> main:
>
> runtests:
>      [java] -- Suppressing non fatal warnings.
>      [java] org.xml.sax.SAXException: The following
> namespace "http://www.w3.org/2000/10/XMLSchema"; is no
> longer supported. Please update to  W3C XML Schema
> Recommendation.
>      [java]    line: 4
>      [java]     at
> org.exolab.castor.xml.schema.reader.SaxUnmarshaller.error(SaxUnmarshal
> ler.java:169)
>      [java]     at
> org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.handleXMLNS(Sch
> emaUnmarshaller.java:232)
>      [java]     at
> org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.processNamespac
> es(SchemaUnmarshaller.java:248)
>      [java]     at
> org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(Sc
> hemaUnmarshaller.java:272)
>      [java]     at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
>      [java]     at
> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLV
> alidator.java:1197)
>      [java]     at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocument
> Scanner.java:1862)
>      [java]     at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispa
> tch(XMLDocumentScanner.java:1005)
>      [java]     at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSc
> anner.java:381)
>      [java]     at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
>      [java]     at
> org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerat
> or.java:384)
>      [java]     at
> org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerat
> or.java:437)
>      [java]     at
> org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:664)
>
> BUILD FAILED
>
> Thanks,
> Joseph
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to