I'm reading the book GWT In Action and trying to setup the
ServerStatus RPC example. I have created my web.xml to look like this:

<?xml version="1.0" encoding="UTF-8"?>
<web-app>
  <servlet>
    <servlet-name>ServerStatusServlet</servlet-name>
    <servlet-class>org.gwtbook.server.ServerServiceImpl</servlet-
class>
  </servlet>
  <servlet-mapping>
    <servlet-name>ServerStatusServlet</servlet-name>
    <url-pattern>/org.gwtbook.ServerStatusApp/server-status</url-
pattern>
  </servlet-mapping>
</web-app>

however after mvn package, the web.xml file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<web-app>
  <servlet>
    <servlet-name>ServerStatusServlet</servlet-name>
    <servlet-class>org.gwtbook.server.ServerServiceImpl</servlet-
class>
  </servlet>
  <!--inserted by gwt-maven-->
  <servlet>
    <servlet-name>org.gwtbook.server.ServerServiceImpl/
org.gwtbook.ServerStatusApp/server-status</servlet-name>
    <servlet-class>org.gwtbook.server.ServerServiceImpl</servlet-
class>
  </servlet>
  <servlet-mapping>
    <servlet-name>ServerStatusServlet</servlet-name>
    <url-pattern>/org.gwtbook.ServerStatusApp/server-status</url-
pattern>
  </servlet-mapping>
  <!--inserted by gwt-maven-->
  <servlet-mapping>
    <servlet-name>org.gwtbook.server.ServerServiceImpl/
org.gwtbook.ServerStatusApp/server-status</servlet-name>
    <url-pattern>/org.gwtbook.ServerStatusApp/server-status</url-
pattern>
  </servlet-mapping>
</web-app>

you'll notice the additional <servlet> and <servlet-mapping> stanzas
which "duplicate" what I had originally (ie, same class-name and url-
pattern - just a different name).

When I try to deploy this war to jetty or tomcat5.5, it doesn't work -
I get 404 errors when I try to go to org.gwtbook.ServerStatusApp/
ServerStatusApp.html which is the path I "know" since it is the one I
typed in.

Is this intended? Perhaps I didn't specify my web.xml correctly for
use with GWT? (finding examples of other web.xml files that work is
like splitting atoms.) Any guidance would be appreciated.

Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"gwt-maven" 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/gwt-maven?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to