I have been able to setup authentication on a single instance of glassfish works fine I have a sun-application.xml
pplication>
<security-role-mapping>
<role-name>a</role-name>
<group-name>dp</group-name>
</security-role-mapping>
<realm>dee-realm</realm>
</sun-application>
BUt when moving this to a cluster I dont see it working I get teh
com.sun.enterprise.security.auth.realm.BadRealmException: com.sun.enterprise.security.auth.realm.BadRealmException: Incomplete configuration in file realm: login module not specified. at com.sun.enterprise.security.auth.realm.AuthRealmEventListenerImpl.authRealmUpdated(AuthRealmEventListenerImpl.java:106) at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeAuthRealmEventListener(AdminEventMulticaster.java:1339) at com.sun.enterprise.admin.event.AdminEventMulticaster.handleAuthRealmEvent(AdminEventMulticaster.java:1324) at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:482) at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176) at com.sun.enterprise.ee.admin.mbeans.ServerRuntimeMBean.forwardEvent(ServerRuntimeMBean.java:95) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358) at com.sun.enterprise.admin.runtime.BaseRuntimeMBean.invoke(BaseRuntimeMBean.java:462) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90) at $Proxy1.invoke(Unknown Source) at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304) at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1359) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788) at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: com.sun.enterprise.security.auth.realm.BadRealmException: com.sun.enterprise.security.auth.realm.BadRealmException: Incomplete configuration in file realm: login module not specified. at com.sun.enterprise.security.auth.realm.Realm.doInstantiate(Realm.java:239) at com.sun.enterprise.security.auth.realm.Realm.instantiate(Realm.java:165) at com.sun.enterprise.security.auth.realm.AuthRealmEventListenerImpl.createRealm(AuthRealmEventListenerImpl.java:137) at com.sun.enterprise.security.auth.realm.AuthRealmEventListenerImpl.authRealmUpdated(AuthRealmEventListenerImpl.java:104) ... 39 more Caused by: com.sun.enterprise.security.auth.realm.BadRealmException: Incomplete configuration in file realm: login module not specified. at com.sun.enterprise.security.auth.realm.file.FileRealm.init(FileRealm.java:207) at com.sun.enterprise.security.auth.realm.Realm.doInstantiate(Realm.java:233) ... 42 more
[Message sent by forum member 'priyasubu' (priyasubu)]
http://forums.java.net/jive/thread.jspa?messageID=246706