Discussion:
Regular expression evaluator from default castor.properties not defined
Stevens, Gary (NC627A)
2012-03-22 16:46:34 UTC
Permalink
Hi all,

I am trying to update the version of Castor my application uses from 0.9.5.3 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 castor.properties file to define such.

I used a custom castorbuilder.properties file to generate the code but I am not using a custom castor.properties file. I do not understand why with the default castor.properties 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 castor.properties file to get picked up?

Thank you,
Gary F Stevens
Werner Guttmann
2012-04-03 18:39:51 UTC
Permalink
Hi,

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

Kind regards
Werner
Post by Stevens, Gary (NC627A)
Hi all,
I am trying to update the version of Castor my application uses from
0.9.5.3 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
java.lang.IllegalStateException: You are trying to use regular
expressions without having specified a regular expression evaluator.
Please use the castor.properties file to define such.
I used a custom castorbuilder.properties file to generate the code but I
am not using a custom castor.properties file. I do not understand why
with the default castor.properties 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
castor.properties file to get picked up?
Thank you,
Gary F Stevens
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...