Make sure your class descriptors are compled...if they are not compiled
Castor runtime engine will not be able to find them and therefore will
resort to creating names dynamically by using introspection.
javac *Descriptor.java
--Keith
> "Super, Mike" wrote:
>
> Hello,
>
> I've run the SourceGenerator on an XSD file that describes the
> following XML stub:
>
> <ServiceModule>
> ...
> </ServiceModule>
>
> My problem is the marshaller/unmarshaller seems to convert the tags
> to <serviceModule> which then fails to read/write the original XML
> file. I looked at the sources and it seems that Castor attempts to
> follow Java naming conventions when creating the bean and so it
> converts the member name to lowercase:
>
> /**
> * Field _serviceModule
> */
> private EntryParms.ServiceModule _serviceModule;
>
> When the marshalling/unmarshalling is performed, the member name is
> used (not the type name that has the proper capitalization) and the
> original capitalization is lost. I have found two possible
> workarounds, neither of which is really practical:
>
> 1) Conform the XML to lowercase instead of camel case
> I can't do this because I'm not the author of the original XML
> schema
>
> 2) Implement XMLNaming and force the first letter to always be
> capitalized
> This is bad because then tags that start with a lowercase
> letter will be broken.
>
> It seems odd to me that Castor would change the name of the tags
> when the classes were generated straight from the XSD file. Please let
> me know if I'm just missing something obvious here.
>
> Thanks,
>
> Mike
>
> ___________________________
> Michael Super
> Fidelity Employer Services Co
> [EMAIL PROTECTED]
> (603) 791-7409
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev