How to configure tomcat on linux os and execute web apps
Ramesh kangamuthu
Ranch Hand
Joined: Mar 13, 2007
Posts: 79
posted
0
Hello,
In our client place, we installed tomcat 6.0 on linux OS and deployed our application in the path usr/share/tomcat-6.0.8/webapps. When we try to run the app like 'http://ipAddress:8080/appName' we got 404 resource not found error.
Can I know how to configure tomcat on linux and deploy web apps in it.
Thanks and Regards,
Ramesh Kangamuthu
Lester Burnham
Rancher
Joined: Oct 14, 2008
Posts: 1337
posted
0
Did you configure a default page, or a servlet that listens to "/"? If you have neither, then accessing the web app root is expected to return a 404.
Ramesh kangamuthu
Ranch Hand
Joined: Mar 13, 2007
Posts: 79
posted
0
Hello Burnham,
I used welcomepage as jsp file for the application. but it shows resource not found. I think that we need to set context path for the app like /applicationPath in tomcat server configuration. I want to set it on lnux OS.
Which Linux OS? There are an untold number of Linux distributions, with widely varying configurations.
Did you use your OS's package management system to install Tomcat, or did you just download Tomcat and extract it?
Ramesh kangamuthu wrote:
Can I know how to configure tomcat on linux and deploy web apps in it. . .
. . .I used welcomepage as jsp file for the application. but it shows resource not found. I
Just so we're all on the same page, have you actually deployed your application? It should be as simple as copying your application's WAR file to the TOMCAT_ROOT/webapps directory. Where that directory is can vary depending on how you installed Tomcat.
Ramesh kangamuthu wrote: ...I used welcomepage as jsp file for the application. but it shows resource not found...
Can you drop a simple html page in to your web application and access it? And you are able to access the tomcat default index page right (http://ip:port/)?
Pankaj, the purpose of the forum is so that people can share solutions with each other. If someone emails you a solution, then others don't benefit from it, thus reducing the effectiveness of the forum.
Also, you might bet better results if you ask this as a new post in the servlets and jsps forum. And TellTheDetails.