users@glassfish.java.net

asadmin create-auth-realm fails with custom JACC provider

From: <glassfish_at_javadesktop.org>
Date: Wed, 21 May 2008 11:31:46 PDT

After switching over to use my custom JACC provider, create-auth-realm fails in asadmin"

% asadmin create-auth-realm --classname package.MyRealm --property jaas-context=myRealm myRealm
Server returned HTTP response code: 403 for URL: http://localhost:4848/web1/remotejmx
CLI137 Command create-auth-realm failed.

The Policy implementation implies method rejects:

    permission.class = javax.security.jacc.WebResourcePermission
    permission.name = /remotejmx
    permission.action = POST
    protectionDomain.codeSource.location = file:/adminapp/adminapp
    PolicyContext.contextId = adminapp/adminapp

Weird, huh?

It's like it's missing a grant or something...
[Message sent by forum member 'brian_of_fortent' (brian_of_fortent)]

http://forums.java.net/jive/thread.jspa?messageID=275783