On Wed, Dec 2, 2009 at 12:43 PM, Ken Stevens <[email protected]> wrote:
>
> http://localhost:8080/myproject/com.foo.bar.App/App.html
>
> When "/myproject/" appears in Tomcat but not in mvn gwt:run, it makes
> testing a pain because any web navigation links (like Window.open("/
> index.html", "_self", ""); ) will work in mvn gwt:run but break in
> tomcat (since tomcat would require the URL to be "/myproject/
> index.html).
Think your problem has to do with configuring the gwt mojo. I use
something like:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<gwtVersion>1.7.0</gwtVersion>
<module>com.googlecode.gxtforms.demo.Application</module>
<runTarget>index.html</runTarget>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
and gwt:run opens up to:
http://localhost:8888/index.html
course I have an index.html in the /war directory with this:
<script language="javascript"
src="com.googlecode.gxtforms.demo.Application/com.googlecode.gxtforms.demo.Application.nocache.js"></script>
HTH,
Dave
--
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.