Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #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

Hi,

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
<code>
grant codeBase "file:/usr/lib/BlackdownJava2-1.4.1/jre/lib/ext/-"
{
    permission java.security.AllPermission;
}
</code>

I already tried it with
<code>
    permission java.io.FilePermission "<<ALL FILES>>", "read";
</code>
(<<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,

melida
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:43 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.