Hi Jonathan,

Are the descriptors generated by Castor compiled and in the classpath?

Arnaud

> -----Original Message-----
> From: Asbell, Jonathan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 7:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] newbie - help reading in an xml file
> 
> Xml file attached
> using castor-0.9.4.1
> 
> EXECPTION IS:
> TEST_VALID.xml
> PROBLEMS LOADING TASK DATA FROM THE XML: TEST_VALID.xml unable to find
> FieldDescriptor for 'parameters' in ClassDescriptor of service
> 
> 
> 
> -----Original Message-----
> From: Arnaud Blandin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 12:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] newbie - help reading in an xml file
> 
> 
> Hi Jonathan,
> 
> Can you please be more specific about the problem you are
encountering:
> 
> 1- which version of Castor are you using?
> 2- what is the exception?
> 3- can you post your schema and your XML document?
> 
> 
> Thanks,
> 
> Arnaud
> -----Original Message-----
> From: Asbell, Jonathan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 5:18 PM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] newbie - help reading in an xml file
> 
> Hello All.
> 1) I created a schema
> 2) I generated the classes with the build tool
> 3) I included the Castor libraries and the generated classes into my
> project (which successfully compiles)
> 
> My problem occurs when I try to do the following:
> 
> GeneratedSchemaRootTag generatedObject = (GeneratedSchemaRootTag )
> Unmarshaller.unmarshal( GeneratedSchemaRootTag .class, new FileReader(
> xmlFile ) );
> 
> Am I using the generated classes incorrectly?
> I am merely trying to "suck in" (read unmarshall) the xml file.
> That�xml file conforms to the schema�used to generate the classes,
and�I
> am trying to use the class that represents the root element in the
> schema�as the "bean" that holds the xml data.
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to