3 Replies Latest reply on Aug 19, 2012 1:42 PM by damaru

    New jBPM and jboss installation: can't log in

    damaru

      Hi,

       

      I've got a fresh jboss 7.1.1 installation, I deployed one app I wrote to it a couple of weeks ago, and it's running fine.

       

      Last night I installed jBPM 5.3.0. Because I already have jboss and eclipse installed, I just executed the ant tasks to install the war files:

       

      ant install.guvnor.into.jboss

      ant install.designer.into.jboss

      ant install.jBPM-gwt-console.into.jboss

       

      and after a couple of restarts the wars got deployed. I didn't change datasources or anything.

       

      So when I go to http://localhost:8080/jbpm-console I get a login prompt. According to the documentation that comes with the jbpm installer, there is supposed to be a user set up: krisv/krisv. That didn't work. I tried to set up a user using the jboss add-user script, guessing that the role is probably jbpm-console. That didn't work either.

       

      I had a look at the jboss-web.xml file in the jboss-console war file, and the security section is commented out:

       

      <jboss-web>

       

       

         <!--security-domain>java:/jaas/jbpm-console</security-domain-->

       

       

         <context-root>jbpm-console</context-root>

       

       

         <!--resource-ref>

           <res-ref-name>jdbc/JbpmDataSource</res-ref-name>

           <jndi-name>java:/JbpmDS</jndi-name>

         </resource-ref>

         -->

       

       

      </jboss-web>

       

      my standalone.xml file contains this:

                     <security-domain name="jbpm-console" cache-type="default">

                          <authentication>

                              <login-module code="UsersRoles" flag="required">

                                  <module-option name="usersProperties" value="${jboss.server.config.dir}/users.properties"/>

                                  <module-option name="rolesProperties" value="${jboss.server.config.dir}/roles.properties"/>

                              </login-module>

                          </authentication>

                      </security-domain>

       

      Now, my config dir contains the files

      application-roles.properties

      and

      application-users.properties

       

      so I created symbolic links to them named roles.properties and users.properties.

       

      But I still can't log in - I get this error:

      15:01:36,495 ERROR [org.jboss.security.authentication.JBossCachedAuthenticationManager] (http--127.0.0.1-8080-1) Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required

                at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:270) [picketbox-4.0.7.Final.jar:4.0.7.Final]

                at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:155) [picketbox-4.0.7.Final.jar:4.0.7.Final]

       

      So how can I set up a user to use with jBPM?

       

      thanks

      Michael Davis

      Ottawa