users@glassfish.java.net

Re: Custom realm stop working on "glassfish-installer-v2ur1-b09d-linux"

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Feb 2008 04:51:01 PST

> Now, I've decided to install new glassfish version,
> install my realm, and when I am trying to view it in
> my web-based GUI, I can see error in server.log:
>
> -----------------------
> The FileRealm classname,
> "org.companyname.auth.sun.realms.SQLRealm" does not
> extend
> "com.sun.enterprise.security.auth.realm.file.FileRealm
> ".|#]
> -----------------------
>
> Is this a bug? (I've pointed realm class on
> org.companyname.auth.sun.realms.SQLRealm of course.)
>
User Management for Realms is currently restricted to SubClasses of FileRealm and that is the reason you are seeing this issue.


> Next one:
> When I am trying to launch some web-script, which use
> this auth-tion:
>
> -----------------------
> [#|2008-02-25T16:52:01.808+0200|INFO|sun-appserver9.1|
> javax.enterprise.system.core.security|_ThreadID=23;_Th
> readName=httpSSLWorkerThread-8001-0;|SQLLoginModule:
> login succeeded for username|#]
> -----------------------
> but access to resource is denied. In old glassfish
> works fine, as I told before.
>
> more detailed log, realm java sources in attachment.

From the Logs i see the falied Permission Check :
--------------------------
lies;_RequestID=912540c
a-19af-4756-a36e-0e421d9ffecc;|JACC Policy Provider: PolicyWrapper.implies, context (GprsStatWeb/GprsStatWeb)- result was(false) permission ((javax.security.jacc.WebResourcePermission /faces/radiusCheck.jsp GET))|#]

[#|2008-02-26T11:17:05.827+0200|FINE|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=24;_ThreadName=httpSSLW
orkerThread-8001-1;ClassName=com.sun.web.security.WebSecurityManager;MethodName=hasResourcePermission;_RequestID=912540ca-19a
f-4756-a36e-0e421d9ffecc;|[Web-Security] hasResource isGranted: false|#]
----------------------------

I guess your LoginModule and Realm are probably fine because login was successful. Maybe looking at your app descriptors will help me find something.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

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