I have made a small project and tried to run it on tomcat5.5..
let suppose the name of the project is:-shankyweb
I have made a war file and deployed it on tomcat5.5 on the following location
D:\apache-tomcat-5.5.33\webapps\ROOT\WEB-INF\lib
and replaced the existing web.xml with the my application web.xml here on..
D:\apache-tomcat-5.5.33\webapps\ROOT\WEB-INF
but when i try to run the jsp file by restarting tomcat it is saying no resoure found with error code as 404.
Shanky Sohar wrote:
I have made a war file and deployed it on tomcat5.5 on the following location
D:\apache-tomcat-5.5.33\webapps\ROOT\WEB-INF\lib
What exactly did you do? Have you just copied your WAR-file to the mentioned location? If yes, that's not the way to go.
If automatic application deployment is activated you can copy your WAR just to D:\apache-tomcat-5.5.33\webapps\ and Tomcat should pick it up after a few seconds and deploys your application.
Or you use the Tomcat Manager (under http://localhost:8080/manager/html but be aware that your port might differ and that you have to have modified the tomcat-users.xml to get access to the manager-application).
auto deploy is true,,
So i put my jar at
D:\apache-tomcat-5.5.33\webapps\
and it working now..
but now i want to run my webapps home page but the problem is that it is there in directory other than welcome page..
because of which i need to type the complete url for the page.
http://localhost:8081/ShankyWeb/jsp/MainContent.jsp