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(SaxUnmarshaller.java:169)
     [java]     at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.handleXMLNS(SchemaUnmarshaller.java:232)
     [java]     at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.processNamespaces(SchemaUnmarshaller.java:248)
     [java]     at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:272)
     [java]     at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
     [java]     at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1197)
     [java]     at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1862)
     [java]     at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1005)
     [java]     at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
     [java]     at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
     [java]     at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:384)
     [java]     at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.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

Reply via email to