On 2/13/06, Bruce Snyder <[EMAIL PROTECTED]> wrote:

> > Anyone have time to try Keith's pojo w/ mapping file generation tool
> > on the ejb 3.0 schema or maybe something smaller like the
> > persistence.xml?

Using the XSDs for JEE 5, here's what I wound up with:

An element declaration with the given name, ejb-relationship-role,
already exists in this scope.
        at 
org.exolab.castor.xml.schema.ContentModelGroupImpl.addElementDecl(ContentModelGroupImpl.java:110)
        at org.exolab.castor.xml.schema.Group.addElementDecl(Group.java:261)
        at 
org.exolab.castor.xml.schema.reader.GroupUnmarshaller.endElement(GroupUnmarshaller.java:354)
        at 
org.exolab.castor.xml.schema.reader.ComplexTypeUnmarshaller.endElement(ComplexTypeUnmarshaller.java:421)
        at 
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement(SchemaUnmarshaller.java:576)
        at 
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.endElement(Sax2ComponentReader.java:198)
        at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1392)
        at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1436)
        at 
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1865)
        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(SourceGenerator.java:414)
        at 
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:469)
        at 
org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:872)


Against the persistence.xsd, I got the following warning:

warning a field name conflicts with "class" and is being replaced by
"clazz". You may use a binding file to specify a different name for
the element 'class'.

And no mapping file was output, just the POJOs.

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo (http://geronimo.apache.org/)

Castor (http://castor.org/)

Reply via email to