<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- Specify the app entry point class. -->
<entry-point class='com.foobar.client.Main'/>
<servlet path="/com.foobar.Main/gateway"
class="com.foobar.server.GatewayServiceImpl"/>
<servlet path="/com.foobar.Main/login"
class="com.foobar.server.LoginServiceImpl"/>
</module>
<servlet path="/com.foobar.Main/gateway"
class="com.foobar.server.GatewayServiceImpl"/>
<servlet path="/com.foobar.Main/login"
class="com.foobar.server.LoginServiceImpl"/>
it's now:
<servlet path="/gateway" class="com.foobar.server.GatewayServiceImpl"/>
<servlet path="/login" class="com.foobar.server.LoginServiceImpl"/>
and you should get rid of the GWT.getModuleBaseURL() in your
setServiceEntryPoint() calls.
Failure to load a servlet usually means the class file can't be found
on the classpath. I'd double-check your classpath and that the compile
class files for those servlets are on the path.
Colesbury, I actualy recommend sticking with the structure in the top
of your post. If you use the latter one you are forced to deploy your
webapp into the root of a Tomcat install instead of letting it have a
relative path.
Scott
<servlet path="/gateway" class="com.foobar.server.GatewayServiceImpl"/>
<servlet path="/login" class="com.foobar.server.LoginServiceImpl"/>
Mike
That's odd. Changing to the structure in the bottom of my post fixed
the module not found errors. I don't think my app is in the root
Tomcat directory. I access it from a URL like
http://localhost:8888/com.abc.App/App.html.
In my case, the GWT shell was givinig an error that it couldn't find
module 'login' (in lowercase) when I used the form:
<servlet path="/com.abc.App/login"
class="com.foobar.server.LoginServiceImpl"/>
I didn't have any class or module called 'login.'
I had to follow certain steps outlined in this thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3408c38464c57d4a/
to properly deploy DynaTable into a "DynaTable" webapp directory in
Tomcat. I found that I had to change the service entry point from
"/calendar" to GWT.getModuleBaseURL() + "calendar" or the
Tomcat-deployed app would incorrectly try to contact
"http://localhost:8888/calendar" instead of
"http://localhost:8888/DynaTable/calendar". This is with the most
recent stable Tomcat version.
However, this code change messed up hosted mode for me, forcing me to
map my hosted-mode servlet to
"/com.google.gwt.sample.dynatable.DynaTable/calendar" in
DynaTable.gwt.xml.
Do those two changes on DynaTable fail for you?
Scott
Travis