AnsweredAssumed Answered

Username and password does not match.

Question asked by andregs on Dec 6, 2010
Latest reply on Dec 7, 2010 by nils1
Hi,

I did the standard demo.start and I can reach the login page of ActivitiProbe, Explorer and Cycle. However, when I try to login, I get this error message:
06/12/2010 17:53:10 org.activiti.engine.impl.interceptor.LogInterceptor execute
BOM:
06/12/2010 17:53:10 org.activiti.engine.impl.interceptor.LogInterceptor execute
BOM: — starting CheckPassword ——————————————————–
06/12/2010 17:53:10 org.apache.ibatis.logging.slf4j.Slf4jImpl debug
BOM: Checked out connection 16686663 from pool.
06/12/2010 17:53:10 org.apache.ibatis.logging.slf4j.Slf4jImpl debug
BOM: ooo Connection Opened
06/12/2010 17:53:10 org.apache.ibatis.logging.slf4j.Slf4jImpl debug
BOM: ==>  Executing: select * from ACT_ID_USER where ID_ = ?
06/12/2010 17:53:10 org.apache.ibatis.logging.slf4j.Slf4jImpl debug
BOM: ==> Parameters: kermit(String)
06/12/2010 17:53:10 org.activiti.engine.impl.db.DbSqlSession flush
BOM: flush summary:
06/12/2010 17:53:10 org.activiti.engine.impl.db.DbSqlSession flush
BOM: now executing flush…
06/12/2010 17:53:10 org.activiti.engine.impl.cfg.standalone.StandaloneIbatisTransactionContext commit
BOM: firing event committing…
06/12/2010 17:53:10 org.activiti.engine.impl.cfg.standalone.StandaloneIbatisTransactionContext commit
BOM: committing the ibatis sql session…
06/12/2010 17:53:10 org.activiti.engine.impl.cfg.standalone.StandaloneIbatisTransactionContext commit
BOM: firing event committed…
06/12/2010 17:53:10 org.apache.ibatis.logging.slf4j.Slf4jImpl debug
BOM: xxx Connection Closed
06/12/2010 17:53:10 org.apache.ibatis.logging.slf4j.Slf4jImpl debug
BOM: Returned connection 16686663 to pool.
06/12/2010 17:53:10 org.activiti.engine.impl.interceptor.LogInterceptor execute
BOM: — CheckPassword finished ——————————————————–
06/12/2010 17:53:10 org.activiti.engine.impl.interceptor.LogInterceptor execute
BOM:
17:53:10,478  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template err
or: 11060008 Username and password does not match.
org.springframework.extensions.webscripts.WebScriptException: 11060008 Username and password does not match.
        at org.activiti.rest.api.identity.LoginPost.executeWebScript(LoginPost.java:75)
        at org.activiti.rest.util.ActivitiWebScript.executeImpl(ActivitiWebScript.java:76)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
        at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Unknown Source)
06/12/2010 17:53:10 org.springframework.extensions.webscripts.connector.AuthenticatingConnector handshake
GRAVE: An exception occurred while attempting authentication handshake for endpoint: http://localhost:8080/activiti-rest/serv
ice
org.springframework.extensions.surf.exception.AuthenticationException: 11060008 Username and password does not match.
        at org.activiti.surf.ActivitiRESTAuthenticator.authenticate(ActivitiRESTAuthenticator.java:97)
        at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.handshake(AuthenticatingConnector.java
:403)
        at org.activiti.surf.ActivitiUserFactory.authenticate(ActivitiUserFactory.java:137)
        at org.springframework.extensions.surf.mvc.LoginController.handleRequestInternal(LoginController.java:67)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
        at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
        at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
        at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
        at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Unknown Source)
06/12/2010 17:53:27 org.apache.catalina.session.ManagerBase processExpires
BOM: Start expire sessions StandardManager at 1291665207181 sessioncount 0
06/12/2010 17:53:27 org.apache.catalina.session.ManagerBase processExpires
BOM: End expire sessions StandardManager processingTime 7 expired sessions: 0

The H2 DB is running and I can see kermit, gonzo and fozzie in the ACT_ID_USER table and also inside tomcat_users.xml.

I am using Activiti 5.0 in a win7 machine.

Please, have you guys any idea what I am doing wrong here?

Thanks.

Outcomes