Thanks, the command went thru' but what is the default - I tried tomcat/A male kitty, tomcat/mraible and others that were in sample-data.xml. It didn't work.
mraible wrote: > > Sorry, I meant to type "mvn dbunit:operation". > > Matt > > On 4/17/07, nmall <[EMAIL PROTECTED]> wrote: >> >> mvn hibernate:operation doesn't work for me - here is the error. >> >> + Error stacktraces are turned on. >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'hibernate'. >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] The plugin 'org.apache.maven.plugins:maven-hibernate-plugin' does >> not >> exi >> st or no valid version could be found >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Trace >> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin >> 'org.apache.m >> aven.plugins:maven-hibernate-plugin' does not exist or no valid version >> could be >> found >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa >> ultLifecycleExecutor.java:1286) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor >> (DefaultLifecycleExecutor.java:1522) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy >> AggregationNeeds(DefaultLifecycleExecutor.java:386) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi >> fecycleExecutor.java:138) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >> java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> sorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> at >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> Caused by: >> org.apache.maven.plugin.version.PluginVersionNotFoundException: >> The p >> lugin 'org.apache.maven.plugins:maven-hibernate-plugin' does not exist or >> no >> val >> id version could be found >> at >> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl >> uginVersion(DefaultPluginVersionManager.java:228) >> at >> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl >> uginVersion(DefaultPluginVersionManager.java:90) >> at >> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug >> inManager.java:166) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa >> ultLifecycleExecutor.java:1257) >> ... 14 more >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 1 second >> [INFO] Finished at: Tue Apr 17 16:58:39 EDT 2007 >> [INFO] Final Memory: 6M/12M >> [INFO] >> ------------------------------------------------------------------------ >> >> >> 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#a10047694 >> 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#a10051188 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
