eLRuLL eLRuLL - 1 year ago 193
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?

Answer Source

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

Using this command

cd /to/your/folder/location
jar -cvf my_web_app.war *
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download