Ok, so I changed my web.xml file to only this:
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
</web-app>
and then ran mvn package. I then deployed the resulting war file in
both jetty 5.1 and tomcat 5.5. I had to "fix" jetty by telling it not
to validate the web.xml file (it wasn't finding the web-app node and
this seems to be a known issue in jetty 5.1) and after turning off
(for the moment - it's a local dev box and I'm just testing anyway)
security in tomcat so I could get to the vm statistics (number of
threads, memory, etc), it all just worked. I had also removed the -
SNAPSHOT from the version in my pom beforehand.
Everything seems to be going just fine now.
I also spent some time reading the "in practice" book which was
helpful, but didn't explain (or I missed it) how the mergewebxml
actually merges (ie, what it matches on). I like only having to
mention things in my module descriptor and the maven plugin just makes
it work. Very nice indeed.
Thanks for the replies, I'll continue reading and trying more
complicated examples.
Jeff
On Sep 5, 8:50 am, Charlie Collins <
charlie.coll...@gmail.com> wrote:
> GWT-Maven uses a naming convention based on whats in your GWT module
> file. It inspects every servlet element there, and during the war
> phase, creates servlet and servlet-mapping entries in your
> distrubution web.xml (not the source web.xml, it doesn't touch that -
> that's the idea).
>
> Here is a full Maven example (using the snapshot branch build of GWT-
> Maven) with a source web.xml and client code that calls RPC:
http://gwt-maven.googlecode.com/svn/branches/cc_20080814_automaticref....