Hi All !! I am not able to deploy a simple struts application on Tomcat.I have created a war file named MiniHR.war for my application and placed it in webapps folder under Tomcat but at runtime when I start the server it just gives the 404 error saying that the "Requested resource not found". I tried to use the manager console and upload my MiniHR.war file on the server but then it gives the message "FAIL - War file "MiniHR.war" already exists on server". I am attaching my web.xml and struts-config.xml for reference.
My web.xml looks like this ----------------------------- <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app> <display-name>Struts Example Application</display-name>
Hi Sumit, As you have already put your .war file in the webapps, the deployment of the module using the /manager of tomcat will surely give an error. The applications in the webapps folder is deployed at server startup if the applications are in the correct folder heirchary. If not then, they will not be deployed. Secondly, try to see the server log on console or in the logs folder and you will get the exact error. Generally some tld, etc throws errors at times(I dont know why?) at deployment. YOu will see some SEVERE ERROR:.......... deploying /application name in the server log.
Make the war file again and trying deplying it from /manager (DOnt put in webapps) or try exploded structure deployment. This partiuclar example worked for me on tomcat. :- ) Hope that it should help.