Salut, quand je déploie mon jar ou mon ear (j'ai essayé les deux) de mon projet sous JBoss, il me crache:
Code :
- 09:31:36,484 WARN [JmsActivation] Failure in jms activation org.jboss.resource.
- adapter.jms.inflow.JmsActivationSpec@851105(ra=org.jboss.resource.adapter.jms.Jm
- sResourceAdapter@178274f destination=queue/B destinationType=javax.jms.Queue tx=
- true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxM
- essages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=com.
- atosorigin.ceps.impl.engine.acquisition.CepsQueueManager DLQJndiName=queue/DLQ D
- LQUser=null DLQMaxResent=5)
- javax.naming.NameNotFoundException: B not bound
- at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
- at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
- at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
- at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
- at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
- at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
- at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
- at javax.naming.InitialContext.lookup(InitialContext.java:392)
- at org.jboss.util.naming.Util.lookup(Util.java:222)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(
- JmsActivation.java:464)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivati
- on.java:352)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.r
- un(JmsActivation.java:729)
- at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
- at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:
- 260)
- at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
- utor.java:886)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
- .java:908)
- at java.lang.Thread.run(Thread.java:619)
- 09:31:40,765 WARN [JmsActivation] Failure in jms activation org.jboss.resource.
- adapter.jms.inflow.JmsActivationSpec@1e3f789(ra=org.jboss.resource.adapter.jms.J
- msResourceAdapter@178274f destination=queue/C destinationType=javax.jms.Queue tx
- =true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null max
- Messages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org
- .jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ D
- LQUser=null DLQMaxResent=5)
- javax.naming.NameNotFoundException: C not bound
- at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
- at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
- at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
- at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
- at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
- at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
- at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
- at javax.naming.InitialContext.lookup(InitialContext.java:392)
- at org.jboss.util.naming.Util.lookup(Util.java:222)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(
- JmsActivation.java:464)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivati
- on.java:352)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.r
- un(JmsActivation.java:729)
- at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
- at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:
- 260)
- at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
- utor.java:886)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
- .java:908)
- at java.lang.Thread.run(Thread.java:619)
- 09:31:40,781 WARN [JmsActivation] Failure in jms activation org.jboss.resource.
- adapter.jms.inflow.JmsActivationSpec@12e6e32(ra=org.jboss.resource.adapter.jms.J
- msResourceAdapter@178274f destination=queue/A destinationType=javax.jms.Queue tx
- =true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null max
- Messages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=com
- .atosorigin.ceps.impl.engine.acquisition.CepsQueueManager DLQJndiName=queue/DLQ
- DLQUser=null DLQMaxResent=5)
- javax.naming.NameNotFoundException: A not bound
- at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
- at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
- at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
- at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
- at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
- at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
- at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
- at javax.naming.InitialContext.lookup(InitialContext.java:392)
- at org.jboss.util.naming.Util.lookup(Util.java:222)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(
- JmsActivation.java:464)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivati
- on.java:352)
- at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.r
- un(JmsActivation.java:729)
- at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
- at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:
- 260)
- at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
- utor.java:886)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
- .java:908)
- at java.lang.Thread.run(Thread.java:619)
|
Je pense que c'est lié à MySql, mais je n'en suis pas sûr. Pour info, j'ai JBoss 5.0.0 GA, MySql dernière version (la 5), le jar mysql-connector-5.1.6-bin mis dans le répertoire default/lib de JBoss, le jar ou ear mis au bon endroit (répertoire deploy), j'ai le mysql-ds.xml:
Code :
- <?xml version="1.0" encoding="UTF-8"?>
- http://www.mysql.com/downloads/api-jdbc-stable.html
- -->
- <datasources>
- <local-tx-datasource>
- <jndi-name>MySqlDS</jndi-name>
- <!--<connection-url>jdbc:mysql://163.187.176.202:3306/test</connection-url>-->
- <connection-url>jdbc:mysql://163.187.176.202:3306/test</connection-url>
- <driver-class>com.mysql.jdbc.Driver</driver-class>
- <user-name>ceps</user-name>
- <password>ceps</password>
- <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
- <!-- should only be used on drivers after 3.22.1 with "ping" support
- <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
- -->
- <!-- sql to call when connection is created
- <new-connection-sql>some arbitrary sql</new-connection-sql>
- -->
- <!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers
- <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
- -->
- <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
- <metadata>
- <type-mapping>mySQL</type-mapping>
- </metadata>
- </local-tx-datasource>
- </datasources>
|
et j'ai le persistence.xml:
Code :
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- Exemple de fichier de Persistance utilisé par Hibernate -->
- <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
- <!-- Le nom de l'unité de persistance utilisée par le serveur -->
- <persistence-unit name="ceps">
- <!-- Decommenter une des deux Ressource -->
- <!-- Ressource Mysql-->
- <jta-data-source>java:/MySqlDS</jta-data-source>
- <!-- Ressource HsqlBd -->
- <!-- <jta-data-source>java:/DefaultDS</jta-data-source> -->
- <properties>
- <!-- Propriété de la base de données -->
- <!-- Pour que la base de données soit supprimée et recréée à chaque deploiment utilisez la propriété create-drop -->
- <!-- Pour que la base de données soit mise à jour (pas de suppression) à chaque deploiment utilisez la propriété update -->
- <property name="hibernate.hbm2ddl.auto" value="update" />
- </properties>
- </persistence-unit>
- </persistence>
|
Vous en pensez quoi?