LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2008, 01:36 PM   #1
edwarrj1
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
Question Tomcat 6.0.16 installed, but does not display HTML or JSP files


Hi.

I have installed Tomcat 6 on Ubuntu 7.10. I followed the instructions detailed here:

http://www.howtogeek.com/howto/linux...t-6-on-ubuntu/

The start up page for Tomcat displays fine and I can log into Tomcat Manager fine.

However, when I added a new directory inside ROOT and saved a HTML file in it, I tried to load the page , but I got a 404 status error with the following message:
The requested resource (/test/hello.html) is not available.
Does anybody have any idea what may be causing this problem? I would be grateful for any pointers on this as i am new to linux
 
Old 02-21-2008, 02:29 PM   #2
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Rep: Reputation: 16
Have you checked the permissions of the folder or the file?

1. cd to the directory
2. ls -l
3. This will display permissions along with owner/user.

Files owned by root, and user is root, won't be able to be opened by tomcat.


-weisso
 
Old 02-21-2008, 02:53 PM   #3
edwarrj1
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by weisso5 View Post
Have you checked the permissions of the folder or the file?

1. cd to the directory
2. ls -l
3. This will display permissions along with owner/user.

Files owned by root, and user is root, won't be able to be opened by tomcat.


-weisso
Many thanks for your help weisso.

I have checked and the files are owned by and used by root on my machine. I am a little puzzled though as the index.jsp file in the ROOT directory has the same permissions and user/owner settings and this file can be viewed fine.

Do you think I need to make changes to the permissions?

Thank you again for your help.

Rob
 
Old 02-21-2008, 02:56 PM   #4
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Rep: Reputation: 16
Quote:
Originally Posted by weisso5 View Post
Files owned by root, and user is root, won't be able to be opened by tomcat.
Yes please change the file permissions and report back.
 
Old 02-21-2008, 03:17 PM   #5
edwarrj1
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up Many thanks weisso. Problem solved

Many thanks Weisso. I changed the permissions on one of the files and it works fine now.

Many thanks for you help.

Rob
 
  


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
Tomcat jsp problem shan_nathan Linux - Software 1 12-28-2007 03:17 PM
trying JSP with tomcat Anand Kiran Programming 1 01-16-2007 06:35 AM
New to JSP and the Tomcat Container PATFRA Programming 1 06-28-2006 08:37 PM
Can OOo display .html files? CyberLord_7 Linux - Software 3 03-23-2004 02:27 PM
Basic JSP/Tomcat question. CodeWarrior Programming 1 07-06-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration