Debugger and web.xml

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Debugger and web.xml

Postby michael » Tue Jan 23, 2007 12:43 pm

We're currently in need of using our own custom web.xml file. We started with the generated one and added several things to it (listeners, filters, etc). For building a war file we use a custom ant script that works fine for Tomcat installations. The problem is getting the GWTDesigner debugger to actually use the web.xml file when it's run. Is there any way to do this? Do I need to put the web.xml file in a specific place so that it's used when the debugger is loaded?

Thanks in advance for any insight.
-Michael
michael
 
Posts: 14
Joined: Tue Jan 23, 2007 9:06 am
Location: New Jersey

Re: Debugger and web.xml

Postby Eric Clayberg » Fri Jan 26, 2007 7:47 pm

What do you mean by the "GWT Designer debugger"?

GWT Designer debugger does not include a debugger.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby michael » Mon Jan 29, 2007 5:34 am

I should have been more clear. I mean the google shell. When you "debug" a GWT app from eclipse when GWTDesigner is installed, it launches the google shell.
-Michael
michael
 
Posts: 14
Joined: Tue Jan 23, 2007 9:06 am
Location: New Jersey

Postby Eric Clayberg » Mon Jan 29, 2007 1:09 pm

This would be a better question for Google's GWT forum.

In fact, the following post from the GWT forum might help...

hosted mode with custom web.xml

I am not sure of the ideal way to solve this issue but I have run into
the same problem and another related issue. For the record I will
elaborate what the 2 things are:

1. I want to use a deployment descriptor that is local to my app
because of other filters, parameters, realms, etc, apart from just GWT
servlets (for which you can create mock objects). I want that
deployment descriptor to matter in Hosted Mode.

2. I want whatever GWT service servlet entries are in my GWT module to
also be deployed automatically with my applications deployment
descriptor (automatically merged into any local web.xml) without having
to maintain the entries in two places (without having to define the
module stuff AND duplicate it in a deployment descriptor that is
deployed with the app).

Your question is the same as item 1. For that what I have been doing
is munging the web.xml that the GWT development tomcat instance uses.
tomcat\webapps\ROOT\WEB-INF\web.xml. This seems to work but it's not
ideal because it means I have to maintain the entries in the deployment
descriptor in two files (my apps web.xml which is deployed with the
app, and the GWT ROOT web.xml).

For item 2, I have been experimenting with having a build process,
Maven, inspect and merge the .gwt.xml module file servlet entries with
the applications specific web.xml. This is being enabled at present
via a GWT Maven plugin (http://code.google.com/p/gwt-maven/). I am
using the Maven 1 version of the plugin, which takes the module file
servlet entries and creates relevant servlet and servlet-mapping
entries in the deployment artifact web.xml (not in the source web.xml,
the source one has all the other stuff, init params, realms, other
servlets, so on - and it is not modified, but the final one deployed is
that source file PLUS GWT servlet entries that are added automatically
by the build/deploy process).

There certainly may be better ways to do this stuff, but I haven't run
across them yet, I think most people are just maintaining duplicate
entries in both cases. If anyone has any other ideas on this front
please advise.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests