OK, here are the steps I am now using (note that I am using Eclipse
3.3.2, Apache Tomcat 6, and Firefox, all under Linux):

1. Use Eclipse and the new GWT plugin to create a project.  Let's call
it "MyProject".  Eclipse will create everything under a module name
of  "myproject", including a web page named MyProject.html.
2. Do whatever to the project, but finally compile it to get class
files, etc.
3. In a terminal window, go to the war directory created by Eclipse in
step 1 above and execute jar -cvf  ROOT.jar *
4. Stop Tomcat.  (Note that I do a lot of stopping and starting Tomcat
here.  Maybe all such steps are not necessary.)
5. Copy the ROOT.war file created in step 3 above to Tomcat's webapps
directory.
6. Remove Tomcat's old ROOT directory.  (Tomcat should be smart enough
to replace ROOT when it expands ROOT.war, but why take the chance.)
7. Start Tomcat to expand  ROOT.war into a new ROOT directory.
8. Stop Tomcat.  (I tried skipping this step, but Tomcat did not seem
to be able to both expand ROOT.war and recognize the newly created
ROOT directory at the same time.)
9. Winthin the new ROOT directory, copy MyProject.html to index.html.
(I really want Tomcat to serve from index.html.  Maybe someone can
find a way for Eclipse to do this, but it must also do the following
step 10.)
10. Within ROOT/WEB-INF, edit web.xml and change <welcome-
file>MyProject.html</welcome-file> to <welcome-file>index.html</
welcome-file>.  (This makes step 9 above work.)
11 Start Tomcat.

After completin the above steps, you should be able to execute your
project in a web browser via http://localhost:8080/ or
http://localhost:8080/index.html.  When I replicate these steps for my
web hosting company, my users will get to my project simply via
http://my-domain-name.com, because there I have set up my-domain-
name.com to serve everything through Tomcat.

I hope this helps someone.  This is "roll your own" on steriods, but
it works.  When GWT can do this, I will be relieved.  Maybe the two
suggestions above by Stan B and jamie are better, but I had to go
through the above steps to understand exactly what is involved.

Regards,

Danny


On Apr 30, 1:05 pm, Alex Rudnick <a...@google.com> wrote:
> We've got a feature request for the plugin for adding support for
> exporting to a .war file and handling .ears.
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=3584
>
> So if this would be a helpful feature for you, you might like to make
> comments on that feature request or star the issue.
>
> Thanks!
>
> On Thu, Apr 30, 2009 at 12:57 PM, Danny <dhho...@gmail.com> wrote:
>
> > Thanks everyone.  I now see that this is a web feature.  When I saw
> > the new GWT 1.6 war file construction and eclipse plugin, I thought my
> > deployment life was getting rosier.  Maybe later.
>
> > When I have gotten my project deployment where I want it, I will post
> > my resultd.
>
> > Regards,
>
> > Danny
>
> --
> Alex Rudnick
> swe, gwt, atl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to