eLRuLL eLRuLL - 8 months ago 73
Java Question

Generate war file from tomcat webapp folder

I have a tomcat server working, and there I have a webapp folder


I didn't deploy the project; I only have that folder of that application (as

What I need is a WAR file. How can I create a
file from this webapp?


You can create .war file back from your existing folder.

Using this command

cd /to/your/folder/location
jar -cvf my_web_app.war *