Tomcat Security Manager problem

R

Ragazzo

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top