IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Wildfly/JBoss Java Discussion :

jbmp-console, authentification jboss


Sujet :

Wildfly/JBoss Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Étudiant
    Inscrit en
    Juin 2004
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2004
    Messages : 72
    Par défaut jbmp-console, authentification jboss
    Bonour,

    j'ai un problème avec le war jbmp-console du package jbpm-jpdl-3.2.GA.

    Je n'arrive pas à trouver un howto pour configurer jboss et l'appli.

    En fait j'arrive a déployer le war sans erreur, cependant le blockage se situe lors de l'authentification sur la page d'acceuil.

    Log :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    16:50:28,614 ERROR [STDERR] Failed to load preferences.  Proceeding with defaults:
    16:50:50,678 WARN  [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
    org.jboss.resource.JBossResourceException: No matching credentials in Subject!
    Le fichier jbmp-console/WebContent/WEB-INF/jboss.xml:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <jboss-web>
      <security-domain>java:/jaas/userAuth</security-domain>
    </jboss-web>
    Le fichier jbmp-console/class/hibernate.cfg.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    <session-factory>
        <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
        <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
        <property name="hibernate.connection.url">jdbc:hsqldb:${jboss.server.data.dir}\hypersonic\jbpm</property>
        <property name="hibernate.connection.username">sa</property>
        <property name="hibernate.connection.password"></property>
        <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
        <property name="hibernate.hbm2ddl.auto">update</property>
        <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
        <mapping resource="org/jbpm/identity/User.hbm.xml"/>
        <mapping resource="org/jbpm/identity/Group.hbm.xml"/>
        <mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
        <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
        <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
        <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
        <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
        <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
        <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
        <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
        <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
        <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
        <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
        <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
        <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
        <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
        <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
        <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
        <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
        <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
        <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
        <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
        <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
        <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
        <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
        <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
        <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
        <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
        <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
        <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
        <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
        <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
        <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
        <mapping resource="org/jbpm/job/Job.hbm.xml"/>
        <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
        <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
        <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
        <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
        <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
        <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
        <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
        <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
        <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
      </session-factory>
    Le fichier server/default/conf/login-config.xml:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    ...
    <application-policy name="userAuth">
        	<authentication>
                <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
                    <module-option name="dsJndiName">java:/JbpmDS</module-option>
                    <module-option name="principalsQuery">select password_ from jbpm_id_user where name_=?</module-option>
                </login-module>
            </authentication>
        </application-policy>
    ...
    Le fichier server/default/deploy/jbpm-ds.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    <datasources>
       <local-tx-datasource>
     
          <jndi-name>JbpmDS</jndi-name>
     
          <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbpm</connection-url>
     
          <driver-class>org.hsqldb.jdbcDriver</driver-class>
     
          <user-name>sa</user-name>
          <password></password>
     
          <min-pool-size>5</min-pool-size>
     
          <max-pool-size>20</max-pool-size>
     
          <idle-timeout-minutes>0</idle-timeout-minutes>
     
          <track-statements/>
     
          <security-domain>HsqlDbRealm</security-domain>
     
          <prepared-statement-cache-size>32</prepared-statement-cache-size>
     
          <metadata>
             <type-mapping>Hypersonic SQL</type-mapping>
          </metadata>
     
          <depends>jboss:service=Hypersonic,database=jbpm</depends>
       </local-tx-datasource>
     
       <mbean code="org.jboss.jdbc.HypersonicDatabase" 
         name="jboss:service=Hypersonic,database=jbpm">
         <attribute name="Database">jbpm</attribute>
         <attribute name="InProcessMode">true</attribute>
       </mbean>
     
    </datasources>
    Autre petit point, si dans le fichier Le fichier jbmp-console/class/hibernate.cfg.xml je fais référence au jndi java:/JbpmDS en ayant prit soir de mettre en commentaire la déclaration manuel,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
        <property name="hibernate.connection.url">jdbc:hsqldb:${jboss.server.data.dir}\hypersonic\jbpm</property>
        <property name="hibernate.connection.username">sa</property>
        <property name="hibernate.connection.password"></property>
    ,
    Une erreur survient du type je ne trouve pas la référence jndi java:/JbpmDS.

    Est-ce que le mode l'authentification est la bonne ?

    Merci d'avance,

    PS : je ne sais pas trop de quel élément vous avez besoins, alors n'hésité pas.

  2. #2
    Membre éprouvé
    Inscrit en
    Mars 2007
    Messages
    83
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 83
    Par défaut
    Cree un fichier jbpm-ds.xml dans le repertoire deploy de JBoss et mets-y:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
     
    <datasources>
    	<local-tx-datasource>
    	<jndi-name>JbpmDS</jndi-name>
    	<connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbpmDB</connection-url>
    	<driver-class>org.hsqldb.jdbcDriver</driver-class>
    	<user-name>sa</user-name>
    	<password/>
    	<min-pool-size>1</min-pool-size>
    	<max-pool-size>5</max-pool-size>
    	<idle-timeout-minutes>0</idle-timeout-minutes>
    	<track-statements/>
    	<prepared-statement-cache-size>32</prepared-statement-cache-size>
    	<metadata>
    		<type-mapping>Hypersonic SQL</type-mapping>
    	</metadata>
    	<depends>jboss:service=Hypersonic,database=jbpmDB</depends>
    	</local-tx-datasource>
    	<mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic,database=jbpmDB">
    		<attribute name="Database">jbpmDB</attribute>
    		<attribute name="InProcessMode">true</attribute>
    	</mbean>
    </datasources>

  3. #3
    Membre confirmé
    Étudiant
    Inscrit en
    Juin 2004
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2004
    Messages : 72
    Par défaut
    Citation Envoyé par theute
    Cree un fichier jbpm-ds.xml dans le repertoire deploy de JBoss et mets-y:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
     
    <datasources>
    	<local-tx-datasource>
    	<jndi-name>JbpmDS</jndi-name>
    	<connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbpmDB</connection-url>
    	<driver-class>org.hsqldb.jdbcDriver</driver-class>
    	<user-name>sa</user-name>
    	<password/>
    	<min-pool-size>1</min-pool-size>
    	<max-pool-size>5</max-pool-size>
    	<idle-timeout-minutes>0</idle-timeout-minutes>
    	<track-statements/>
    	<prepared-statement-cache-size>32</prepared-statement-cache-size>
    	<metadata>
    		<type-mapping>Hypersonic SQL</type-mapping>
    	</metadata>
    	<depends>jboss:service=Hypersonic,database=jbpmDB</depends>
    	</local-tx-datasource>
    	<mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic,database=jbpmDB">
    		<attribute name="Database">jbpmDB</attribute>
    		<attribute name="InProcessMode">true</attribute>
    	</mbean>
    </datasources>
    Je ne vois pas trops la différence avec le mien (sauf la suppression de <security-domain-and-application>HsqlDbRealm</security-domain-and-application> )

  4. #4
    Membre confirmé
    Étudiant
    Inscrit en
    Juin 2004
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2004
    Messages : 72
    Par défaut
    j'ai trouvé,

    créer un fichier users.properties et un autre roles.properties dans le répertoire de conf de jboss (/server/default/conf/, ou autre).

    Pour users.properties
    ernie=ernie

    Pour roles.properties
    ernie=participant, manager, administrator

    voili voilou

  5. #5
    Membre éprouvé
    Inscrit en
    Mars 2007
    Messages
    83
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 83
    Par défaut
    Autrement dit ca n'avait rien a voir avec ce que tu nous as dit...
    Une erreur survient du type je ne trouve pas la référence jndi java:/JbpmDS.
    et

    D'apres les fichiers que tu nous as mis tu utilisais le login Module avec stockages des identites en base de donnees (pas dans les fichiers properties)
    login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"

    La prochaine fois, met l'erreur dans ta question, on gagnera tous de temps

  6. #6
    Membre confirmé
    Étudiant
    Inscrit en
    Juin 2004
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2004
    Messages : 72
    Par défaut
    Désolé, je pensais être claire,

    authentification jboss
    Est-ce que le mode l'authentification est la bonne ?

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Authentification JBoss avec Active Directory 2008 R2
    Par Synchrowize dans le forum Wildfly/JBoss
    Réponses: 0
    Dernier message: 20/07/2012, 13h38
  2. [JBoss Portal] Authentification JBoss Portal
    Par capic dans le forum Portails
    Réponses: 1
    Dernier message: 21/01/2009, 19h19
  3. Réponses: 1
    Dernier message: 22/05/2008, 11h27
  4. Impossible d'accéder à la console Web Jboss
    Par psedo dans le forum Wildfly/JBoss
    Réponses: 2
    Dernier message: 26/05/2007, 23h33
  5. [JBoss][Jaas] Authentification client standalone
    Par mauvais_karma dans le forum Wildfly/JBoss
    Réponses: 5
    Dernier message: 18/05/2005, 11h42

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo