Hello, I am currently trying to integrate the gwt-validation framework ( http://code.google.com/p/gwt-validation) in my application.
While debugging through javax.validation.Validation.byDefaultProvider(), I see something puzzling: the line highlighted by the debugger (line 125) does not correspond to anything useful in my source code (line 125 is just a comment; the byDefaultProvider() method starts at line 131). I have looked around the dependencies I have in my pom.xml (attached), and the only reference to the validation-api is the one I set, to version 1.0.0.GA. Looking at the runtime classpath, the only references I see are to the 1.0.0.GA version After a look at the various versions of javax.validation.Validation out there, it looks like the only ones for which line 125 corresponds to the beginning of the byDefaultProvider() method are the beta3 and beta4 version. Hence my question: do you know if anything related to GWT / GAE uses this version of the validation-api? For information, everything is just fine (i.e. uses the 1.0.0.GA version) when I run unit tests. Thanks for you help, -- seb -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.fiveorbs</groupId> <artifactId>fiveorbs</artifactId> <version>0.1</version> <packaging>war</packaging> <name>thefiveorbs</name> <repositories> <repository> <id>maven.seasar.org</id> <name>The Seasar Foundation Maven2 Repository</name> <url>http://maven.seasar.org/maven2</url> </repository> <repository> <id>central</id> <name>Maven Repository</name> <url>http://repo2.maven.org/maven2/</url> </repository> <repository> <id>objectify-appengine</id> <url>http://objectify-appengine.googlecode.com/svn/maven</url> </repository> <!-- Validation --> <repository> <id>reflections-repo</id> <name>Reflections Maven2 Repository</name> <url>http://reflections.googlecode.com/svn/repo</url> </repository> </repositories> <dependencies> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <version>1.0.0.GA</version> </dependency> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <version>1.0.0.GA</version> <classifier>sources</classifier> </dependency> <!-- Google App Engine meta-package --> <dependency> <groupId>net.kindleit</groupId> <artifactId>gae-runtime</artifactId> <version>${gae.version}</version> <type>pom</type> </dependency> <dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>1.1</version> </dependency> <!-- GWT dependencies --> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-servlet</artifactId> <version>${gwt.version}</version> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>${gwt.version}</version> <scope>provided</scope> </dependency> <!-- <dependency> <groupId>com.google.gwt.gae.channel</groupId> <artifactId>gwt-gae-channel</artifactId> <version>0.4</version> </dependency> --> <!-- J2EE Servlet API. We need it to compile IndexServlet class. You can probably remove it, if you don't explicitly use Servlets --> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-servlet_2.5_spec</artifactId> <version>1.2</version> <scope>provided</scope> </dependency> <!-- These dependencies are here just for enabling logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.1</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>0.9.24</version> </dependency> <!-- Other dependencies --> <dependency> <groupId>javax.jdo</groupId> <artifactId>jdo2-api</artifactId> <version>2.3-eb</version> <exclusions> <exclusion> <groupId>javax.transaction</groupId> <artifactId>transaction-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.googlecode.objectify</groupId> <artifactId>objectify</artifactId> <version>3.0</version> </dependency> <dependency> <groupId>com.google.inject</groupId> <artifactId>guice</artifactId> <version>${guice.version}</version> </dependency> <dependency> <groupId>com.google.inject.extensions</groupId> <artifactId>guice-servlet</artifactId> <version>${guice.version}</version> </dependency> <dependency> <groupId>com.google.code.gwt-log</groupId> <artifactId>gwt-log</artifactId> <version>3.1.2</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.1.1</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> </dependency> <dependency> <groupId>net.customware.gwt.dispatch</groupId> <artifactId>gwt-dispatch</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>com.google.gwt.inject</groupId> <artifactId>gin</artifactId> <version>${gin.version}</version> </dependency> <dependency> <groupId>net.customware.gwt.presenter</groupId> <artifactId>gwt-presenter</artifactId> <version>1.0.0</version> </dependency> <!-- Test scope --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>1.8.5</version> <scope>test</scope> </dependency> <!-- GAE libraries for local testing as described here: http://code.google.com/appengine/docs/java/howto/unittesting.html --> <dependency> <groupId>com.google.appengine</groupId> <artifactId>appengine-api-labs</artifactId> <version>${gae.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.google.appengine</groupId> <artifactId>appengine-api-stubs</artifactId> <version>${gae.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.google.appengine</groupId> <artifactId>appengine-testing</artifactId> <version>${gae.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.google.appengine</groupId> <artifactId>appengine-local-runtime</artifactId> <version>${gae.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.googlecode.efficient-java-matrix-library</groupId> <artifactId>ejml</artifactId> <version>0.16</version> </dependency> <!-- Validation --> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.14</version> </dependency> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.9.5-RC2</version> </dependency> <!-- TODO: don't hardcode path --> <dependency> <groupId>com.googlecode</groupId> <artifactId>gwt-validation</artifactId> <version>2.0-preview-r209</version> <scope>system</scope> <!--<systemPath>D:/Dev/Programs/librairies/gwt-validation-2.0-preview-r209.jar</systemPath> --> <systemPath>D:/Dev/Programs/librairies/gwt-validation-2.0-preview-r211_patched.jar</systemPath> </dependency> </dependencies> <build> <plugins> <!-- This plug-in "enhances" your domain model objects (i.e. makes them persistent for datanucleus) --> <plugin> <groupId>org.datanucleus</groupId> <artifactId>maven-datanucleus-plugin</artifactId> <version>1.1.4</version> <configuration> <!-- Make sure this path contains your persistent classes! --> <fork>false</fork> <mappingIncludes>**/models/**/*.class</mappingIncludes> <verbose>true</verbose> <enhancerName>ASM</enhancerName> <api>JDO</api> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>enhance</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-core</artifactId> <version>1.1.5</version> <exclusions> <exclusion> <groupId>javax.transaction</groupId> <artifactId>transaction-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-rdbms</artifactId> <version>1.1.5</version> </dependency> <dependency> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-enhancer</artifactId> <version>1.1.4</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1-beta-1</version> <configuration> <webResources> <resource> <directory>src/main/webapp</directory> <filtering>true</filtering> <includes> <include>**/appengine-web.xml</include> </includes> </resource> </webResources> </configuration> </plugin> <!-- Maven GWT plugin (ex. http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/index.html) http://mojo.codehaus.org/gwt-maven-plugin --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>2.2.0</version> <configuration> <logLevel>INFO</logLevel> <!-- match -Dgae.port --> <port>${gae.port}</port> <!-- This must point to your GWT modules! --> <compileTargets> <value>com.fiveorbs.client.TheFiveOrbs</value> </compileTargets> <!-- This is for generating Asynch interfaces --> <!-- <servicePattern>**/client/*Service.java</servicePattern> --> <extraJvmArgs>-Xmx512m</extraJvmArgs> <!--<jvm>${JAVA_HOME}/bin/java</jvm> --> <!--<noServer>false</noServer> --> <!-- TODO This should help running GAE stuff in hosted mode (when gwt-maven-plugin-1.2 is released, see http://jira.codehaus.org/browse/MGWT-112) --> <server>com.google.appengine.tools.development.gwt.AppEngineLauncher </server> <runTarget>/index.html</runTarget> <style>DETAILED</style> <webXml>src/main/webapp/WEB-INF/web.xml</webXml> <!-- this parameter is VERY important with automatic mode - has to match the version in your declared deps --> <!-- if this is set incorrect (not a match), or left out (default is 1.5.2 for 2.0-beta23) you will have mysterious errors --> <gwtVersion>${gwt.version}</gwtVersion> </configuration> <executions> <!-- <execution> <id>generateAsynch</id> <phase>generate-sources</phase> <goals> <goal>generateAsync</goal> </goals> </execution> --> <execution> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>${gwt.version}</version> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-dev</artifactId> <version>${gwt.version}</version> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-servlet</artifactId> <version>${gwt.version}</version> </dependency> </dependencies> </plugin> <!-- The actual maven-gae-plugin. Type "mvn gae:run" to run project, "mvn gae:deploy" to upload to GAE. --> <plugin> <groupId>net.kindleit</groupId> <artifactId>maven-gae-plugin</artifactId> <version>0.8.4</version> <dependencies> <dependency> <groupId>net.kindleit</groupId> <artifactId>gae-runtime</artifactId> <version>${gae.version}</version> <type>pom</type> </dependency> </dependencies> <configuration> <jvmFlags> <jvmFlag>-Xdebug</jvmFlag> <jvmFlag>-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8002 </jvmFlag> </jvmFlags> </configuration> </plugin> <!-- Upload application to the appspot automatically, during release:perform --> <plugin> <artifactId>maven-release-plugin</artifactId> <configuration> <goals>gae:deploy</goals> </configuration> </plugin> <!-- Java compiler version --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0</version> <configuration> <debug>true</debug> <source>1.6</source> <target>1.6</target> <skipTests>true</skipTests> </configuration> </plugin> </plugins> </build> <!-- Specify hard-coded project properties here --> <properties> <skipTests>true</skipTests> <!-- Sets the project's default encoding. http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- This is just for "eclipse:eclipse" goal to always attempt downloading sources --> <downloadSources>true</downloadSources> <!-- Specify AppEngine version for your project. It should match SDK version pointed to by ${gae.home} property (Typically, one used by your Eclipse plug-in) --> <gae.version>1.4.3</gae.version> <gae.home>D:\Dev\Programs\appengine-java-sdk</gae.home> <!-- GWT version --> <gwt.version>2.3.0</gwt.version> <guice.version>3.0</guice.version> <gin.version>1.5.0</gin.version> <!-- Upload to http://test.latest.<applicationName>.appspot.com by default --> <gae.application.version>test</gae.application.version> <!-- port defaults to 8080 --> <gae.port>8080</gae.port> <!-- Produce detailed JS during GWT compilation for development environment --> <gwt.style>DETAILED</gwt.style> </properties> <profiles> <!-- We can configure our integration server to activate this profile and perform gae:deploy, thus uploading latest snapshot to the http://1.latest.<applicationName>.appspot.com automatically --> <profile> <id>integration-build</id> <properties> <gae.application.version>stage</gae.application.version> <!-- Produce pretty JS during GWT compilation for test environment --> <gwt.style>PRETTY</gwt.style> </properties> </profile> <!-- This profile will activate automatically during release and upload application to the http://2.latest.<applicationName>.appspot.com (We might want to set the 2nd version as our applications Default version to be accessible at http://<applicationName>.appspot.com) --> <profile> <id>release-build</id> <activation> <property> <name>performRelease</name> <value>true</value> </property> </activation> <properties> <!-- During release, set application version in appengine-web.xml to 2 --> <gae.application.version>release</gae.application.version> <!-- Produce compressed JS during GWT compilation for production environment --> <gwt.style>OBFUSCATED</gwt.style> </properties> </profile> </profiles> </project>
