LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-26-2012, 12:54 AM   #1
greenworld
LQ Newbie
 
Registered: Dec 2011
Posts: 19

Rep: Reputation: Disabled
HTTP Status 404 - in tomcat


Hi,

I was extract the war file under the public_html directory and when i was open my site in browser its displaying error.


HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/5.5.30


How can i fixed this error?

Advanced thanks,

Last edited by greenworld; 03-26-2012 at 12:56 AM. Reason: understand the sentence
 
Old 03-26-2012, 02:12 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,905

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

In tomcat you should place your war file under the webapps directory. When tomcat restarts it will extract the war file, so you don't have to do that

Regards
 
Old 03-26-2012, 02:38 AM   #3
greenworld
LQ Newbie
 
Registered: Dec 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Hi,

Thank you for fast reply, i have deployed the war file under the webapps/ directory, i got another error in browser,

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.30 Server at www.mytownnirmal.com Port 80


Thank you,
 
Old 03-26-2012, 02:53 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,905

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
This error is from the webserver (apache in your case)
You didn't mention how apache is connected to tomcat (mod_jk, mod_proxy etc), but anyway it means that apache cannot contact tomcat on the urlort you specified
 
Old 03-26-2012, 06:48 AM   #5
greenworld
LQ Newbie
 
Registered: Dec 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Hi,

Thank you for your response, Still now getting the same error,

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/5.5.30



shall i check it any file or path? please tell me what should i do?

Thank you,
 
Old 03-26-2012, 09:38 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,905

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
First check if tomcat is running and apache can contact it.
Then check the apache config file to see how is apache connected to tomcat.
If you don't know the answers above, you should post more details, like distro, how you've installed both apache and tomcat and the apache config file

Regards
 
  


Reply

Tags
http, jsp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] http 404 error ansrewdps Linux - Server 11 02-08-2011 10:48 AM
The dreaded status 404 error on Tomcat... rtoney5 Linux - Software 2 12-19-2008 02:23 PM
404 error using JSP on tomcat jayn16 Programming 2 06-25-2006 01:07 PM
Tomcat Status 404 issue FirmbIT Linux - Software 18 04-22-2006 10:30 AM
tomcat jsp examples 404 treycarroll Linux - Software 1 04-21-2006 07:57 PM


All times are GMT -5. The time now is 12:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration