Hi Thomas, That was exactly what it was!
Thank you for showing me the wood through all the trees! On Feb 16, 3:55 pm, Thomas Broyer <[email protected]> wrote: > On Feb 16, 12:32 pm, eggsy84 <[email protected]> wrote: > > > > > > > Hi all, > > > I'm sorry for reposting this issue but after looking through all the > > previous posts on this subject none of the suggested fixes have helped > > me. > > > First of all a bit of background on my dev environment. > > > I have an existing web application (using Spring MVC) and I am trying > > to introduce a small bit of GWT into the application. > > > I am using Eclipse as my IDE and have installed the latest GWT and GAE > > plugins (GAE isn't going to be used). > > > For the application development I am using my own Tomcat server rather > > than the GWT inbedded server and thus shall be using the -noserver > > flag. > > > My directory structure is as follows: > > > Project > > /Project/src/main/java *Defined as a source folder on Eclipse Build > > path > > /Project/src/main/resources > > /Project/src/main/webapp > > > GWT sections > > /Project/src/main/java/package1/package2/package3/gwt > > /Project/src/main/java/package1/package2/package3/gwt/Module.gwt.xml > > /Project/src/main/java/package1/package2/package3/gwt/client > > /Project/src/main/java/package1/package2/package3/gwt/client/ > > EntryPointClass.java > > > I have then defined my Module.xml as the following: > > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.0.2// > > EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.0.2/distro- > > source/core/src/gwt-module.dtd"> > > <module rename-to="mymodule"> > > <inherits name="com.google.gwt.user.User" /> > > <entry-point > > class="package1.package2.package3.gwt.client.EntryPointClass" /> > > </module> > > > Currently I compile the application using the GWT plugin compile > > option and add the following additional compiler flags: > > > -war src/main/webapp > > > which ensures that the I place it places the compiled JS into the > > right location for my web app. > > > In terms of running the webapplication I can successfully run it and > > the JS fires fine so I know the compile stage is working fine. > > > However I am now trying to debug my code using the GWT dev mode and > > getting the following error: > > > The declared package "package1.package2.package3.gwt.client" does not > > match the expected package "client". > > > So this takes me to my Eclipse run configuration for starting dev > > mode. > > > I have a Java Application entry. On the 'Main' tab I have my project > > selected and a Main class of: > > > com.google.gwt.dev.DevMode > > > On the 'arguments' tab I have the following: > > > -noserver -war src/main/webapp > > -startupUrlhttp://localhost:8080/MyProject/myUrl > > Module > > > On the 'classpath' tab I have the following under 'User Entries': > > > - GWT SDK 2.0.2 Library > > - gwt - /Project/src/main/java/package1/package2/package3/ (Folder) > > > Using the above definitions the Dev mode shell successfully fires up > > but when I hit the URL: > > >http://localhost:8080/Project/testPage?gwt.codesvr=127.0.0.1:9997 > > > I get the afore mentioned error. > > > If I try changing the run configuration User entries folder entry to > > be simply: > > > /Project/src/main/java > > > The development mode cannot find my Module.gwt.xml upon startup. > > > With these kind of errors I'm aware that it is quite specific to a > > particular users setup so even though I have gave the specifics of my > > setup I'm quite aware it might be more useful to discuss the > > particulars of the GWT dev mode classpath setup? > > > Would anyone like to contribute or shed any light on this? > > The "user entry" should *obviously* be /Project/src/main/java > > But you have to pass fully-qualified name of your module(s) as the > last argument(s), i.e. package1.package2.package3.gwt.Module -- 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.
