On Fri, 14 Jan 2005 02:25:27 -0600, Keith Visco <[EMAIL PROTECTED]> wrote:
>
> Kenneth,
>
> You need to compile the *Descriptor.java classes.
>
> I can tell right away that Castor is defaulting to introspecting your
> classes (because you get the valid="true" in the output - only happens
> when Castor introspects the generated sources.) which is why you get the
> wrong order.
>
> If you compile all the *Descriptor.java files, you'll get the correct
> output.
>
Keith,
Thanks very much for the fast response. That was indeed the
problem. Once I did this, I ended up with the following exception :
java.lang.NoClassDefFoundError:
org/apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at
org.exolab.castor.util.LocalConfiguration.getRegExpEvaluator(LocalConfiguration.java:497)
at
org.exolab.castor.xml.validators.PatternValidator.initEvaluator(PatternValidator.java:164)
at
org.exolab.castor.xml.validators.PatternValidator.validate(PatternValidator.java:135)
at
org.exolab.castor.xml.validators.StringValidator.validate(StringValidator.java:259)
at
org.exolab.castor.xml.validators.StringValidator.validate(StringValidator.java:293)
at
org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:279)
at
org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:903)
at
org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:764)
at org.exolab.castor.xml.Validator.validate(Validator.java:122)
at org.exolab.castor.xml.Marshaller.validate(Marshaller.java:2119)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:771)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:671)
at services.ice.catalog.Locale.marshal(Locale.java:76)
at Test.main(Test.java:12)
I put jakarta ORO in the CLASSPATH and got my program correctly. I
bring this up because the Castor documentation doesnt mention ORO as a
dependant library.
Thanks,
Kenneth
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user