JBoss DataSource Connection Error
bcagrawal Sep 26, 2017 11:04 PMI am using JBOSS EAP 6.4.
While starting the JBOS, I am getting the below
20:56:46,724 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "mortgage")
]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.driver-demander.java:/datasources/mortgage is missing [jboss.jdbc-driver.ojdbc7_jar]",
"jboss.data-source.java:/datasources/mortgage is missing [jboss.jdbc-driver.ojdbc7_jar]"
]}
20:56:46,726 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("enable") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "mortgage")
]) - failure description: {"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.data-source.reference-factory.mortgage",
"jboss.naming.context.java.datasources.mortgage"
],
"Services that may be the cause:" => ["jboss.jdbc-driver.ojdbc7_jar"]
}}
Can you please let me know what could be the issue? The datasource is defined as below.
<datasource jta="false" jndi-name="java:/datasources/mortgage" pool-name="mortgage" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:oracle:thin:@${db.host:localhost}:${db.port:1521}:${db.service:xe}</connection-url>
<driver>ojdbc7.jar</driver>
<pool>
<min-pool-size>${connection.pool.init.capacity:10}</min-pool-size>
<max-pool-size>${connection.pool.max.capacity:200}</max-pool-size>
</pool>
<security>
<user-name>${db.user:username}</user-name>
<password>${db.password:dummypassword}</password>
</security>
</datasource>