• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

a requested resource not available Error can it be caused by security permissions

 
Ranch Hand
Posts: 638
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

What would be the best way to prove it.

Thanks for any help Tony
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Tony Evans
Ranch Hand
Posts: 638
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Tony
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may have permission as root, but does Tomcat run with that permission? Is Tomcat running as a Service?

Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic