1 Reply Latest reply on Oct 15, 2002 6:11 AM by jason

    jaas on jboss2.4.4_tomcat4.0.1

    jason Newbie

      i am newbie to jaas and trying a sample from javaworld (http://www.javaworld.com/javaworld/jw-09-2002/jw-0913-jaas.html).
      but after i deploy those necessary files unto jboss integrated with tomcat, it issues exception "java.lang.SecurityException". then i made several checks on mailing list, it seems that i didn't sepecify parameter such as "-Dsecurity ... "; however, even if parameter has been set (in catalina.sh), it still can't work. is there anyone able to tell me where i did it worng? ( or correct steps)
      env i am using is jboss2.4.4, catalina4.0.1, j2sdk1.4.1, os redhat8.0.
      i appreciate any suggestions
      thank you very much,

        • 1. Re: jaas on jboss2.4.4_tomcat4.0.1
          jason Newbie

          it seems has something worked out after i edited catalina.sh - "-Djava.security.auth.login.config==jaas.config" (jaas.config is the config file); then run in command line to startup catalina4.0.1 standalone as "./catalina.sh run -security".
          however, it issues exception accessControlException as A).
          are there any reasons which may causes such kind of exception?
          i appreciate any suggestions,
          thank you very much,

          ========
          A).
          xception in thread "main" java.security.AccessControlException: access denied (java.util.PropertyPermission catalina.base read)
          at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
          at java.security.AccessController.checkPermission(AccessController.java:401)
          at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
          at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
          at java.lang.System.getProperty(System.java:572)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:120)