wood burning stoves*
The moose likes Linux / UNIX and the fly likes How to configure tomcat on linux os and execute web apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to configure tomcat on linux os and execute web apps" Watch "How to configure tomcat on linux os and execute web apps" New topic
Author

How to configure tomcat on linux os and execute web apps

Ramesh kangamuthu
Ranch Hand

Joined: Mar 13, 2007
Posts: 79
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
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
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.


Thanks and Regards,

Ramesh Kangamthu
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Can you access the JSP page directly, like http://ipAddress:8080/appName/welcome.jsp ?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

Ramesh kangamuthu wrote: on linux 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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Did you start Tomcat ??


Regards, Rene Larsen
Dropbox Invite
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

Rene Larsen wrote:Did you start Tomcat ??


I would assume he has, since he's getting a reply from it:

Ramesh kangamuthu wrote:
When we try to run the app like 'http://ipAddress:8080/appName' we got 404 resource not found error.


If the server were not running, I'd expect a connection error.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

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/)?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Pankaj Mangal
Greenhorn

Joined: Mar 20, 2013
Posts: 4
Hi Dear,
I am also getting this problem, Able to access jsp at root but when try to call servlet it show 404 not found error.

I have hosted my web application on Net4 India under Linux OS.

Please help if you have any resolution and if possible send reply to (email erased)


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5776
    
    7

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.


JBoss In Action
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to configure tomcat on linux os and execute web apps
 
Similar Threads
Web App Heap Size
migrating to linux
configure catalina.out for per-app log file
Multiple Struts apps: What can you reuse?
Tomcat authentication and RACF