Deployment failed with jboss.jdbc-driver.com_mysql
samwun9988 Jan 12, 2015 8:54 AMHi, I created a ear / ejb project for jboss 7.2.final. The ejb need to connect to mysql.
However it failed during deployment, with the following errors:
00:40:26,376 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ForestSurf-ear-1.0.ear" was rolled back with the following failure message:
{"JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {
"Services that were unable to start:" => [
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.ArticlePointFormFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.AustGeo2Facade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.AustGeoFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.CascadeProductImagesFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.CategoryImagesFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.CategorySubcategoriesFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.CustAddressFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.ProductArticleFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.ProductCategoryAssociateFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.ProductFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.ProductImagesFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.UserFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".component.UserInterestedProductFacade.START",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".deploymentCompleteService",
"jboss.deployment.subunit.\"ForestSurf-ear-1.0.ear\".\"ForestSurf-ejb-1.0.jar\".jndiDependencyService",
"jboss.deployment.unit.\"ForestSurf-ear-1.0.ear\".deploymentCompleteService",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".ArticlePointFormFacade.env.\"ForestSurf.entity.facade.ArticlePointFormFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".AustGeo2Facade.env.\"ForestSurf.entity.facade.AustGeo2Facade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".AustGeoFacade.env.\"ForestSurf.entity.facade.AustGeoFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".CascadeProductImagesFacade.env.\"ForestSurf.entity.facade.CascadeProductImagesFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".CascadeProductImagesFacade.env.\"ForestSurf.entity.facade.CascadeProductImagesFacade\".emf",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".CategoryImagesFacade.env.\"ForestSurf.entity.facade.CategoryImagesFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".CategorySubcategoriesFacade.env.\"ForestSurf.entity.facade.CategorySubcategoriesFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".CustAddressFacade.env.\"ForestSurf.entity.facade.CustAddressFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".ProductArticleFacade.env.\"ForestSurf.entity.facade.ProductArticleFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".ProductArticleFacade.env.\"ForestSurf.entity.facade.ProductArticleFacade\".emf",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".ProductCategoryAssociateFacade.env.\"ForestSurf.entity.facade.ProductCategoryAssociateFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".ProductFacade.env.\"ForestSurf.entity.facade.ProductFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".ProductImagesFacade.env.\"ForestSurf.entity.facade.ProductImagesFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".UserFacade.env.\"ForestSurf.entity.facade.UserFacade\".em",
"jboss.naming.context.java.comp.\"ForestSurf-ear-1.0\".\"ForestSurf-ejb-1.0\".UserInterestedProductFacade.env.\"ForestSurf.entity.facade.UserInterestedProductFacade\".em",
"jboss.persistenceunit.\"ForestSurf-ear-1.0.ear/ForestSurf-ejb-1.0.jar#ForestSurfPU\""
],
"Services that may be the cause:" => ["jboss.jdbc-driver.com_mysql"]
}}
I followed the instruction as described in the following webpage:
Developer Guide - JBoss AS 7.2 - Project Documentation Editor
Here is the mysql folders/files structure in jboss:
s$ pwd
/usr/local/users/jbossserv/jboss72Final/modules/com/mysql/main
$ ls -l
total 1652
-rw-r--r-- 1 jbossserv jbossserv 265 Jan 13 00:18 module.xml
-rw-r--r-- 1 jbossserv jbossserv 817285 Jan 13 00:18 mysql-connector-java-5.1.15.jar
-rw-r--r-- 1 jbossserv jbossserv 827942 Jan 13 00:18 mysql-connector-java-5.1.21-bin.jar
-rw-r--r-- 1 jbossserv jbossserv 461 Jan 13 00:18 mysql-connector-java-5.1.21-bin.jar.index
$ cat module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.mysql">
<resources>
<resource-root path="mysql-connector-java-5.1.21-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
The above files are just simply copied from my preiovus jboss7.1.1final folders.