Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 130329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:55:51+00:00 2026-05-11T05:55:51+00:00

We have a locally-developed triple store based on b-trees which I want to use

  • 0

We have a locally-developed triple store based on b-trees which I want to use for persistent storage in a number of servlet applications. Rather than embed the b-tree index files in the servlet .war, I would like to store them at a known location and have the servlets access them directly. This all works in Jetty, but raises a security exception when I try it in Tomcat. I’m told that Tomcat’s security model requires explicit permissions for a servlet to access files outside the directory tree where the .war is unpacked. If I’ve understood the Tomcat (version 5.5) documentation correctly, the following added to catalina.policy should allow the servlet to access the directories where the index files are:

grant codeBase 'jar:file:${catalina.home}/webapps/mytestapp/-' {   permission java.io.FilePermission '/var/data/tdb/-', 'read, write, delete';  } 

However, I still get a security exception:

java.io.FileNotFoundException:                      /var/data/tdb/kb/node2id.idn (Permission denied)     at java.io.RandomAccessFile.open(Native Method)     ... 

To tick off the obvious dumb errors: I’ve checked that the index files are at the correct location, with the correct permissions, and are not corrupted. Any suggestions or hints at what I’ve got wrong in the security settings would be gratefully received.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:55:51+00:00Added an answer on May 11, 2026 at 5:55 am
    java.io.FileNotFoundException:                  /var/data/tdb/kb/node2id.idn (Permission denied) 

    This is your OS denying access, not Java security. If it was Java security you would get an AccessControlException (or some other form of SecurityException). The user you are running the Tomcat process as presumably does not have access to that file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a RAILS 3.x application developed locally using MySQL which has data which
I'd like to see which tags I have locally that aren't available on a
I have used PHPStorm frequently to download files locally with the use of FTP,
I have developed a web service using netbeans. It's currently being hosted locally(localhost). I
I have always developed my projects using MAMP locally and once done simply uploaded
I have developed the SSRS reports. It is running fine locally. but after deployed
I want to have a web service developed in a solution in visual web
I have a Oracle server which can be accessed locally (i.e. from the computer
We have an Ant and Ivy-based build management system, which basically consists of a
I have developed a small app that stores locally in iOS through archiving an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.