LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Tomcat 6.0.16 installed, but does not display HTML or JSP files (https://www.linuxquestions.org/questions/linux-software-2/tomcat-6-0-16-installed-but-does-not-display-html-or-jsp-files-622844/)

edwarrj1 02-21-2008 12:36 PM

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

weisso5 02-21-2008 01:29 PM

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

edwarrj1 02-21-2008 01:53 PM

Quote:

Originally Posted by weisso5 (Post 3065306)
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

weisso5 02-21-2008 01:56 PM

Quote:

Originally Posted by weisso5 (Post 3065306)
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.

edwarrj1 02-21-2008 02:17 PM

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


All times are GMT -5. The time now is 06:20 AM.