Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Sun One version 8 and permissions --- Help Please

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
We are in the process of converting our application from WAS 5.1 to Sun One 8.0 (due to pricing and technology). Part of our application relies heavily on the Lucene full text search package.
The problem that is happening is that when Lucene is building the index for searching we are getting "access denied" errors when the indexer attempts to delete a lock file.
It seems that the application server or the application itself does not have the correct permissions to delete elements in the directory. Unfortunately, the design of the application requires that our users be able to define the directory their index will be built in and they can change this at any time.
Does anyone know if there are any steps within the Admin client of v8 that can update the security an application can have on the file system?
Thanks,
Brian Clay
 
Brian Clay
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured it out.
For those that might have the same problem.
Locate either <application>.policy or java.policy -- depending on how secure you want this to be -- within the Application server directory and add the following line:
permission java.io.FilePermission "<directory path>", "read,write,delete";
Not very dynamic but it works.
reply
    Bookmark Topic Watch Topic
  • New Topic