• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Jboss Datasource dependency issue

Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 jboss.driver-demander.java:jboss/datasources/SalesPerformanceData, service jboss.data-source.java:jboss/datasources/SalesPerformanceData]

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.

Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!