Tomcat Security Manager problem

Discussion in 'Java' started by Ragazzo, Oct 9, 2003.

  1. Ragazzo

    Ragazzo Guest

    When I start tomcat with "-security," the following code no longer
    works:

    InputStream in = getServletContext().getResourceAsStream (
    "/WEB-INF/files/file.xml");

    The code works fine without the security manager enabled, but now I
    always get a <null> instead of the <InputStream>. My first thought
    was that I don't have read permissions for the directory, but the
    catalina.policy file explicitly states that Web applications will get
    permissions to read and write in their application directory.

    An thoughts?

    Thanks!

    Jen
     
    Ragazzo, Oct 9, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe
    Replies:
    0
    Views:
    1,719
  2. none
    Replies:
    0
    Views:
    837
  3. asaguden
    Replies:
    0
    Views:
    320
    asaguden
    Feb 21, 2007
  4. padma
    Replies:
    0
    Views:
    366
    padma
    Oct 3, 2007
  5. Metalone
    Replies:
    0
    Views:
    359
    Metalone
    Jan 6, 2010
Loading...

Share This Page