You may also want to look at http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee.
On Fri, May 21, 2010 at 6:15 AM, José González Gómez < jose.gonzalez.go...@gmail.com> wrote: > Sorry, I don't have my development environment here, so I don't > remember the exact details, but... > > You must run BOTH the Tomcat server and the GWT application in > development mode. The trick is to configure the GWT application so it > doesn't run the built in server, and use the Tomcat server instead. > When run this way, the first time you launch the GWT application it > will ask for the place where the web application is, you must point it > to the Tomcat webapp directory used by Eclipse. This way you're also > able to debug simultaneously the GWT and the JavaEE code. We've got > such an environment, integrated with Maven. > > Sorry for giving such a few details... I guess I'll end up writing and > publishing a how to about this... > > HTH, best regards > José > > On 19 mayo, 20:34, randy <randiz...@gmail.com> wrote: > > Using the Eclipse plugin I created a new GWT project. I was able to > > run it in development mode (via the 'Run As Web Application' command. > > I was able to run the auto-generated test app successfully. Note that > > I named the test project testGWT. > > > > I have an existing project in Eclipse which uses Tomcat. I need to > > integrated GWT into this project. > > > > I followed the instructions here... > http://code.google.com/eclipse/docs/existingprojects.html > > > > I then copied the source code, html and css from the test project into > > my project. I also copied the servlet entry into my web.xml. > > > > I restarted Tomcat and noted that the <WAR>/testgwt directory was > > created/ > > > > I then tried to hithttp:// > 127.0.0.1:8080/TestGWT.html?gwt.codesvr=127.0.0.1:9997 > > in my browser, which returned... > > > > "Plugin failed to connect to hosted mode server at 127.0.0.1:9997" > > > > (I tried changing 127.0.0.01 to localhost, which did not help.) > > > > At this point I thought I would simply compile to Javascript and test > > that way. I right clicked the project Google > GWT Compile. I get the > > dialogue which shows my entry point class. When I click ok I get the > > error "GWT compilation failed" with no details as to why. I confirmed > > that the gwt-servlet.jar file is on my classpath and Eclipse is > > notifying me of no compilation problems prior to the GWT compile > > attempt. > > > > Next I tried compiling to Javascript from the command line and then > > hitting the test page in production mode. This worked. This is > > obviously an insufficient solution however. > > > > I think I must be missing something fundamental. Does anyone have any > > suggestions? > > > > -- > > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com > . > > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > > For more options, visit this group athttp:// > groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- Miguel -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.