Re: Trouble with SecurityManager with Tomcat 5.5

2005-04-19 Thread Josef Vosyka
Not so naive, it was one of my first shots.
Unfortunately, no domain or AD control, no special perms on the file.
It is my process the tomcat runs in and I can open the jar easily...

Rather strange is not it?
--Josef


--- [EMAIL PROTECTED] wrote:
 Maybe I'm too naive here but what are the file permissions and does your 
 windows
 environment have domain or active directory control???
 
 
  -- Original message --
 From: Josef Vosyka [EMAIL PROTECTED]
  Hi,
  
  I've got 3 exceptions, when I run simple webapp under SecurityManager with 
  standard
  policy file and:
  -IntelliJ 4.5
  -JDK 5.0
  -Tomcat 5.5
  
  The exceptions are:
  
  SEVERE: Parse error in default web.xml
  java.security.AccessControlException: access denied 
  (java.lang.RuntimePermission
  accessClassInPackage.org.apache.catalina.core)
  
  SEVERE: Parse error in application web.xml
  java.security.AccessControlException: access denied (java.io.FilePermission
  D:\usr\tomcat-5.5\common\lib\servlet-api.jar read)
  
  SEVERE: Parse error in default web.xml
  java.security.AccessControlException: access denied 
  (java.lang.RuntimePermission
  accessClassInPackage.org.apache.catalina.core)
  
  
  The standard policy file indeed contains the following:
  
  grant codeBase file:${catalina.home}/common/- {
  permission java.security.AllPermission;
  };
  
  The accessClassInPackage problem disappears when I add this:
  
  permission java.lang.RuntimePermission accessClassInPackage.org.apache;
  permission java.lang.RuntimePermission accessClassInPackage.org.apache.*;
  permission java.lang.RuntimePermission 
  accessClassInPackage.org.apache.catalina;
  permission java.lang.RuntimePermission 
  accessClassInPackage.org.apache.catalina.*;
  permission java.lang.RuntimePermission 
  accessClassInPackage.org.apache.catalina.core;
  permission java.lang.RuntimePermission 
  accessClassInPackage.org.apache.catalina.core.*;
  
  
  But the FilePermission remains even after adding the explicit and redundant:
  
  grant codeBase file:${catalina.home}/common/lib/- {
  permission java.security.AllPermission;
  };
  
  or even this:
  
  grant codeBase file:${catalina.home}/common/lib/servlet-api.jar {
  permission java.security.AllPermission;
  };
  
  I'm really hopeless to locate the cause of the problems. Seems like this 
  should 
  work out
  of the box.
  
  Any help is appreciated in advance.
  Thanks!
  --Josef
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Trouble with SecurityManager with Tomcat 5.5

2005-04-18 Thread Josef Vosyka
Hi,

I've got 3 exceptions, when I run simple webapp under SecurityManager with 
standard
policy file and:
-IntelliJ 4.5
-JDK 5.0
-Tomcat 5.5

The exceptions are:

SEVERE: Parse error in default web.xml
java.security.AccessControlException: access denied (java.lang.RuntimePermission
accessClassInPackage.org.apache.catalina.core)

SEVERE: Parse error in application web.xml
java.security.AccessControlException: access denied (java.io.FilePermission
D:\usr\tomcat-5.5\common\lib\servlet-api.jar read)

SEVERE: Parse error in default web.xml
java.security.AccessControlException: access denied (java.lang.RuntimePermission
accessClassInPackage.org.apache.catalina.core)


The standard policy file indeed contains the following:

grant codeBase file:${catalina.home}/common/- {
permission java.security.AllPermission;
};

The accessClassInPackage problem disappears when I add this:

permission java.lang.RuntimePermission accessClassInPackage.org.apache;
permission java.lang.RuntimePermission accessClassInPackage.org.apache.*;
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina;
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.*;
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.core;
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.core.*;


But the FilePermission remains even after adding the explicit and redundant:

grant codeBase file:${catalina.home}/common/lib/- {
permission java.security.AllPermission;
};

or even this:

grant codeBase file:${catalina.home}/common/lib/servlet-api.jar {
permission java.security.AllPermission;
};

I'm really hopeless to locate the cause of the problems. Seems like this should 
work out
of the box.

Any help is appreciated in advance.
Thanks!
--Josef

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Trouble with SecurityManager with Tomcat 5.5

2005-04-18 Thread howarddy3
Maybe I'm too naive here but what are the file permissions and does your 
windows environment have domain or active directory control???


 -- Original message --
From: Josef Vosyka [EMAIL PROTECTED]
 Hi,
 
 I've got 3 exceptions, when I run simple webapp under SecurityManager with 
 standard
 policy file and:
 -IntelliJ 4.5
 -JDK 5.0
 -Tomcat 5.5
 
 The exceptions are:
 
 SEVERE: Parse error in default web.xml
 java.security.AccessControlException: access denied 
 (java.lang.RuntimePermission
 accessClassInPackage.org.apache.catalina.core)
 
 SEVERE: Parse error in application web.xml
 java.security.AccessControlException: access denied (java.io.FilePermission
 D:\usr\tomcat-5.5\common\lib\servlet-api.jar read)
 
 SEVERE: Parse error in default web.xml
 java.security.AccessControlException: access denied 
 (java.lang.RuntimePermission
 accessClassInPackage.org.apache.catalina.core)
 
 
 The standard policy file indeed contains the following:
 
 grant codeBase file:${catalina.home}/common/- {
 permission java.security.AllPermission;
 };
 
 The accessClassInPackage problem disappears when I add this:
 
 permission java.lang.RuntimePermission accessClassInPackage.org.apache;
 permission java.lang.RuntimePermission accessClassInPackage.org.apache.*;
 permission java.lang.RuntimePermission 
 accessClassInPackage.org.apache.catalina;
 permission java.lang.RuntimePermission 
 accessClassInPackage.org.apache.catalina.*;
 permission java.lang.RuntimePermission 
 accessClassInPackage.org.apache.catalina.core;
 permission java.lang.RuntimePermission 
 accessClassInPackage.org.apache.catalina.core.*;
 
 
 But the FilePermission remains even after adding the explicit and redundant:
 
 grant codeBase file:${catalina.home}/common/lib/- {
 permission java.security.AllPermission;
 };
 
 or even this:
 
 grant codeBase file:${catalina.home}/common/lib/servlet-api.jar {
 permission java.security.AllPermission;
 };
 
 I'm really hopeless to locate the cause of the problems. Seems like this 
 should 
 work out
 of the box.
 
 Any help is appreciated in advance.
 Thanks!
 --Josef
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]