Java Mailing List Archive

Home » user.castor »

RE: [castor-user] Regular expression evaluator from default not defined

Stevens, Gary (NC627A)


Replies: Find Java Web Hosting

Author LoginPost Reply
Hi Werner,

Yes, I have added the jars for Jakarta ORO 2.0.8 and Jakarta RegExp 1.5 and the problem occurs during unmarshalling.


-----Original Message-----
From: Werner Guttmann [mailto:werner.guttmann@(protected)]
Sent: Tuesday, April 03, 2012 2:40 PM
To: user@(protected)
Cc: Stevens, Gary (NC627A)
Subject: Re: [castor-user] Regular expression evaluator from default not defined


did you add the JAR for the Jakarta libraries ? Can I take it that the
problem actually occurs upon (un-)marshalling ?

Kind regards

On 22.03.2012 17:46, Stevens, Gary (NC627A) wrote:
> Hi all,
> I am trying to update the version of Castor my application uses from
> to 1.3.2. I used the command line code generator to create the
> Java classes based on our schema files and replaced the code in my
> project. When I ran our unit tests some of them failed with this error:
> java.lang.IllegalStateException: You are trying to use regular
> expressions without having specified a regular expression evaluator.
> Please use the file to define such.
> I used a custom file to generate the code but I
> am not using a custom file. I do not understand why
> with the default file in castor-xml.jar, which has the
> value
> org.exolab.castor.regexp=org.exolab.castor.util.JakartaOroEvaluator,
> this error still occurs.
> Is there something more than having castor-core.jar, castor-xml.jar, and
> castor-xml-schema.jar in my classpath to get the settings in the
> file to get picked up?
> Thank you,
> Gary F Stevens

To unsubscribe from this list, please visit:

©2008 - Jax Systems, LLC, U.S.A.