LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2011, 04:50 PM   #1
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Rep: Reputation: 0
http 404 error


I've created a .html footer file with black background which should show up in the webpage.But when I access the page,the place(footer part) in the webpage where I should get a black background returns me a http 404 error code

HTTP Status 404- /footer/footer.html
type status report
message /footer/footer.html
description The requested resource (/footer/footer.html) is not availble).

So,is that something to do with the file access permissions that tomcat is failing to get??

Any help would be greatly appreciated.

Thanks
 
Old 02-04-2011, 05:04 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
The correct place to get an answer is your web server's error log. (Should be catalina.out in your case.)
 
Old 02-04-2011, 05:36 PM   #3
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Original Poster
Rep: Reputation: 0
the tomcat version that's shipped with the product don't have the catalina.out in the log directory.Is there any other way I can debug the error?
 
Old 02-04-2011, 06:00 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Is the footer file contained within a folder called footer ?
If so, is that folder one under the level of the document root ?
Remember that /anything means in the document root ...

Unless the directory footer is in the folder /www/html/footer (or equivalent) then the path to that folder is wrong and 404 is a natural response. Don't look for problems where things are not in the correct place.

This isn't a tomcat error, it is a straight-forward apache error.
 
Old 02-04-2011, 06:20 PM   #5
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Original Poster
Rep: Reputation: 0
I've the footer in the tomcat sub-directory that was shipped with the application. something like

/opt/..../tomcat/.../apps/footer/footer.html.

I've another html file(that came with the installation of the application) in the same directory as the footer.html which shows back in the browser.
 
Old 02-04-2011, 07:39 PM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Are the permissions and ownership (group and user) the same for both files?
 
Old 02-05-2011, 10:07 AM   #7
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Original Poster
Rep: Reputation: 0
here is the ls -la output to the file I'm worried about

-rwxrwxrwx 1 rmaddali rmaddali 132 Feb 4 15:50 footer.html
-rw-rw-r-- 1 root root 721 Feb 4 16:04 l_footer.html

footer.html is the file I created and trying to embed that in the webpage,which inturn gets 404 problem.

l_footer.html is the application file which shows up in the webpage.

any ideas?
 
Old 02-05-2011, 02:48 PM   #8
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Have you tried copying the contents of footer.html to I_footer.html ?
 
Old 02-05-2011, 07:57 PM   #9
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Original Poster
Rep: Reputation: 0
yes I tried that and it worked.However, the footer I need to work with is different from the l_footer

l_footer is just a one line display at the bottom of the webpage. Custom footer.html I need to implement is to replace the portion of the webpage.

so,is that something to do with the access permission??
 
Old 02-06-2011, 04:33 AM   #10
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Well if you give that file identical permissions as the I_footer file then you can find out.
Personally, I would imagine that tomcat only sees the I_footer file as the valid file to include. You could try renaming your footer to I_footer2.html and give it the same permissions as I_footer.html. But it is just easier to replace the contents of I_footer with the contents of your footer file.
 
Old 02-06-2011, 03:11 PM   #11
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by ansrewdps
the tomcat version that's shipped with the product don't have the catalina.out in the log directory.Is there any other way I can debug the error?
Which log directory are you talking about? (The one under $CATALINA_HOME?)

And are you front-ending Tomcat with Apache web server? If so, this is simple - check Apache web server's error log. If not, we need to figure out where catalina.out is in your "custom" install.
 
Old 02-08-2011, 11:48 AM   #12
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Original Poster
Rep: Reputation: 0
I solved it...

it should be the url of the file not the path to the file. this solved my problem


Thanks for the help..
 
  


Reply


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
SVN Bazaar error: Unable to handle http code 401: expected 200 or 404 for full respon vikramtheone Linux - Newbie 0 07-02-2010 09:10 AM
fc5 yum getting http 404 error mbradbones Linux - Newbie 3 02-03-2007 01:10 PM
http 404 , the page connot be found alsaaf Linux - General 3 12-11-2006 07:34 AM
Tired of your usual HTTP 404 error message? vharishankar General 7 05-31-2005 11:25 AM
(404)error johncla Linux - Networking 1 03-25-2001 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration