java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util


Validate an URL with Apache common URLValidator to validate an URL, but it hits following error message ?

java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
	at org.apache.commons.validator.UrlValidator.isValid(
Caused by: java.lang.ClassNotFoundException: org.apache.oro.text.perl.Perl5Util
	at org.apache.catalina.loader.WebappClassLoader.loadClass(
	at org.apache.catalina.loader.WebappClassLoader.loadClass(
	at java.lang.ClassLoader.loadClassInternal(
	... 28 more


The URLValidator class is required Jakarta-ORO library, make sure you include the oro-xxx.jar into your project class path.

You can get oro-xxx.jar from :
1. Jakarta-ORO official site –
2. Maven central repository

Tags :

About the Author

Founder of and, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.


  • Pastafarian

    Use the org.apache.commons.validator.routines.EmailValidator version 1.4. No Oro dependency

  • Andres

    Hi, i’m using spring (with out maven) and i having “NoClassDefFoundError” error, any idea how a can refer a class from the xml??.

    The xml is:

    &lt;beans xmlns=&quot;;
    	&lt;bean id=&quot;helloBean&quot; class=&quot;Hello&quot; /&gt;

    Thanks, great tutorials.

    • mkyong

      Make sure your class in available in your project classpath.

  • Valter

    Oro is retired, so what I do now ?

    • Gerasimos

      I second the above question. Do you know what can be done now that oro is retired? Thanks for the tutorials btw.