You need to add the Jakarta Regular Expression library to your class
path.

This jar can be found in the lib directory of Castor.

Thanks,

--Keith

Vikram Mahuvakar wrote:
> 
> I am trying to run the SourceGenerator example that comes with Castor down
> load and I am getting runtime exception of
> 
> Unmarshalling 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:120)
>         at
> org.exolab.castor.util.Configuration.getRegExpEvaluator(Configuration
> .java:456)
>         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.validate(StringValid
> ator.java:242)
>         at
> org.exolab.castor.xml.validators.StringValidator.validate(StringValid
> ator.java:262)
>         at
> org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:249
> )
>         at
> org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDe
> scriptorImpl.java:693)
>         at org.exolab.castor.xml.Validator.validate(Validator.java:118)
>         at
> org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:251
> )
>         at
> org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDe
> scriptorImpl.java:693)
>         at org.exolab.castor.xml.Validator.validate(Validator.java:118)
>         at
> org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:251
> )
>         at
> org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDe
> scriptorImpl.java:693)
>         at org.exolab.castor.xml.Validator.validate(Validator.java:118)
>         at
> org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:251
> )
>         at
> org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDe
> scriptorImpl.java:693)
>         at org.exolab.castor.xml.Validator.validate(Validator.java:118)
>         at
> org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.ja
> va:423)
>         at
> org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1392)
>         at
> org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa
> lidator.java:1480)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
> atch(XMLDocumentScanner.java:1149)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
> canner.java:381)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
>         at
> org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:338)
>         at
> org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:270)
>         at
> org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:391)
>         at test.Invoice.unmarshal(Invoice.java:246)
>         at InvoiceTest.main(InvoiceTest.java:83)
> 
> I have following jar on the CLASSPATH
> .;C:\Oracle\Ora81\orb\classes\yoj.jar;C:
> \Oracle\Ora81\orb\classes\share.zip;c:\O
> racle\Ora81\jdbc\lib\classes12.zip;c:\castor-0.9.3\castor-0.9.3.jar;c:
> \xerces-1_
> 4_3\xerces.jar;c:\xerces-1_4_3\xercesSamples.jar
> 
> Can some one help me which jar I am missing. As I don't have access to
> org/apache/regexp/RESyntaxException class.
> 
> Thanks,
> 
> Vikram
> 
> -----------------------------------------------------------
> 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