I am trying to use Tomcat rather than the built in Jetty server. I've followed these instructions found at https://developers.google.com/eclipse/docs/faq#gwt_in_eclipse_for_java_ee:
How do I use the plugin with a GWT Dynamic Web project in Eclipse for Java EE?
It's easy to develop and debug a GWT application in Eclipse for Java EE:
- In your project's properties dialog, select Google > Web Toolkit and check the box Use Google Web Toolkit.
- Switch to the Google > Web Application property page and change WAR directory as appropriate (
WebContentis the default for Eclipse for Java EE) and uncheck the box Launch and deploy from this directory. Click OK to close the properties dialog. - If your project uses the Apache Tomcat library, ensure that the GWT SDK library is above it on your project's classpath (project properties > Java Build Path > Order and Export). Otherwise, you may get a
java.lang.NoSuchMethodErrorwhen launching your application in hosted/development mode. - Start your project's server (Jetty, GlassFish, Tomcat, etc.) using your configured WTP server adapter.
- Create a new Web Application launch configuration for your project. On the Server tab, uncheck Run built-in server (since you want to use your configured WTP server adapter instead) and on the GWT tab change the URL field to point to your server (e.g.
http://localhost:8080/WebApp). - Run/Debug your new launch configuration. The first time you do this, you'll have to select the location of the WAR directory that WTP is publishing to (this is configurable, but by default it is
<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/<project>).
GWT development/hosted mode is now running in your own server, and you can debug either server or client code. If you make changes, WTP's publishing mechanism will automatically copy the modified class files or static resources to your runtime WAR directory.
The problem is that I continually get a 404 error. The URL is: http://127.0.0.1:8080/AccountRequest/AccountRequest.jsp?gwt.codesvr=127.0.0.1:9997 which differs from the built in server URL only by ports. When I go through the war directory inside the Eclipse project, all the pieces are in place.Any ideas?
Thanks,
Rob Tanner
Linfield College
--
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