users@glassfish.java.net

Re: glassfish 4.0 custom security realm

From: <forums_at_java.net>
Date: Sun, 20 Oct 2013 10:58:56 -0500 (CDT)

Also need help on this I have used
https://blogs.oracle.com/nithya/entry/modularized_osgi_custom_realms_in
https://blogs.oracle.com/nithya/entry/groups_in_custom_realms The Realm seems
to work but at logon i get error below. Seems Realm is not passed because
LoginModule in not used WARNING: WEB9102: Web Login Failed:
com.sun.enterprise.security.auth.login.common.LoginException: Login failed:
Invalid null input: name FINE: Exception
com.sun.enterprise.security.auth.login.common.LoginException: Login failed:
Invalid null input: name at
com.sun.enterprise.security.auth.login.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:395)
at
com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:241)
at
com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:154)
at com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:695) at
com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:636) at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:166)
at
com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1524)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:585)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:702)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at
org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:724) Caused by:
javax.security.auth.login.LoginException: Invalid null input: name at
javax.security.auth.login.LoginContext.init(LoginContext.java:246) at
javax.security.auth.login.LoginContext.(LoginContext.java:382) at
javax.security.auth.login.LoginContext.(LoginContext.java:459) at
com.sun.enterprise.security.auth.login.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:382)
... 31 more

--
[Message sent by forum member 'christBe']
View Post: http://forums.java.net/node/897957