Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 9th, 2003, 05:32 AM
Registered User
Join Date: Sep 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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/-"
    permission java.security.AllPermission;

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,


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java IO error bb1234_00 Java Basics 2 March 26th, 2007 07:25 AM
error accessing database connection using jsp muthumari_p2003@yahoo.com Pro JSP 0 May 8th, 2006 05:54 AM
Error message - class java.io.BufferedInputStream simone_s Java Basics 4 May 2nd, 2006 12:08 AM
Accessing of Arrays of jsp in javascript theguardian@vsnl.net JSP Basics 1 August 26th, 2004 11:16 PM
Accessing of Arrays of jsp in javascript theguardian@vsnl.net JSP Basics 0 August 26th, 2004 12:54 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.