File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Jboss Datasource dependency issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss Datasource dependency issue" Watch "Jboss Datasource dependency issue" New topic

Jboss Datasource dependency issue

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60

I tried to configure my data source in standalone.xml, I am getting the following issue in logs

JBAS014775: New missing/unsatisfied dependencies:
service jboss.jdbc-driver.ojdbc2 (missing) dependents: [service, service]

Configuration in standalone.xml::
<datasource jndi-name="java:jboss/datasources/SalesPerformanceData" pool-name="SalesPerformanceData" enabled="true" use-java-context="true">
<driver name="ojdbc2" module="com.oracledb.ojdbc14">

module.xml of ojdbc14 is:
<module xmlns="urn:jboss:module:1.1" name="com.oracledb.ojdbc14">
<resource-root path="ojdbc14.jar"/>

I tried to find out dependencies of ojdbc14.jar, looks like it is not dependent on any other jars. Please let me know how to fix this issue or let me know if I missed anything.

Francesco Marchioni
Ranch Hand

Joined: Sep 22, 2003
Posts: 194
I'd suggest using the ojdbc6.jar instead and include the following dependencies in it:

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="oracle.jdbc">
<resource-root path = ojdbc14.jar />

<module name="javax.transaction.api"/>
<module name="javax.api" export="true"/>
See if it helps

Enterprise Integration Tutorials - JBoss-WildFly Tutorials
I agree. Here's the link:
subject: Jboss Datasource dependency issue
It's not a secret anymore!