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 :

Lancer application jBPM


Sujet :

Wildfly/JBoss Java

  1. #21
    Membre régulier Avatar de Thewil
    Homme Profil pro
    Inscrit en
    Juillet 2006
    Messages
    223
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2006
    Messages : 223
    Points : 86
    Points
    86
    Par défaut
    Bon et bien effectivement ca n'a rien changer en tentant avec cette commande :

    java -classpath "C:\Documents and Settings\Administrator\My

    Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess;C:\Documents and Settings\Administrator\My
    Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess\jbpm.jar;C:\Documents and Settings\Administrator\My
    Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\graph;C:\Documents and Settings\Administrator\My
    Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\graph;C:\Documents and Settings\Administrator\My
    Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess\junit.jar;." org.jbpm.examples.doorprocess.DoorProcessTest
    J'ai toujours une erreur. Ralala c'est pas gagné le jBPM

    16 mai 2007 12:46:32 org.jbpm.JbpmConfiguration getInstance
    INFO: using jbpm configuration resource 'jbpm.cfg.xml'
    16 mai 2007 12:46:32 org.jbpm.jpdl.xml.JpdlXmlReader readProcessDefinition
    GRAVE: couldn't parse process definition
    org.dom4j.DocumentException: null Nested exception: null
    at org.dom4j.io.SAXReader.read(SAXReader.java:484)
    at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
    at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:142)
    at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
    at org.jbpm.examples.doorprocess.DoorProcessTest.<clinit>(DoorProcessTest.java:22)
    Nested exception:
    java.net.MalformedURLException
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.dom4j.io.SAXReader.read(SAXReader.java:465)
    at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
    at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:142)
    at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
    at org.jbpm.examples.doorprocess.DoorProcessTest.<clinit>(DoorProcessTest.java:22)
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: org.jbpm.jpdl.JpdlException: [[ERROR] couldn't parse process definition]
    at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:173)
    at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
    at org.jbpm.examples.doorprocess.DoorProcessTest.<clinit>(DoorProcessTest.java:22)

  2. #22
    Membre chevronné
    Homme Profil pro
    Directeur technique
    Inscrit en
    Janvier 2007
    Messages
    1 348
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 348
    Points : 1 787
    Points
    1 787
    Par défaut
    Bon reprenons au début alors ...
    C'est quoi
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    at org.jbpm.examples.doorprocess.DoorProcessTest.<clinit>(DoorProcessTest.java:22)
    comme ligne de code ?

    Et si tu peux mettre ton fichier jbpm.cfg.xml

  3. #23
    Membre régulier Avatar de Thewil
    Homme Profil pro
    Inscrit en
    Juillet 2006
    Messages
    223
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2006
    Messages : 223
    Points : 86
    Points
    86
    Par défaut
    Alors cette ligne 22 c'est
    static ProcessDefinition doorProcess = ProcessDefinition.parseXmlInputStream(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"));
    Le fichier jbpm.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
    <jbpm-configuration>
     
      <!-- 
        This configuration is used when there is no jbpm.cfg.xml file found in the 
        root of the classpath.  It is a very basic configuration without persistence
        and message services.  Only the authorization service installed.
        You can parse and create processes, but when you try to use one of the 
        unavailable services, you'll get an exception.
      -->
     
      <jbpm-context>
        <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
        <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
        <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
        <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
        <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
        <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
      </jbpm-context>
     
      <!-- configuration property used by persistence service impl org.jbpm.persistence.db.DbPersistenceServiceFactory -->
      <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" />
     
      <!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
      <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
      <string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" />
      <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
      <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
      <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
      <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
      <string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" />
      <string name="resource.mail.templates" value="jbpm.mail.templates.xml" />
     
      <int    name="jbpm.byte.block.size" value="1024" singleton="true" />
      <string name="jbpm.mail.smtp.host" value="localhost" />
      <bean   name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />
      <bean   name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
      <bean   name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true" />
     
      <bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor">
        <field name="jbpmConfiguration"><ref bean="jbpmConfiguration" /></field>
        <field name="name"><string value="JbpmJobExector" /></field>
        <field name="nbrOfThreads"><int value="1" /></field>
        <field name="idleInterval"><int value="5000" /></field>
        <field name="maxIdleInterval"><int value="3600000" /></field> <!-- 1 hour -->
        <field name="historyMaxSize"><int value="20" /></field>
        <field name="maxLockTime"><int value="600000" /></field> <!-- 10 minutes -->
        <field name="lockMonitorInterval"><int value="60000" /></field> <!-- 1 minute -->
        <field name="lockBufferTime"><int value="5000" /></field> <!-- 5 seconds -->
      </bean>
     
    </jbpm-configuration>
    J'ai rien touché du tout la dedans car j'y comprend pas grand chose lol.

    Ce fichier se trouve ici : C:\Documents and Settings\Administrator\My Documents\Projet\eclipse\Door\test\java

    Merci

  4. #24
    Membre chevronné
    Homme Profil pro
    Directeur technique
    Inscrit en
    Janvier 2007
    Messages
    1 348
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 348
    Points : 1 787
    Points
    1 787
    Par défaut
    Tu peux faire un
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    System.out.println(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"))
    juste avant et voir si c'est null ?
    Et sinon tu peux poster ton fichier processdefinition.xml ?

  5. #25
    Membre régulier Avatar de Thewil
    Homme Profil pro
    Inscrit en
    Juillet 2006
    Messages
    223
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2006
    Messages : 223
    Points : 86
    Points
    86
    Par défaut
    Voila le processdefinition.xml

    <?xml version="1.0" encoding="UTF-8"?>

    <process-definition name="door" initial="Closed">

    <state name="Locked">
    <transition name="unlock" to="Closed" />
    </state>
    <state name="Closed">
    <transition name="lock" to="Locked" />
    <transition name="open" to="Open" />
    </state>
    <state name="Open">
    <transition name="close" to="Closed" />
    <transition name="lock" to="Open Locked" />
    </state>
    <state name="Open Locked">
    <transition name="unlock" to="Open" />
    </state>

    </process-definition>
    et lorsque je veux compiler le changement j'ai l'erreur suivante :s

    javac DoorProcessTest.java
    DoorProcessTest.java:28: <identifier> expected
    System.out.println(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"));
    ^
    DoorProcessTest.java:28: ';' expected
    System.out.println(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"));
    ^
    DoorProcessTest.java:28: <identifier> expected
    System.out.println(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"));
    ^
    DoorProcessTest.java:28: '{' expected
    System.out.println(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"));
    ^
    DoorProcessTest.java:220: '}' expected
    ^
    5 errors
    Et voila ce que j'ai rajouté
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
      System.out.println(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"));
    static ProcessDefinition doorProcess = ProcessDefinition.parseXmlInputStream(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"));

  6. #26
    Membre chevronné
    Homme Profil pro
    Directeur technique
    Inscrit en
    Janvier 2007
    Messages
    1 348
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 348
    Points : 1 787
    Points
    1 787
    Par défaut
    Ah oui suis-je bête tu es dans un attribut statique

    Essaye ça à la place du tout
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    static {
    System.out.println(DoorProcessTest.class.getResourceAsStream("processdefinition.xml"));
    }
    static ProcessDefinition doorProcess = null;
    (j'ai mis null pour ne pas poser de pb)

  7. #27
    Membre régulier Avatar de Thewil
    Homme Profil pro
    Inscrit en
    Juillet 2006
    Messages
    223
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2006
    Messages : 223
    Points : 86
    Points
    86
    Par défaut
    Bon alors j'ai mis ce que tu m'avais dis. Effectivement ca compile mais que je lance ben j'ai cette erreur

    Compil.bat
    null
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.NullPointerException
    at org.jbpm.examples.doorprocess.DoorProcessTest.<clinit>(DoorProcessTest.java:34)
    Mais bon c'est un peu normal car à la ligne 34 j'ai
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    static Node locked = doorProcess.getNode("Locked");
    Mais oui apparement ce que j'écris est null donc c'est pas trés bien lol

  8. #28
    Membre chevronné
    Homme Profil pro
    Directeur technique
    Inscrit en
    Janvier 2007
    Messages
    1 348
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 348
    Points : 1 787
    Points
    1 787
    Par défaut
    C'est vraiment pas normal ...
    Tu es sûr que le fichier processdefinition.xml est dans un répertoire qui est dans le classpath ??
    Essaye ça sinon pour vérifier le classpath à l'exécution (dans le bloc static)
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    System.out.println(System.getProperty("java.library.path"));

  9. #29
    Membre régulier Avatar de Thewil
    Homme Profil pro
    Inscrit en
    Juillet 2006
    Messages
    223
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2006
    Messages : 223
    Points : 86
    Points
    86
    Par défaut
    Bon effectivement mon classpath a l'air bizarre :s

    Compil.bat
    C:\WINDOWS\system32;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syste
    m32\Wbem;C:\Program Files\IBM\Infoprint Select;C:\Notes;C:\Program Files\XLView;C:\lotus\compnent;C:\Utilities;C:\Program Files\IBM\Personal Communications\;C:\
    Program Files\IBM\Trace Facility\;C:\Program Files\ThinkPad\ConnectUtilities;C:\WINDOWS\Downloaded Program Files;C:\Program Files\Java\jdk1.5.0_11\bin;
    null
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.NullPointerException
    at org.jbpm.examples.doorprocess.DoorProcessTest.<clinit>(DoorProcessTest.java:35)
    Pourtant je lance mon appli avec
    java -classpath "C:\Documents and Settings\Administrator\My Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess;C:\Documents and Settings\Administrator\My Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess\jbpm.jar;C:\Documents and Settings\Administrator\My Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\graph;C:\Documents and Settings\Administrator\My Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess\junit.jar;." org.jbpm.examples.doorprocess.DoorProcessTest

  10. #30
    Membre chevronné
    Homme Profil pro
    Directeur technique
    Inscrit en
    Janvier 2007
    Messages
    1 348
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 348
    Points : 1 787
    Points
    1 787
    Par défaut
    Oups java.library.path c'est le PATH... le classpath c'est java.class.path (désolé je me plante tout le temps)

  11. #31
    Membre régulier Avatar de Thewil
    Homme Profil pro
    Inscrit en
    Juillet 2006
    Messages
    223
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2006
    Messages : 223
    Points : 86
    Points
    86
    Par défaut
    Oué voila ca me plais un peu mieux le résultat au niveau du classpath

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    Compil.bat
    C:\Documents and Settings\Administrator\My Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess;C:\Documents and Settings\Administrator\My Docu
    ments\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess\jbpm.jar;C:\Documents and Settings\Administrator\My Documents\Projet\eclipse\Door\test\java\or
    g\jbpm\examples\graph;C:\Documents and Settings\Administrator\My Documents\Projet\eclipse\Door\test\java\org\jbpm\examples\doorprocess\junit.jar;.
    null
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.NullPointerException
            at org.jbpm.examples.doorprocess.DoorProcessTest.<clinit>(DoorProcessTest.java:35)

  12. #32
    Membre régulier Avatar de Thewil
    Homme Profil pro
    Inscrit en
    Juillet 2006
    Messages
    223
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2006
    Messages : 223
    Points : 86
    Points
    86
    Par défaut
    Mais bon meme si c'est le classpath a l'air correct ca ne marche toujours pas lol

    Marci

  13. #33
    Nouveau membre du Club
    Inscrit en
    Février 2004
    Messages
    27
    Détails du profil
    Informations forums :
    Inscription : Février 2004
    Messages : 27
    Points : 30
    Points
    30
    Par défaut
    juste une remarque au passage

    si on essaie de deployer un war, on defiit le context root au moment du deploiement
    et
    il sufit alors de faire http://server:port/contexteroot/

    et youp là , la console jBPM doit apparaitre , enfin ca doit marcher dans ce sens là

  14. #34
    Membre régulier Avatar de Thewil
    Homme Profil pro
    Inscrit en
    Juillet 2006
    Messages
    223
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2006
    Messages : 223
    Points : 86
    Points
    86
    Par défaut
    Bonjour zakir,

    Je suis désolé mais je vois pas bien ce que tu veux me dire lol

  15. #35
    Membre à l'essai
    Inscrit en
    Janvier 2006
    Messages
    21
    Détails du profil
    Informations forums :
    Inscription : Janvier 2006
    Messages : 21
    Points : 20
    Points
    20
    Par défaut
    Thewil : t'a résolu le problème depuis ? si oui, comment ? j'ai exactement le même


    Merci d'avance (en espérant que t'a une notification pour que tu puisses voir ma question :p

Discussions similaires

  1. [VBA-E] lancer application exterieur
    Par zoumzoum59 dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 28/05/2006, 17h23
  2. Impossible lancer application en root
    Par alexp dans le forum Administration système
    Réponses: 15
    Dernier message: 26/04/2006, 22h52
  3. lancer application externe
    Par dmalik dans le forum Général Python
    Réponses: 1
    Dernier message: 28/11/2005, 15h39
  4. lancer application demarrage de l'ordinateur
    Par rabobsky dans le forum Autres Logiciels
    Réponses: 11
    Dernier message: 20/11/2005, 20h21
  5. lancer application Formsweb par le browser Mozilla
    Par oracliste dans le forum Forms
    Réponses: 2
    Dernier message: 05/07/2005, 14h00

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