Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-04-2011, 04:50 PM
|
#1
|
Member
Registered: Dec 2010
Posts: 56
Rep:
|
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
|
|
|
02-04-2011, 05:04 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep:
|
The correct place to get an answer is your web server's error log. (Should be catalina.out in your case.)
|
|
|
02-04-2011, 05:36 PM
|
#3
|
Member
Registered: Dec 2010
Posts: 56
Original Poster
Rep:
|
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?
|
|
|
02-04-2011, 06:00 PM
|
#4
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
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.
|
|
|
02-04-2011, 06:20 PM
|
#5
|
Member
Registered: Dec 2010
Posts: 56
Original Poster
Rep:
|
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.
|
|
|
02-04-2011, 07:39 PM
|
#6
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
Are the permissions and ownership (group and user) the same for both files?
|
|
|
02-05-2011, 10:07 AM
|
#7
|
Member
Registered: Dec 2010
Posts: 56
Original Poster
Rep:
|
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?
|
|
|
02-05-2011, 02:48 PM
|
#8
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
Have you tried copying the contents of footer.html to I_footer.html ?
|
|
|
02-05-2011, 07:57 PM
|
#9
|
Member
Registered: Dec 2010
Posts: 56
Original Poster
Rep:
|
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??
|
|
|
02-06-2011, 04:33 AM
|
#10
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
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.
|
|
|
02-06-2011, 03:11 PM
|
#11
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep:
|
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.
|
|
|
02-08-2011, 11:48 AM
|
#12
|
Member
Registered: Dec 2010
Posts: 56
Original Poster
Rep:
|
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..
|
|
|
All times are GMT -5. The time now is 04:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|