We have set the automaticConflictResolution=true and left 
automaticConflictResolutionTypeSuffix=By.

We still have the same problems. 

-----Original Message-----
From: Werner Guttmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 10, 2007 4:24 AM
To: [email protected]
Subject: AW: [castor-user] Substitution group issues

For substitution groups to work properly (in all cases), a special property 
(concerning automatic name conflict resolution needs to be enabled).

Werner

> -----Ursprüngliche Nachricht-----
> Von: Troccola, Ted PEO C3T PM BC Viecore 
> [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 09. Mai 2007 15:44
> An: '[email protected]'
> Betreff: RE: [castor-user] Substitution group issues
> 
> 
> 
> We experience the problem when using the default 
> castor-builder.properties in the castor-1.1.1-codegen.jar file.
> 
> 
> Thanks,
> T
> 
> -----Original Message-----
> From: Werner Guttmann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 08, 2007 5:33 PM
> To: [email protected]
> Subject: Re: [castor-user] Substitution group issues
> 
> What's the builder properties you are using ?
> 
> Werner
> 
> Troccola, Ted PEO C3T PM BC Viecore wrote:
> >
> > We are using castor-1.1.1, and java build 1.4.2_12-b03.
> >
> > We have attached a schema and instance document that uses 
> > substitution
> groups.
> >
> > We successfully generate Castor classes with the following command:
> >
> > java -cp
> > xerces-J_1.4.0.jar;commons-logging-1.1.jar;castor-1.1.1-xml.jar;cast
> > or -1.1.1-codegen.jar org.exolab.castor.builder.SourceGeneratorMain 
> > -i EasyPo.xsd -package po
> >
> > However, when we try to unmarshall the attached xml we get Castor
> Exceptions:
> >
> > unable to find FieldDescriptor for 'book' in ClassDescriptor of 
> > invoice-header{F
> > ile: [not available]; line: 29; column: 20}
> >
> > For some reason, Castor doesn't like 'book' - however, if book is
> replaced by product - everything works fine.  However, that is invalid 
> xml (product is abstract).  In fact, ship-comment has the same 
> problem.  It would appear that the substitution groups are not being 
> Castorized properly, or perhaps we're doing something wrong?
> >
> >     PurchaseOrder vcList = new PurchaseOrder();
> >
> >     try {
> >
> >             Unmarshaller unmar = new Unmarshaller(PurchaseOrder.class);
> >
> >             vcList = (PurchaseOrder) unmar.unmarshal(
> >                     new InputSource( new StringReader( xmlBuf.toString() ) )
> );
> >
> >     } catch (Exception e) {
> >             ...
> >     }
> >
> > Compile: javac -classpath .\castor-1.1.1-xml.jar SendXMLFile.java
> > Run: java -classpath .\castor-1.1.1-xml.jar SendXMLFile
> >
> > Has anyone been able to get substitution groups working?
> >
> > Thanks,
> >
> >
> >
> >
> > --------------------------------------------------------------------
> > --
> > --
> >
> > --------------------------------------------------------------------
> > - To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to