• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

file access on server - please help

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,
I need a little help with uploading my jsp application.
i am using webappcabarets services in tomcat3.1
i am using a connectionbroker from javaexchange.
the application works perfectly when used on development machine.
the constructor of the connection broker requires the name of a file to write its log. when i specifya file i get an exception which says something like this
access denied (java.io.FilePermission
/WEB-INF/servinglog.txt write)
java.security.AccessControlException: access
denied (java.io.FilePermission
/WEB-INF/servinglog.txt write)
apparently there is something about the server sandbox preventing write access to the file...
how do i overcome this proble..
Please help
Thanks Divyajot
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the same problem. You need to use:
Strong path=application.getRealPath("/WEB-INF/");
to locate the file. Read their help, please!
Thanks!
Roseanne
Join our SCJD Study Group when certified
 
reply
    Bookmark Topic Watch Topic
  • New Topic