Can you try running rm -r src/main/webapp/WEB-INF/classes/org/appfuse/model/*.
It's possible you have old classes lying around with the old table names. For debuggging, if you're using an IDE, you should be able to find the sources in your project, set a breakpoint (in something like UserManagerImpl.save) and then configure your IDE for debugging. Here's how to do it in Eclipse: http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse Matt On 4/17/07, nmall <[EMAIL PROTECTED]> wrote:
Actually, even when I enter an entirely new user, it refuses to add it. I have changed the names of the tables app_user and role to sa_account_user and sa_account_role. I have done this in c:\work\testapp\src\main\java\org\appfuse\model\User.java, Role.java as well as in sample_data.xml. When I look for User.class and Role.class I find all of these - which one would it pick up - could this be the problem?? I also did an mvn war:inplace so I have the sources under webapp. I am not sure how to debug this. I really appreciate your help! $ find . -name Role.class ./src/main/webapp/WEB-INF/classes/org/appfuse/model/Role.class ./target/classes/org/appfuse/model/Role.class ./target/testapp-1.0-SNAPSHOT/WEB-INF/classes/org/appfuse/model/Role.class ./target/tomcat5x/container/webapps/testapp-1.0-SNAPSHOT/WEB-INF/classes/org/app fuse/model/Role.class ./target/work/webapp/WEB-INF/classes/org/appfuse/model/Role.class /cygdrive/c/work/testapp $ find . -name User.class ./src/main/webapp/WEB-INF/classes/org/appfuse/model/User.class ./target/classes/org/appfuse/model/User.class ./target/testapp-1.0-SNAPSHOT/WEB-INF/classes/org/appfuse/model/User.class ./target/tomcat5x/container/webapps/testapp-1.0-SNAPSHOT/WEB-INF/classes/org/app fuse/model/User.class ./target/work/webapp/WEB-INF/classes/org/appfuse/model/User.class mraible wrote: > > The user's id is supposed to be null when you signup a new user - it's > assigned after the record is inserted into your database. Looking at > your log (2nd line from the bottom), it looks like the user you're > trying to add already exists. If you run "mvn hibernate:operation" > (or "ant db-load" with 1.x), you should be able to login with the > default users in sample-data.xml. > > Matt > > On 4/17/07, nmall <[EMAIL PROTECTED]> wrote: >> >> 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] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Problem-saving-user-or-logging-in-tf3595740s2369.html#a10047507 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
