Hi all, I recently upgraded to commons-validator 1.3 and jakarta-oro 2.0.8 in my struts 1.2.9 application. I was previously using commons-validator 1.1.4, struts 1.2.7 and jakarta-oro 2.0.6
After the upgrade, I notice I get this error any time I try to validate using the email validator: [Servlet Error]-[org.apache.oro.text.regex.Util: method substitute(Ljava/lang/StringBuffer;Lorg/apache/oro/text/regex/Pa tternMatcher;Lorg/apache/oro/text/regex/Pattern;Lorg/apache/oro/ text/regex/Substitution;Ljava/lang/String;I)I not found]: java.lang.NoSuchMethodError: org.apache.oro.text.regex.Util: method substitute(Ljava/lang/StringBuffer;Lorg/apache/oro/text/regex/PatternMat cher;Lorg/apache/oro/text/regex/Pattern;Lorg/apache/oro/text/regex/Subst itution;Ljava/lang/String;I)I not found at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source) at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source) at org.apache.commons.validator.EmailValidator.stripComments(EmailValidator .java:249) at org.apache.commons.validator.EmailValidator.isValid(EmailValidator.java: 98) at org.apache.commons.validator.GenericValidator.isEmail(GenericValidator.j ava:256) at org.apache.struts.validator.FieldChecks.validateEmail(FieldChecks.java:7 78) The stripComments() method looks like this: protected String stripComments(String emailStr) { String input = emailStr; String result = emailStr; String commentPat = "s/^((?:[^\"\\\\]|\\\\.)*(?:\"(?:[^\"\\\\]|\\\\.)*\"(?:[^\"\\\\]|\111111 \\\\.)*)*)\\((?:[^()\\\\]|\\\\.)*\\)/$1 /osx"; Perl5Util commentMatcher = new Perl5Util(); result = commentMatcher.substitute(commentPat,input); // This really needs to be =~ or Perl5Matcher comparison while (!result.equals(input)) { input = result; result = commentMatcher.substitute(commentPat,input); } return result; } The error occurs when it hits result = commentMatcher.substitute(commentPat,input); line. Has this happened to anyone else? It appears to be some kind of version clashing issue? Any help would be greatly appreciated Thanks Sean O Shea --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]