You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Shraddha V Thorat <sh...@mastek.com> on 2008/11/05 07:58:04 UTC

error in Perl5Util

Hello,
While validating the field with the regular expression as,.

if (!GenericValidator.isBlankOrNull(value) && !GenericValidator.matchRegexp(value, mask))
{
      valid = false;
}

I am getting following error

java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
at org.apache.commons.validator.GenericValidator.matchRegexp(GenericValidator.java:68)

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: error in Perl5Util

Posted by Simon Kitching <si...@chello.at>.
On Wed, 2008-11-05 at 12:28 +0530, Shraddha V Thorat wrote:
> Hello,
> While validating the field with the regular expression as,.
> 
> if (!GenericValidator.isBlankOrNull(value) && !GenericValidator.matchRegexp(value, mask))
> {
>       valid = false;
> }
> 
> I am getting following error
> 
> java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
> at org.apache.commons.validator.GenericValidator.matchRegexp(GenericValidator.java:68)

Then you probably have mismatched versions of validator and commons-oro
in your classpath. Check the dependency information for the version of
validator that you are using, and make sure you have a compatible
version of oro in your classpath.

Regards, Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org