1 Reply Latest reply on Oct 6, 2002 5:23 PM by Mirza Mohsin Beg

    Help!! Custom SecurityProxyFactoryClassName

    Mirza Mohsin Beg Newbie

      Hi,

      I have custom security interceptors that used to work on jboss2.4 and now on jboss3.0.2 I am getting a headache. My MBean is as follows



      org.jboss.security.plugins.JaasSecurityManager


      com.security.CustomSecurityProxyFactory



      1) If put my jar and my service file as follows:-
      $JBOSS_HOME/server/default/mydir/security.jar
      $JBOSS_HOME/server/deploy/security-service.xml
      [ I add the following also to the file ]
      I get ????
      12:58:24,578 INFO [JMSContainerInvoker] Destroyed
      12:58:24,580 INFO [DLQHandler] Creating
      12:58:24,581 ERROR [DLQHandler] Initialization failed
      javax.jms.IllegalStateException: SecurityManager only works with a SubjectSecurityManager
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:185)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:40)

      2) If I put my jar in lib and my MBean in the jboss-serivce.xml in the following dirs
      $JBOSS_HOME/server/default/lib/security.jar
      $JBOSS_HOME/server/conf/jboss-service.xml
      I get ???
      16:32:37,838 ERROR [STDERR] subjectSecurityManager = org.jboss.security.plugins.JaasSecurityManager@71cbf6
      16:32:37,922 ERROR [SecurityProxyInterceptor] SecurityProxy.invokeHome exception, principal=vinay
      java.lang.SecurityException: unable to instantiate Subject-based policy
      at javax.security.auth.Policy.getPolicyNoCheck(Policy.java:241)
      at javax.security.auth.Policy.getPolicy(Policy.java:198)
      at javax.security.auth.SubjectDomainCombiner.(SubjectDomainCombiner.java:72)
      at javax.security.auth.Subject$2.run(Subject.java:515)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.createContext(Subject.java:508)
      at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
      at com.security.MySecurityProxy.invokeHomeOnDelegate(MySecurityProxy.java:72)

      Any help would be really, really appreciated!