Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying my webapplication on tomcat

 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic