How to create war file in GWT 2.4 / Eclipse Indigo

1,231 views
Skip to first unread message

sachin sreenivasan

unread,
Oct 13, 2011, 8:52:35 AM10/13/11
to Google Web Toolkit
Hi,

I just upgraded to Eclipse Indigo and installed the GWT 2.4. But I
did not see the "Deploy Module" option at all when I create a Dynamic
Web Project. I was using this option earlier to create a war file
which would also get moved to the tomcat webapps folder. But since I
am not seeing this option at all, I am not able to create a war file
at all. Can someone please help me with this?

Thanks,
Sachin

TBirch

unread,
Oct 13, 2011, 11:43:54 AM10/13/11
to Google Web Toolkit
Right click on your java module and then click on Google Web Toolkit
at the top of the list. Deploy module should be last in the list.

On Oct 13, 8:52 am, sachin sreenivasan

sachin sreenivasan

unread,
Oct 14, 2011, 2:57:32 AM10/14/11
to google-we...@googlegroups.com
Hi TBirch,
 
  I tried that. Thats what I was doing in my prev GWT instance. But I am not seeing that now. Just want to explain a bit, I first downloaded Eclipse-Indigo-EE version. Then I went to the Install Software option and there I gave the link of GWT2.4 and selected the packages and installed. Is there something else I need to do? I am surprised that I am not seeing the "Deploy Module" option itself. Someone please advice.
 
regards,
Sachin

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


TBirch

unread,
Oct 14, 2011, 2:08:43 PM10/14/11
to Google Web Toolkit
Hi Sachin,
I believe I had the same issue when I first started working with
Indigo and here is what I remember doing. I started over with a fresh
download of Eclipse 3.7. Then I installed just the GWT sdk 2.4 through
the Eclipse update function (not the designer or any other of the
choices). At that point I checked and the option to deploy was there.
Only then did I go back in to the Eclipse update function and add the
additional features.

On Oct 14, 2:57 am, sachin sreenivasan

sachin sreenivasan

unread,
Oct 17, 2011, 8:40:06 AM10/17/11
to google-we...@googlegroups.com
Hi,

  I tried this but nothing seems to work. Can someone please send me a list and order in which the softwares need to be installed? Or atleast some blog / website where the details are written clearly.

 This is what I did fyi.

On my laptop with windows 7, i first downloaded eclipse-jee-64 bit package for Eclipse Indigo.
Then I went to the install software option and selected the GWT link for Eclipse 3.7 and installed the JDK and GWT, a total of 3 packages were shown. Dint select the Android option.
After the installation got completed, I restarted my eclipse and created a new GWT project (Dynamic Web Project). I was able to see the design mode properly.
But I did not see the deploy module option at all..

What am I doing wrong here? I tried installing this 2-3 times but no luck. How can i see the "Deploy Module" option?

Regards,
Sachin

Magallo

unread,
Apr 17, 2012, 7:04:10 AM4/17/12
to google-we...@googlegroups.com
Hi, I read this article about "Deploy Module" option. I know it's not completely in topic but it's regarding this.
I see that in Eclipse there is the possibility to deploy a war file just opening the context menu with right-click of the mouse on the module name file .java in the package explorer and choosing the "Google Web Toolkit->Deploy module" menu item. Doing this, Eclipse will automatically create a build.xml file. Then the build.xml script is generated and the package is created. This works but there is a problem. The file gwt-dev-jar is copied in the WEB-INF/lib directory and it is included in the war file. I know that gwt-dev.jar must not be deployed but for a reason that I don't uderstand, the buildprocess copies it. Why? Anyway....I would like to change this build.xml file to make some customization, but every time I build choosing "Google Web Toolkit->Deploy module" from the context menu, it is deleted and re-generated so I can't edit it manually. Where I can set some customization so that the build.xml automatically generated does what I want? How can I customize it to exlude gwt-dev.jar? Please help.

Davilin

unread,
May 16, 2012, 10:08:43 AM5/16/12
to google-we...@googlegroups.com
Hi, I have the same trouble, can you solve it maybe? I'm trying, but there are no results... Thank you
Message has been deleted

Assiya EL

unread,
May 17, 2012, 4:19:49 PM5/17/12
to google-we...@googlegroups.com
you must to create a web project and add jar of GWT2.4 and not create a project gwt with plugin  ........it is possible to have a war of the project with this step

good luck

2012/5/16 Davilin <david.da...@gmail.com>
Hi, I have the same trouble, can you solve it maybe? I'm trying, but there are no results... Thank you

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
 
Assiya EL
Master Qualité du Logiciel 



Plz consider environment - Only print this if necessary


David Davila

unread,
May 17, 2012, 5:52:25 PM5/17/12
to google-we...@googlegroups.com
Thank you Assiya, but the trouble persists, there are no "Google Web Toolkit" option when I click right on xml file or anywhere. I was looking on sites like Google groups but no one can resolve it. There are not exist this option on the latest version Eclipse maybe?

Carlos Silva

unread,
May 18, 2012, 9:33:13 AM5/18/12
to google-we...@googlegroups.com
On Thu, May 17, 2012 at 8:19 PM, Assiya EL <missw...@gmail.com> wrote:
you must to create a web project and add jar of GWT2.4 and not create a project gwt with plugin  ........it is possible to have a war of the project with this step

good luck

I create a normal GWT Application (from the Eclipse plugin). Then export the src folder into a .jar file in war/WEB-INF/lib/ and then use the warbuilder.xml available from this[1] site.
Works like a charm. :)


David Davila

unread,
May 18, 2012, 12:25:33 PM5/18/12
to google-we...@googlegroups.com

Thank you Carlos, your info are very helpful, greetings from Ecuador !
Reply all
Reply to author
Forward
0 new messages