Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure tomcat on linux os and execute web apps

 
Ramesh kangamuthu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you access the JSP page directly, like http://ipAddress:8080/appName/welcome.jsp ?
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you start Tomcat ??
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Mangal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic