Hi Keith,
first, thanks you for to reply to my last message, and morever, i jst ask you if you can answer this little question for me , if u can i'll appreciate it a lot.
I got a error's message following, but i don't know what the problems can be , it says the content is not allowed in prolog but i don't work with Prolog. I'm sorry for this simple question cuz i'm jst a begginer in Castor.
C:\castor\Jalil>java org.exolab.castor.builder.SourceGenerator -i modele2.xsd -package javaxml
org.xml.sax.SAXException: In document: 'file:///C:/castor/Jalil/modele2.xsd'
Parsing Error : Content is not allowed in prolog.
Line : 1
Column : 1
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:518)
at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:571)
at org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:1126)
Thanks you a lot
Luc
>From: Keith Visco <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [castor-dev] Somes Bugs!!!
>Date: Thu, 19 Jun 2003 15:26:50 -0500
>
>In order to run the example, you need to have the jakarta regexp library
>in your classpath. This library is in the lib directory.
>
>--Keith
>
>Nguyen Luc wrote:
> >
> > Hi ,
> >
> > I'm using Castor 0.9.5 and i try to convert the XML code to Java's
> > objet. I just took the examples.zip come with the downloads :
> > InvoiceTest and i got the following errors:
> >
> > C:\castor\tempo\examples\SourceGenerator>java InvoiceTest
> > D�but
> > Unmarshalling Invoice
> > chuis l�aaaaaaaaa
> > #startElement: invoice
> > #startElement: ship-to
> > #startElement: name
> > #startElement: name
> > #endElement: name
> > #startElement: address
> > #startElement: street1
> > #endElement: street1
> > #startElement: city
> > #endElement: city
> > #startElement: state
> > #endElement: state
> > #startElement: zip-code
> > #endElement: zip-code
> > #endElement: address
> > #startElement: phone
> > #endElement: phone
> > #endElement: ship-to
> > #endElement: _customer
> > #endElement: ship-to
> > #startElement: item
> > #startElement: Quantity
> > #endElement: Quantity
> > #startElement: Price
> > #endElement: Price
> > #endElement: item
> > #startElement: shipping-method
> > #startElement: carrier
> > #endElement: carrier
> > #startElement: option
> > #endElement: option
> > #startElement: estimated-delivery
> > #endElement: estimated-delivery
> > #endElement: shipping-method
> > #start! Element: shipping-date
> > #startElement: date
> > #endElement: date
> > #startElement: time
> > #endElement: time
> > #endElement: shipping-date
> > #endElement: invoice
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/regexp/RES
> > yntaxException
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:140)
> > at
> > org.exolab.castor.util.LocalConfiguration.getRegExpEvaluator(LocalCon
> > figuration.java:393)
> > at
> > org.exolab.castor.xml.validators.PatternValidator.initEvaluator(Patte
> > rnValidator.java:164)
> > at
> > org.exolab.castor.xml.validators.PatternValidator.validate(PatternVal
> > idator.java:135)
> > at org.exolab.castor.xml.validators.StringValidator.val!
> > idate(StringValid
> > ator.java:257)
> > at
> > org.exolab.castor.xml.validators.StringValidator.validate(StringValid
> > ator.java:291)
> > at
> > org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:248
> > )
> > at
> > org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDe
> > scriptorImpl.java:885)
> > at
> > org.exolab.castor.xml.Validator.validate(Validator.java:122)
> > at
> > org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:250
> > )
> > at
> > org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDe
> > scriptorImpl.java:885)
> > at
> > org.exolab.castor.xml.Validator.validate(Validator.java:122)
> > at org.exola!
> > b.castor.xml.FieldValidator.validate(FieldValidator.java:250
> > )
> > at
> > org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDe
> > scriptorImpl.java:885)
> > at
> > org.exolab.castor.xml.Validator.validate(Validator.java:122)
> > at
> > org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:250
> > )
> > at
> > org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDe
> > scriptorImpl.java:885)
> > at
> > org.exolab.castor.xml.Validator.validate(Validator.java:122)
> > at
> > org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.ja
> > va:709)
> > at
> > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
> > )
> > &n! bsp; at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
> > Unknown Source)
> > at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
> > Dispatcher.dispatch(Unknown Source)
> > at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
> > known Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> > Source)
> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> > Source)
> > at
> > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:555)
> > &n! bsp; at
> > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:487)
> > at
> > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:627)
> > at test.Invoice.unmarshal(Invoice.java:298)
> > at InvoiceTest.main(InvoiceTest.java:98)
> >
> >
> > I don't know what the errors are and can you jst help me to fix it cuz
> > i really wanna see how it works your example. By the way, i also add
> > to my classpath the apache-regexp.jar.
> >
> > Thanks you a lot first!
> >
> > Luc
> >
> > ----------------------------------------------------------------------
> > Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> > ----------------------------------------------------------- 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
>
smart spam protection and 2 months FREE*
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev