I'm trying to deploy my Struts
application on our live Linux server and the pages are not coming up on the web and I don't know how to configure the server. I'm using Struts, Tomcat
, Hibernate and jsp
This is what I did:
I copied our *.war file in the "/var/www/html/" directory. However, when I re-start Tomcat, the contents of the war file are not made available in the web application.
Why is it that Tomcat is not automatically picking up and deploying our app after JVM restart? I tried doing the same in the "/home/webadmin/mydomain.com/html" as well with not luck.
The following are my questions:
1) Why won't my index.jsp come up? It is located in "/home/webadmin/mydomain.com/html"
2. Is my web.xml wrong?
3. What's the significance of "/var/lib/tomcat5/webapps"? Should I be using this too?
The name of our .war file is "PBWebApp.war". When I deploy to "/var/lib/tomcat5/webapps", a "PBWebApp" directory is automatically created by the system. This directory contains the jsp and java
files. Here's the file structure: