Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make war file of gwt project in eclipse?

Tags:

gwt

I am making web application using GWT toolkit in eclipse and my application is running successfully as we run from eclipse to right click on project and select Run as web project. But when i make war file from eclipse-ide to Right-click on the project, pick Export, then WAR file so it does'nt work.It give me error "enter module name" it does'nt detect automatically module name. it happens only when i make a web application with gwt plugin otherwise in simple web dynamic application war file create easily with eclipse ide.i want to know how to make a war file in eclipse? And how to deploy my gwt application with tomcat server? Thanks Rahul

like image 760
Rahul Avatar asked Oct 09 '22 00:10

Rahul


2 Answers

Take a look to this other question: create a .war file from gwt-project

In fact the real answer will depend if you want to use ANT or Maven.

like image 150
Carlos Tasada Avatar answered Oct 10 '22 13:10

Carlos Tasada


WAR files are just compressed version of your built web app projects. One simple way to make them is to use jar.exe in JDK package. That's enough to run this command after building your project in eclipse to compress those files as a WAR file:

jar -cvf name_of_jar_file.war -C /path-to-app-built-dir /path-to-put-jar-file

like image 21
Ehsan Khodarahmi Avatar answered Oct 10 '22 12:10

Ehsan Khodarahmi