Re: Finding a JAR that contains a class
On Thu, 22 Apr 2010, laredotornado wrote:
I'm running Java 1.6 on a Tomcat 6.0.26 server. I'm getting a
ClassNotFoundException, comlpaining about
javax.validation.ValidatorFactory. What JAR file is this included in
and is there a generic web site I can visit that will tell me class- JAR
relations and download sites?
Funnily enough:
http://findjar.com/
That says:
http://findjar.com/class/javax/validation/ValidatorFactory.html
It's in geronimo-validation_1.0_spec-1.0-CR5.jar:
http://findjar.com/jar/org/apache/geronimo/specs/geronimo-validation_1.0_spec/1.0-CR5/geronimo-validation_1.0_spec-1.0-CR5.jar.html
Which you can get from:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/geronimo/specs/geronimo-validation_1.0_spec/1.0-CR5/geronimo-validation_1.0_spec-1.0-CR5.jar
Before you go haring off to download that, i should point out that judging
by the class and jar name, that's part of the new JSR-303 Beans Validation
framework:
http://java.sun.com/javaee/6/docs/tutorial/doc/gircz.html
There may or may not be a vendor-specific version of it you should use in
concert with whatever app server, persistence framework, or whatever
you're using. I would guess it's an API class, though, in which case you
are almost certainly looking for something like validation-api.jar from
Sun, and not whatever that Geronimo thing above is.
tom
--
3.141592666666 and then it's just all sixes for the other 298 digits. Then
after that there's just hieroglyphs of scary eyes.