Compressing a Servlet Project into a .war file
In order to compress a ‘pets’ servlet/web application/project into a "Web Archive" file named pets.war which can easily be imported in Eclipse or other IDE”s or can easily be transported to another server, Execute the following commands in the terminal:
Now you can copy pets.war to any webapps directory on a new Tomcat Server. If Tomcat is running, the war file will be automatically decompressed and a web application named ‘pets’ will be created in the appropriate directory as soon as you save it!!
Please let me know if it helps :).
- Resource Needed for JDBC Connection Pooling Support - In order to get JDBC working with Connection Pooling Support,...