Hi,
On 12.04.2012 22:54, Stevens, Gary (NC627A) wrote:
Hi Werner,
I found the fix for my issue. I did in fact have to create a custom
castor.properties file that set the org.exolab.castor.regexp property
and add it to my project's classpath.
I found the release notes for 1.3.1 state that an
IllegalStateException will be thrown when no regular expression engine
is named in a custom castor.properties file. I had the misunderstanding
that the value for the org.exolab.castor.regexp property set in the
castor.properties file inside castor-1.3.1-xml.jar would be used, but
that is not the case.
Well, actually, if such a value is set, it should be used. But great
that you managed to resolve your problem.
Kind Regards
Werner
Thanks,
Gary
-----Original Message-----
From: Stevens, Gary (NC627A)
Sent: Wednesday, April 11, 2012 8:33 AM
To: user@castor.codehaus.org
Subject: RE: [castor-user] Regular expression evaluator from default
castor.properties not defined
Sorry for the additional reply, but there is a typo in my original message. I
am currently running Castor version 1.3.1.
Thanks,
Gary
-----Original Message-----
From: Stevens, Gary (NC627A)
Sent: Wednesday, April 11, 2012 8:27 AM
To: user@castor.codehaus.org
Subject: RE: [castor-user] Regular expression evaluator from default
castor.properties not defined
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.
Thanks,
Gary
-----Original Message-----
From: Werner Guttmann [mailto:werner.guttm...@gmx.net]
Sent: Tuesday, April 03, 2012 2:40 PM
To: user@castor.codehaus.org
Cc: Stevens, Gary (NC627A)
Subject: Re: [castor-user] Regular expression evaluator from default
castor.properties not defined
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
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
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email