This content has been marked as final.
Show 2 replies
-
1. Re: JAAS Web Security Problem
mauli.maulwurf Apr 28, 2005 10:41 AM (in response to mhald)Hi,
I think I have the same problem.
When I try to create an EJB by a client application, everthing works fine.
As soon as use an access from servlet I get this stacktrace.16:21:28,236 INFO [STDOUT] java.rmi.AccessException: SecurityException; nested exception is: javax.security.auth.login.FailedLoginException: No matching username found in Principals 16:21:28,236 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:370) 16:21:28,236 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:125) ... 16:21:28,276 INFO [STDOUT] Caused by: javax.security.auth.login.FailedLoginException: No matching username found in Principals 16:21:28,276 INFO [STDOUT] at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:103) 16:21:28,276 INFO [STDOUT] at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:156) 16:21:28,276 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:21:28,276 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 16:21:28,276 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
thanks a lot
/Stephan -
2. Re: JAAS Web Security Problem
starksm64 Apr 30, 2005 1:40 PM (in response to mhald)Read the JAAS Howto and how the ClientLoginModule propagates the security context.