I have an application, which is run on a dev and a production live box. One of the functionality is to upload a document into a directory under webapps, and then allow someone to look at the doc through there browser
This works perfectly on the dev box and the UAT box ,but on the production box the document is uploaded ok , but when the browser is pointed at the link I get the follwoing error:
The requested resource (/know_your_customer_docs/1578/1578_1090850952794_TestDoc.doc) is not available.
The document does exist and is in the correct directory. the code works ok on both the dev and uat box I am thinking of ways of debbugging this. As the code works ok, all the paths are correct. Can a security permission cause the above error.
If it is a Java security thing you should get something like java.security.AccessControlException: access denied in your log file. Which version of Tomcat are you using? Is there perhaps a permission problem with that directory on the production box? Bill
I am using version jakarta-tomcat-4.1.12. I have permission as root to write and read from that directory. I have no problem writing the file to the directory. The problem is reading it through the browser. The permissions are the same rw on both the dev, uat and production box.
Is there any code similar to checkread from the Security Manager that can take a link and test that it exists and that you have permission to view that page. Not been able to look at the log files on the production box but will do as soon as I get the chance.
Author and all-around good cowpoke
Joined: Mar 22, 2000
You may have permission as root, but does Tomcat run with that permission? Is Tomcat running as a Service?