..
>>>How could I know which class has access denied..?
..
>> The Stacktrace is usually helpful in that regard
..
> java.security.AccessControlException: access denied (java.io.FilePermission
> /home/eduardoyp/Aplicaciones/jakarta-tomcat-5.0.18/webapps/smulti/WEB-INF/classes/net/sf/cglib/MethodProxy$Generator.class
> read)
If I am reading this correctly (I have made mistakes)
net.sf.cglib.MethodProxy$Generator
..cannot be read
> The problem is that I've granted with java.security.AllPermission several libraries like
> hibernate, es.bancoval.*, es.bfc.*, org.apache.*, etc... Thus I'd like to know which is the class
> which is not granted...
See above.

Signature
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
EdUarDo - 18 Mar 2004 17:57 GMT
> ..
>
[quoted text clipped - 15 lines]
>
> ..cannot be read
yes, I know read stack traces, but in my policy file I've granted java.security.AllPermission to
any application running in my Tomcat... so why I got this Exception?
EdUarDo - 18 Mar 2004 18:03 GMT
I'm sorry if I'm expressing a bit hard, but I'm not speak english very well...
Andrew Thompson - 18 Mar 2004 19:38 GMT
> I'm sorry if I'm expressing a bit hard, but I'm not speak english very well...
You speak English enough, but you leave
out important details.
No mention at first of policy files.
[ I read your English OK,
I not read your mind! ;-) ]
William Brogden - 18 Mar 2004 23:14 GMT
> > ..
> >
[quoted text clipped - 19 lines]
> yes, I know read stack traces, but in my policy file I've granted java.security.AllPermission to
> any application running in my Tomcat... so why I got this Exception?
I just went through this trying to get a JavaSpaces connection working. It
turned out
that
1. Tomcat 5.0.19 did NOT handle policy correctly when on port 80 even though
it worked with port 8080 !!
2. Reverting back to Tomcat 4.1.30 worked whn my policy file specified the
application path.
grant codeBase "file:${catalina.home}/webapps/javaspace/WEB-INF/classes/-" {
permission java.security.AllPermission;
};
EdUarDo - 22 Mar 2004 11:04 GMT
> I just went through this trying to get a JavaSpaces connection working. It
> turned out
[quoted text clipped - 6 lines]
> permission java.security.AllPermission;
> };
Hi again :), I've managed to get my security working... I've tried the same configuration
on Tomcat 4.1.30 and it works fine!!, moreover it has pointed that there were some security
exceptions that Tomcat 5 don't told me.