5 Replies Latest reply on Oct 15, 2007 4:26 AM by clause Mbacky

    problem to enter into jbpm-console application

    clause Mbacky Newbie

      i use jbpm-jpdl 3.2.2 with oracle
      when i tried to connect with jbpm-console application, i have this error:

      Login failed. Invalid user name or password.
      


      what that mean ??

        • 1. Re: problem to enter into jbpm-console application
          clause Mbacky Newbie

          error is:

          15:02:32,871 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role f
          iles
          java.io.IOException: No properties file: users.properties or defaults: defaultUs
          ers.properties found
           at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
           at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRole
          sLoginModule.java:186)
           at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRo
          lesLoginModule.java:200)
           at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRol
          esLoginModule.java:127)
           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:597)
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
          86)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
          80)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
           at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecur
          ityManager.java:601)
           at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecur
          ityManager.java:535)
           at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityMa
          nager.java:344)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubjec
          t(BaseConnectionManager2.java:571)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
          onnection(BaseConnectionManager2.java:378)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
          nManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
          erDataSource.java:88)
           at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPasswor
          d(DatabaseServerLoginModule.java:141)
           at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(Usernam
          ePasswordLoginModule.java:206)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          


          • 2. Re: problem to enter into jbpm-console application
            clause Mbacky Newbie

            i have fix the problem, there aren't errors,
            but i can't enter into my application !!!!!!!!
            help, i don't know where is the issue

            • 3. Re: problem to enter into jbpm-console application
              clause Mbacky Newbie

              i don't understand ,
              when i start jboss server, i have no error,
              but i don't connect to jbpm-console.war

              • 4. Re: problem to enter into jbpm-console application
                Ronald van Kuijk Master

                please... how do you expect us to help you if you just say "there are no errors but I can't login" we need lots more info to be able to help you

                • 5. Re: problem to enter into jbpm-console application
                  clause Mbacky Newbie

                  ok, i should give more information, sorry,
                  so i am using :
                  jbpm-jpdl3.2.2
                  oracle9i

                  i configure oracle :

                  i changed : login-config
                  standardjaws

                  in login-config.xml, i added this code :

                  <application-policy name = "OracleDbRealm?">
                   <authentication>
                   <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule?" flag = "required">
                   <module-option name = "principal">user</module-option>
                   <module-option name = "userName">user</module-option>
                   <module-option name ="password">user</module-option>
                   <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
                   </login-module>
                   </authentication>
                  </application-policy>
                  
                  


                  into standardjaws.xml i added
                  <type-mapping>Oracle9i</type-mapping>
                  


                  this is my data source:
                   <local-tx-datasource>
                   <jndi-name>DefaultDS</jndi-name>
                   <connection-url>jdbc:oracle:thin:@myserver:1521:myDBinstance</connection-url>
                   <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                   <user-name>user</user-name>
                   <password>user</password>
                   <min-pool-size>1</min-pool-size>
                   <max-pool-size>5</max-pool-size>
                   <idle-timeout-minutes>0</idle-timeout-minutes>
                   <track-statements/>
                   <!--
                   <security-domain>OracleDbRealm</security-domain>
                   -->
                   <prepared-statement-cache-size>32</prepared-statement-cache-size>
                   <metadata><type-mapping>Oracle9i</type-mapping></metadata>
                   <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
                   </local-tx-datasource>
                  


                  in addition,
                  i changed hibernate-cfg.xml:
                  <!-- JDBC connection properties (begin) -->
                   <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
                   <property name="hibernate.connection.url">jdbc:oracle:thin:@myserver:1521:myDBinstance</property>
                   <property name="hibernate.connection.username">user</property>
                   <property name="hibernate.connection.password">user</property>
                   <!-- JDBC connection properties (end) -->
                  
                   <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
                  
                  


                  and in jbpm-console.war\WEB-INF\classes, i created two file roles.properties and users.properties