I created a simple web application that consists of a dir with html, css, js. No server code. For reasons complicated to explain, my administrator insists on turning it into a .war file, so that it can easily be deployed on tomcat. Again, the application does not contain any Java code at all. I didn't create it with ant or eclipse.
I tried creating an archive:
jar cvf mywarfile.war *
Which does indeed create a war file. However, when I deploy this war on tomcat, it doesn't seem to work. Tomcat automatically extracts the war file to a directory but it does not become available through the web server. I guess it has something to do with that my war does not contain directories WEB-INF
and META-INF
.
Is there an easy way I can turn a static client side web application into a deployable war file?