Hi, I am having a problem logging in as a user that exists - it gives " invalid user name and password - please try again" error. Now these users/passwords exist in sample-data.xml as well as the database. I set log levels to DEBUG on the appfuse as well as acegisecurity modules. IT looks like the username is anonymous when it tries to authenticate. When I try to sign up a new user, again the the user id passed into saveUser is null. You can see this from the logs. Thanks for any pointers!
Logs for login problem: [testapp] DEBUG [btpool0-6] FilterChainProxy.doFilter(269) | /login.jsp?error=tr ue at position 4 of 7 in additional filter chain; firing Filter: 'org.acegisecur [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-6] FilterChainProxy.doFilter(269) | /login.jsp?error=tr ue at position 5 of 7 in additional filter chain; firing Filter: 'org.acegisecur [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-6] AnonymousProcessingFilter.doFilter(113) | Populated SecurityContextHolder with anonymous token: 'org.acegisecurity.providers.anonymo [EMAIL PROTECTED]: Username: anonymous; Password: [PROTEC TED]; Authenticated: true; Details: org.acegisecurity.ui.WebAuthenticationDetail [EMAIL PROTECTED]: RemoteIpAddress: 127.0.0.1; SessionId: 2i6bi3gpj9u3n; Granted Authoriti es: ROLE_ANONYMOUS' [testapp] DEBUG [btpool0-6] FilterChainProxy.doFilter(269) | /login.jsp?error=tr ue at position 6 of 7 in additional filter chain; firing Filter: 'org.acegisecur [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-6] FilterChainProxy.doFilter(269) | /login.jsp?error=tr ue at position 7 of 7 in additional filter chain; firing Filter: 'org.acegisecur [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-6] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/login.jsp'; pattern is /activeUsers.*; matched=false [testapp] DEBUG [btpool0-6] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/login.jsp'; pattern is /clickstreams.jsp*; matched=fa lse [testapp] DEBUG [btpool0-6] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/login.jsp'; pattern is /flushCache.*; matched=false [testapp] DEBUG [btpool0-6] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/login.jsp'; pattern is /passwordHint.html*; matched=f alse [testapp] DEBUG [btpool0-6] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/login.jsp'; pattern is /reload.*; matched=false [testapp] DEBUG [btpool0-6] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/login.jsp'; pattern is /signup.html*; matched=false [testapp] DEBUG [btpool0-6] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/login.jsp'; pattern is /users.html*; matched=false [testapp] DEBUG [btpool0-6] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/login.jsp'; pattern is /**/*.html*; matched=false [testapp] DEBUG [btpool0-6] AbstractSecurityInterceptor.beforeInvocation(321) | Public object - authentication not attempted [testapp] DEBUG [btpool0-6] FilterChainProxy.doFilter(260) | /login.jsp?error=tr ue reached end of additional filter chain; proceeding with original chain [testapp] DEBUG [btpool0-6] ExceptionTranslationFilter.doFilter(113) | Chain pro cessed normally [testapp] DEBUG [btpool0-6] HttpSessionContextIntegrationFilter.doFilter(291) | SecurityContextHolder set to new context, as request processing completed Login for signup.html/SaveUser: [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /clickstreams.jsp*; matched= false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /flushCache.*; matched=false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /passwordHint.html*; matched =false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /reload.*; matched=false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /signup.html*; matched=true [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(248) | Secure object: FilterInvocation: URL: /signup.html; ConfigAttributes: [ROLE_ANON YMOUS, admin, user] [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(279) | Previously Authenticated: org.acegisecurity.providers.anonymous.AnonymousAuthent [EMAIL PROTECTED]: Username: anonymous; Password: [PROTECTED]; Authenticated : true; Details: [EMAIL PROTECTED]: RemoteIpAd dress: 127.0.0.1; SessionId: 2i6bi3gpj9u3n; Granted Authorities: ROLE_ANONYMOUS [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(295) | Authorization successful [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(306) | RunAsManager did not change Authentication object [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(260) | /signup.html reache d end of additional filter chain; proceeding with original chain [testapp] DEBUG [btpool0-5] UserSecurityAdvice.before(67) | Registering new user 'raji' [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(321) | Public object - authentication not attempted [testapp] DEBUG [btpool0-5] UserDaoHibernate.saveUser(38) | user's id: null [testapp] WARN [btpool0-5] SignupAction.save(79) | User 'raji' already exists! [testapp] DEBUG [btpool0-5] ExceptionTranslationFilter.doFilter(113) | Chain pro cessed normally [testapp] DEBUG [btpool0-5] HttpSessionContextIntegrationFilter.doFilter(291) | SecurityContextHolder set to new context, as request processing completed [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(100) | Converted URL to lowercase, from: '/signup.html'; to: '/signup.html' [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /images/**; matched=false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /scripts/**; matched=false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /styles/**; matched=false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /**; matched=true [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(269) | /signup.html at pos ition 1 of 7 in additional filter chain; firing Filter: 'org.acegisecurity.conte [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-5] HttpSessionContextIntegrationFilter.doFilter(188) | Obtained from ACEGI_SECURITY_CONTEXT a valid SecurityContext and set to Security ContextHolder: '[EMAIL PROTECTED]: Null aut hentication' [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(269) | /signup.html at pos ition 2 of 7 in additional filter chain; firing Filter: 'org.acegisecurity.ui.we [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(269) | /signup.html at pos ition 3 of 7 in additional filter chain; firing Filter: 'org.acegisecurity.wrapp [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-5] SavedRequestAwareWrapper.<init>(107) | Wrapper not r eplaced; SavedRequest was: null [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(269) | /signup.html at pos ition 4 of 7 in additional filter chain; firing Filter: 'org.acegisecurity.ui.re [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(269) | /signup.html at pos ition 5 of 7 in additional filter chain; firing Filter: 'org.acegisecurity.provi [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-5] AnonymousProcessingFilter.doFilter(113) | Populated SecurityContextHolder with anonymous token: 'org.acegisecurity.providers.anonymo [EMAIL PROTECTED]: Username: anonymous; Password: [PROTEC TED]; Authenticated: true; Details: org.acegisecurity.ui.WebAuthenticationDetail [EMAIL PROTECTED]: RemoteIpAddress: 127.0.0.1; SessionId: 2i6bi3gpj9u3n; Granted Authoriti es: ROLE_ANONYMOUS' [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(269) | /signup.html at pos ition 6 of 7 in additional filter chain; firing Filter: 'org.acegisecurity.ui.Ex [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(269) | /signup.html at pos ition 7 of 7 in additional filter chain; firing Filter: 'org.acegisecurity.inter [EMAIL PROTECTED]' [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /activeUsers.*; matched=fals e [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /clickstreams.jsp*; matched= false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /flushCache.*; matched=false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /passwordHint.html*; matched =false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /reload.*; matched=false [testapp] DEBUG [btpool0-5] PathBasedFilterInvocationDefinitionMap.lookupAttribu tes(112) | Candidate is: '/signup.html'; pattern is /signup.html*; matched=true [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(248) | Secure object: FilterInvocation: URL: /signup.html; ConfigAttributes: [ROLE_ANON YMOUS, admin, user] [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(279) | Previously Authenticated: org.acegisecurity.providers.anonymous.AnonymousAuthent [EMAIL PROTECTED]: Username: anonymous; Password: [PROTECTED]; Authenticated : true; Details: [EMAIL PROTECTED]: RemoteIpAd dress: 127.0.0.1; SessionId: 2i6bi3gpj9u3n; Granted Authorities: ROLE_ANONYMOUS [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(295) | Authorization successful [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(306) | RunAsManager did not change Authentication object [testapp] DEBUG [btpool0-5] FilterChainProxy.doFilter(260) | /signup.html reache d end of additional filter chain; proceeding with original chain [testapp] DEBUG [btpool0-5] UserSecurityAdvice.before(67) | Registering new user 'raji' [testapp] DEBUG [btpool0-5] AbstractSecurityInterceptor.beforeInvocation(321) | Public object - authentication not attempted [testapp] DEBUG [btpool0-5] UserDaoHibernate.saveUser(38) | user's id: null[testapp] WARN [btpool0-5] SignupAction.save(79) | User 'raji' already exists! [testapp] DEBUG [btpool0-5] ExceptionTranslationFilter.doFilter(113) | Chain pro cessed normally -- View this message in context: http://www.nabble.com/Problem-saving-user-or-logging-in-tf3595740s2369.html#a10043797 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
