aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes deploying my webapplication on tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "deploying my webapplication on tomcat" Watch "deploying my webapplication on tomcat" New topic
Author

deploying my webapplication on tomcat

Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

Hi,

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.

Can anybody point out what mistake i am making

SCJP6.0,My blog Ranchers from Delhi
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

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).
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

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

the same thing i want to do using only..
http://localhost:8081/

when i say
http://localhost:8081/
it should directly go to the maincontent.jsp page.

and i have found it is done using forwarding the jsp..
http://www.roseindia.net/jsp/jsp-forward-request.shtml

but the problem is graphics are not appearing...means none of the CSS is working..page is displaying without any graphics

Can anybody suggest any reason why the CSS are not working..i have explored a lot..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploying my webapplication on tomcat