Tuesday, February 26, 2013

Re: Problem with DynaTableRf Sample with Maven

I ended up fixing this by adding the following two plug-in configurations.

So, was this a bug, or was my annotation-processor discovery not
working right for some environmental reason? I don't want to violate
best practices, especially on a new codebase. Let me know if you have
any tips or suggestions.

<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.0.5</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.google.web.bindery</groupId>
<artifactId>requestfactory-apt</artifactId>
<version>${gwtVersion}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>

<source>${project.build.directory}/generated-sources/apt</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>


On Tue, Feb 26, 2013 at 4:12 PM, Adam Augusta <roxton@gmail.com> wrote:
> I get an error when I try to run the DynaTableRf sample application
> with maven. Can anyone enlighten me?
>
> Sample app from GWT 2.5.0 release.
> Maven 2.2.1
>
> There are four CG errors (one for each domain object?), then I get a
> "The RequestFactory ValidationTool..." error.
>
> Adams-MacBook-Pro:DynaTableRf roxton$ mvn gwt:run
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building com.google.gwt.sample.dynatablerf.DynaTableRf
> [INFO] task-segment: [gwt:run]
> [INFO] ------------------------------------------------------------------------
> [INFO] Preparing gwt:run
> <snip>
> [INFO] [gwt:run {execution: default-cli}]
> [INFO] create exploded Jetty webapp in
> /Users/roxton/dev/gwt-2.5.0/samples/DynaTableRf/target/DynaTableRf-1.0-SNAPSHOT
> [ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] <Error>:
> CGContextGetCTM: invalid context 0x0
> [ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] <Error>:
> CGContextSetBaseCTM: invalid context 0x0
> [ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] <Error>:
> CGContextGetCTM: invalid context 0x0
> [ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] <Error>:
> CGContextSetBaseCTM: invalid context 0x0
> [INFO] Hibernate Validator 4.1.0.Final
> [ERROR] Feb 26, 2013 3:55:22 PM
> com.google.web.bindery.requestfactory.server.RequestFactoryServlet
> doPost
> [ERROR] SEVERE: Unexpected error
> [ERROR] java.lang.RuntimeException: The RequestFactory ValidationTool
> must be run for the
> com.google.gwt.sample.dynatablerf.shared.DynaTableRequestFactory
> RequestFactory type
> [ERROR] at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator$Builder.load(Deobfuscator.java:57)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment