Bonjour,
Je viens demander votre aide car j'ai un soucis pour le démarrage d'un jboss.
C'est un peu complexe mais je fais essayer de faire simple
Je dois réaliser un framework de test pour une application, cet application est déployé avec un EAR dans JBoss, dans cet EAR il y a déjà deux projet .war et leurs .jar correspondant.
Lorsque je lance le serveur dans cet état, tout marche.
Maintenant moi je veux monter un web service Seam (l'application de base l'utilise déjà), donc j'ai juste rajouté mon projet war dans le ear qui se trouve dans le Jboss et j'ai modifié le application.xml.
Ce projet sans Seam ( et donc sans web service ) se déploie parfaitement hors et dans l'ear.
Bref c'est dés que je met mon projet qui contient mon web service que rien ne va plus.
Je vous transmet une partie de la stack de l'erreur :
Voici mon web.xml de mon projet war à rajouter :
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 org.jbpm.pvm.internal.wire.WireException: couldn't find configuration at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.construct(HibernateSessionFactoryDescriptor.java:59) at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:455) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:429) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:339) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:704) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:154) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:711) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123) at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.construct(HibernateSessionDescriptor.java:63) at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:455) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:429) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:339) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:704) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132) at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123) at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:207) at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:196) at org.jbpm.pvm.internal.cmd.CheckDbCmd.execute(CheckDbCmd.java:44) at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42) at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:83) at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:62) at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56) at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52) at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40) at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43) at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:152) at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.<init>(ProcessEngineImpl.java:105) at org.jbpm.pvm.internal.cfg.ConfigurationImpl.instantiateProcessEngine(ConfigurationImpl.java:100) at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:92) at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)
Ce que j'ai rajouté dans mon application.xml (que je mette cet ligne, au milieu ou à la fin ou meme au début ne change rien)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <servlet> <servlet-name>LaunchTestCase</servlet-name> <servlet-class>com.legt.ui.webservice.LaunchTestCaseWs</servlet-class> </servlet> <servlet-mapping> <servlet-name>LaunchTestCase</servlet-name> <url-pattern>/LaunchTestCase</url-pattern> </servlet-mapping> <!-- Seam --> <listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener>
Mon components.xml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <module> <web> <web-uri>captain-rules.war</web-uri> <context-root>/captain</context-root> </web> </module>
Et mon jboss-web.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 <?xml version="1.0" encoding="UTF-8"?> <components xmlns="http://jboss.com/products/seam/components" xmlns:core="http://jboss.com/products/seam/core" xmlns:transaction="http://jboss.com/products/seam/transaction" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.2.xsd http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.2.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.2.xsd http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.2.xsd http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.2.xsd http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.2.xsd http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.2.xsd"> <core:init jndi-pattern="application/#{ejbName}/local"/> </components>
Je suis débutant dans l'utilisation de Jboss et des ear, donc même si ce sont des choses évidentes n'hésitez pas à me faire des remarques.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 <jboss-web> </jboss-web>
Je vous remercie pour votre aide
Partager