and then rename webapp.jar to webapp.war, but the webapp won't run under tomcat. When I decompressed the webapp.jar with a tool, I found all the directories inside webapp.jar were placed in Tomcat's webapps directory, not in webapps/webapp.
I tried posting a similar question the Ant forum because i'm using Ant, but I don't have to use ant, I just have to make a war file.
This will make a war file containing the contents of webapp and store it in the webapps directory. (Thanks Rusty Enisin. I misunderstood the question.) [ August 02, 2005: Message edited by: Tarun Gandhi ]