geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: PetStore security realm configuration
Date Sun, 06 Nov 2005 23:38:05 GMT
I think you need to include this:
         <reference  
name="LoginService"><name>JaasLoginService</name></reference>

in your generic security realm gbean.


david jencks

On Nov 6, 2005, at 3:17 PM, Jacek Laskowski wrote:

> Hi,
>
> Does anyone know what/where I should take a look at to sort it out:
>
> 15:43:44,821 INFO  [JAASJettyRealm] problem
> javax.security.auth.login.LoginException: java.lang.AssertionError:  
> target is null
>         at  
> org.apache.geronimo.kernel.basic.BasicProxyManager.createProxy(BasicPro 
> xyManager.java:97)
>         at  
> org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.connect(J 
> aasLoginCoordinator.java:173)
>         at  
> org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.initializ 
> e(JaasLoginCoordinator.java:85)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at  
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
>         at  
> javax.security.auth.login.LoginContext.access$000(LoginContext.java: 
> 186)
>         at  
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at  
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java: 
> 680)
>         at  
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
>         at  
> org.apache.geronimo.jetty.JAASJettyRealm.authenticate(JAASJettyRealm.ja 
> va:92)
>         at  
> org.mortbay.jetty.servlet.FormAuthenticator$FormCredential.authenticate 
> (FormAuthenticator.java:305)
>         at  
> org.mortbay.jetty.servlet.FormAuthenticator.authenticate(FormAuthentica 
> tor.java:148)
>         at  
> org.apache.geronimo.jetty.interceptor.SecurityContextBeforeAfter.obtain 
> User(SecurityContextBeforeAfter.java:282)
>         at  
> org.apache.geronimo.jetty.interceptor.SecurityContextBeforeAfter.checkS 
> ecurityConstraints(SecurityContextBeforeAfter.java:191)
>         at  
> org.apache.geronimo.jetty.JettyWebAppContext.checkSecurityConstraints(J 
> ettyWebAppContext.java:516)
>         at  
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplication 
> Handler.java:432)
>         at  
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 
> 568)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
>         at  
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCo 
> ntext.java:635)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
>         at org.mortbay.http.HttpServer.service(HttpServer.java:954)
>         at  
> org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>         at  
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
>         at  
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
>         at  
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 
> 244)
>         at  
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>         at  
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
>
>         at  
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
>         at  
> javax.security.auth.login.LoginContext.access$000(LoginContext.java: 
> 186)
>         at  
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at  
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java: 
> 680)
>         at  
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
>         at  
> org.apache.geronimo.jetty.JAASJettyRealm.authenticate(JAASJettyRealm.ja 
> va:92)
>         at  
> org.mortbay.jetty.servlet.FormAuthenticator$FormCredential.authenticate 
> (FormAuthenticator.java:305)
>         at  
> org.mortbay.jetty.servlet.FormAuthenticator.authenticate(FormAuthentica 
> tor.java:148)
>         at  
> org.apache.geronimo.jetty.interceptor.SecurityContextBeforeAfter.obtain 
> User(SecurityContextBeforeAfter.java:282)
>         at  
> org.apache.geronimo.jetty.interceptor.SecurityContextBeforeAfter.checkS 
> ecurityConstraints(SecurityContextBeforeAfter.java:191)
>         at  
> org.apache.geronimo.jetty.JettyWebAppContext.checkSecurityConstraints(J 
> ettyWebAppContext.java:516)
>         at  
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplication 
> Handler.java:432)
>         at  
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 
> 568)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
>         at  
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCo 
> ntext.java:635)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
>         at org.mortbay.http.HttpServer.service(HttpServer.java:954)
>         at  
> org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>         at  
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
>         at  
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
>         at  
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 
> 244)
>         at  
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>         at  
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> 15:43:44,821 DEBUG [FormAuthenticator] Form authentication FAILED for  
> jps_admin
>
> Jacek
>


Mime
View raw message