[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Java servlet



Hi,
you have to alter the file:
 /usr/java/jakarta-tomcat-3.2.3/conf/tomcat.policy

find the line pertinant to the site you are dealing with and add the line
to give java.io.FilePermission to it.
e.g.
grant codeBase "file:/home/.sites/[yoursiteinfo]/-" {
  permission java.io.FilePermission "/home/.sites/[your site file info]/-", 
"read,write,delete";
};

hope this helps

Gus

> Even with 777 permissions it doesn't work.
> and I still get the same error
>
> ----- Original Message -----
> From: "Dave @ The Hostworks" <dave@xxxxxxxxxxxxxxxx>
> To: <cobalt-developers@xxxxxxxxxxxxxxx>
> Sent: Friday, March 28, 2003 2:23 PM
> Subject: Re: [cobalt-developers] Java servlet
>
> > you have to make the file writable.. its not apache no java's problem.
>
> chmod
>
> > 755 <file>
> > ----- Original Message -----
> > From: "Simon" <simon@xxxxxxxxxxxxxxxx>
> > To: <cobalt-developers@xxxxxxxxxxxxxxx>
> > Sent: Friday, March 28, 2003 9:12 AM
> > Subject: [cobalt-developers] Java servlet
> >
> > > Chaps,
> > >
> > > I am a relative newbie using the Raq550, and have a problem.
> > >
> > > This is :- I am using a java servlet which needs to read a file,
> > > I keep getting
> > > javax.servlet.ServletException: access denied (java.io.FilePermission
> > > on the file, even though the operating system perms are set OK,
> > >
> > > Does anyone have an idea of where I should look for the answer, is it a
> >
> > Java
> >
> > > or Apache config problem
> > >
> > > Simon
> > >
> > > _______________________________________________
> > > cobalt-developers mailing list
> > > cobalt-developers@xxxxxxxxxxxxxxx
> > > http://list.cobalt.com/mailman/listinfo/cobalt-developers
> >
> > _______________________________________________
> > cobalt-developers mailing list
> > cobalt-developers@xxxxxxxxxxxxxxx
> > http://list.cobalt.com/mailman/listinfo/cobalt-developers
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers