-1

私のプロジェクトの参照ライブラリには、hibernate-validator-4.1.0.Final.jar があります。

しかし、プロジェクトを実行すると、

[WARN] Server class 'org.springframework.asm.ClassVisitor' could not be found in the web app, but was found on the system classpath
 [WARN] Adding classpath entry 'file:/C:/Users/bob/Downloads/spring-framework-3.1.2.RELEASE/spring-framework-3.1.2.RELEASE/dist/org.springframework.asm-3.1.2.RELEASE.jar' to the web app classpath for this session
   For additional info see: file:/C:/Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
[WARN] Server class 'org.springframework.expression.PropertyAccessor' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/C:/Users/bob/Downloads/spring-framework-3.1.2.RELEASE/spring-framework-3.1.2.RELEASE/dist/org.springframework.expression-3.1.2.RELEASE.jar' to the web app classpath for this session
   For additional info see: file:/C:/Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
[WARN] Server class 'net.sf.cglib.proxy.Enhancer' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/C:/Users/bob/Downloads/lib/cglib-2.2.jar' to the web app classpath for this session
   For additional info see: file:/C:/Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
[WARN] Server class 'javax.validation.ValidationException' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/C:/Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/validation-api-1.0.0.GA.jar' to the web app classpath for this session
   For additional info see: file:/C:/Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
14 sept. 2012 13:48:10 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer <clinit>
INFO: Unable to initialize a JSR 303 Bean Validator
javax.validation.ValidationException: Unable to find a default provider
    at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264)
    at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111)

何か案が?

4

1 に答える 1

1

file:/C:/Applications/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/doc/helpInfo/webAppClassPath.htmlを見ましたか?

答えはそこにあります。サーバー側の JAR はWEB-INF/libにある必要があります。

于 2012-09-14T14:14:12.090 に答える