• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

How to configure tomcat on linux os and execute web apps

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you access the JSP page directly, like http://ipAddress:8080/appName/welcome.jsp ?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you start Tomcat ??
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/)?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
A timing clock, fuse wire, high explosives and a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic