users@glassfish.java.net

Re: GlassFish non-default jdbcRealm not working

From: <glassfish_at_javadesktop.org>
Date: Thu, 05 Mar 2009 05:08:15 PST

Sorry, theres lots here and thanks for all the advise so far.

I have setup my app to use xyz, this is the only place in the log where xyz is mentioned.

#|2009-03-05T14:45:59.711+0200|FINE|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;ClassName=com.sun.enterprise.security.RealmConfig;MethodName=crea
teRealms;_RequestID=83fb0409-5c74-4e7c-a2db-c968109c6d7b;|Configured realm: file|#]

[#|2009-03-05T14:45:59.713+0200|FINE|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;ClassName=com.sun.enterprise.security.RealmConfig;MethodName=crea
teRealms;_RequestID=83fb0409-5c74-4e7c-a2db-c968109c6d7b;|Configured realm: certificate|#]

[#|2009-03-05T14:45:59.718+0200|FINE|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;ClassName=com.sun.enterprise.security.RealmConfig;MethodName=crea
teRealms;_RequestID=83fb0409-5c74-4e7c-a2db-c968109c6d7b;|Configured realm: testjdbcrealm|#]

[#|2009-03-05T14:45:59.720+0200|FINE|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;ClassName=com.sun.enterprise.security.RealmConfig;MethodName=crea
teRealms;_RequestID=83fb0409-5c74-4e7c-a2db-c968109c6d7b;|Configured realm: xyz|#]

[#|2009-03-05T14:45:59.720+0200|FINE|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;ClassName=com.sun.enterprise.security.RealmConfig;MethodName=crea
teRealms;_RequestID=83fb0409-5c74-4e7c-a2db-c968109c6d7b;|Default realm is set to: file|#]


This is the login when I attempt to access the web service.

[Web-Security] Checking Web Permission with Principals : null
[Web-Security] Web Permission = (javax.security.jacc.WebResourcePermission /remotejmx POST)
[Web-Security] hasResource isGranted: false
[Web-Security] hasResource perm: (javax.security.jacc.WebResourcePermission /remotejmx POST)
Logging in user [admin] into realm: admin-realm using JAAS module: fileRealm
Login module initialized: class com.sun.enterprise.security.auth.login.FileLoginModule
File login succeeded for: admin
JAAS login complete.
JAAS authentication committed.
Password login succeeded for : admin
Set security context as user: admin

I can't believe how much loging there is...
[Message sent by forum member 'waynetg' (waynetg)]

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