Pae Choi, u absolutely don't "know me from Adam", but I was kinda curious about the
subject of your posting "Re:AccessControlException - java.io.FilePermission"!! Now,
this is EXACTLY what the Java exception is that's thrown when I try/attempt to see a
swing applet in my web browser all the time!!
I have tried in the past to edit the java.policy file (or should it be the
java.security file that I edit?), but alas, without any success whatsoever!!! Now, I
don't know at all--not knowing you,as I alluded to earlier--how much Java programming
that you happen to have "under your belt", but I was just wondering if you could "give
me a clue" about how you go about seeing a swing applet in the browser?! I have been
struggling with this damned problem for a long time. In fact, it seems like most of my
life, although I know that that is some kind of an exaggeration. Even though I don't
know you at all, you could become a friend of mine for life if you could only help me
out of this dire problem of mine. And, I also welcome anyone else in the newsgroup who
thinks that they can help with this quite aggravating problem. Please restore some
sanity to me by helping me.
Sincerely Yours,
Steve Burrus
[EMAIL PROTECTED]
************************************************************************
--- On Sun 11/03, Pae Choi wrote:
From: Pae Choi [mailto: [EMAIL PROTECTED]]
To: [EMAIL PROTECTED]
Date: Sat, 2 Nov 2002 23:10:14 -0800
Subject: Re: AccessControlException - java.io.FilePermission
> You do not have access to log files, but do have access the security
> policy
> file? Wow! what kinda IT policy is that?
>
> Anyhow, have you tried "AllPermission" for debug purpose as
> follows:
>
> grant codeBase "file:/home/.sites/5/site513/web/-" {
> permission java.security.AllPermission;
> }
>
> Let us know how it goes. We can go from there.
>
>
> Pae
>
>
>
>
> >
> >
> > Hello All,
> >
> > I hope someone can help ... you are my last chance as I have posted
> on
> > tek-tips forums, the sun.java.com developers forum, read the tomcat
> > documentation, read this address's mail archives, contacted my web
> host,
> and
> > still no joy !
> >
> > I have recently bought some web hosting space, and when testing that
> all
> > works, I get this error, when invoking a servlet from a jsp page :
> >
> > java.security.AccessControlException: access denied
> (java.io.FilePermission
> > /home/.sites/5/site513/web/WEB-INF/classes read)
> >
> > This is what the TOMCAT_HOME/conf/tomcat.policy looks like (relative
> > snippet)
> >
> > grant codeBase "file:/home/.sites/5/site513/web/-" {
> > permission SocketPermission "localhost:1024-",
> "listen,connect,resolve";
> > permission java.util.PropertyPermission "*",
> "read,write";
> > permission java.io.FilePermission
> "/home/.sites/5/site513/-",
> > "read,write,delete";
> > permission java.lang.RuntimePermission
> "accessClassInPackage.sun.io";
> > };
> >
> > and this is what the server.xml looks like (snippet)
> >
> > site513 -->
> > docBase="/home/.sites/5/site513/web"
> debug="0"/>
> >
> >
> >
> >
> > I have checked the OS file permissions also, which are : drwxrwsr-x
> >
> > To me it all looks well ??!!
> >
> > I believe they are running 3.2.3 on a Linux Cobalt server.
> >
> > The problem is is that I can't run tomcat in debug or security mode
> because
> > its a web hosting company, and they are being less than helpful about
> the
> > matter ! Neither can I gain access to the tomcat log directory.
> >
> > Any ideas ?
> >
> > Thanks for your time,
> >
> > Regards
> >
> > Ben
> >
> > _________________________________________________________________
> > Protect your PC - get McAfee.com VirusScan Online
> > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >
> > --
> > To unsubscribe, e-mail:
>
> > For additional commands, e-mail:
>
> >
>
>
> --
> To unsubscribe, e-mail:
>
> For additional commands, e-mail:
>
>
>
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!