java.io.FilePermission while accessing JSP
I am learning J2EE from Professional Java Server Programming J2EE 1.3 Edition. Now I am trying to run JSP. I write my code, I deploy it to my J2EE Server (Sun RI). But I get the "access denied (java.io.FilePermission /usr/lib/BlackdownJava2-1.4.1/jre/lib/ext read) when I first run this JSP. I know, by this time, J2EE tries to load JSP, then tries to generate JAVA-Code in its repository (this works fine), then tries to compile this Java-Code (this produces this big bang!).
I extended my catalina.policy and added
grant codeBase "file:/usr/lib/BlackdownJava2-1.4.1/jre/lib/ext/-"
I already tried it with
permission java.io.FilePermission "<<ALL FILES>>", "read";
(<<ALL FILES>> just to try it)
But nothing does work. My workaround for the moment, to deploy my application, then to call all JSP pages, then to go to the repository directory and to compile it manually is very ugly. So does anybody know, what is going wrong here?
I run it under Linux with J2EE RI implementation from Sun.
Thank you for your hints,