Prev: Menu in Swing
Next: [arguably OT] Keyboards
From: laredotornado on 22 Apr 2010 13:50 Hi, 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? Thanks, - Dave
From: markspace on 22 Apr 2010 13:58 laredotornado wrote: > Hi, > > 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 If it's "javax" then it should be Sun: <http://java.sun.com/javaee/6/docs/api/javax/validation/ValidatorFactory.html> JEE thing perhaps?
From: Mike Schilling on 22 Apr 2010 14:08 laredotornado wrote: > Hi, > > 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? Google :-) This appears to be part of JSR 303, so look for an implementation of that,
From: Lew on 22 Apr 2010 14:20 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 > markspace wrote: > If it's "javax" then it should be Sun: > Then it has to be Sun. OP: If you see that the package begins with 'java.' or 'javax.', it's part of the Standard API and you should look in those Javadocs. Otherwise GIYF. <http://www.google.com/search?q=javax.validation.ValidatorFactory> > <http://java.sun.com/javaee/6/docs/api/javax/validation/ValidatorFactory.html> > > JEE thing perhaps? $ find /cygdrive/c/java/jdk1.6.0_20/ /cygdrive/c/java/glassfish/ -name \*.jar \ | xargs grep ValidatorFactory Binary file /cygdrive/c/java/jdk1.6.0_20/jre/lib/rt.jar matches .... Binary file /cygdrive/c/java/glassfish/glassfish/modules/bean- validator.jar matches Binary file /cygdrive/c/java/glassfish/glassfish/modules/container- common.jar matches Binary file /cygdrive/c/java/glassfish/glassfish/modules/ jsftemplating.jar matches .... $ unzip -l /cygdrive/c/java/jdk1.6.0_20/jre/lib/rt.jar .... (Pattern not found) .... $ unzip -l /cygdrive/c/java/glassfish/glassfish/modules/bean- validator.jar .... 291 11-08-2009 20:49 javax/validation/ ValidationProviderResolver.class 1138 11-08-2009 20:49 javax/validation/Validator.class 524 11-08-2009 20:49 javax/validation/ValidatorContext.class 620 11-08-2009 20:49 javax/validation/ValidatorFactory.class ....
From: Tom Anderson on 22 Apr 2010 14:49
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. |