• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss Datasource dependency issue

 
Harish Maridi
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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">
<connection-url>jdbcracle:thin:@myserverIP:EP1</connection-url>
<driver>ojdbc2</driver>
<security>
<user-name>userName</user-name>
<password>passWord</password>
</security>
</datasource>
<drivers>
<driver name="ojdbc2" module="com.oracledb.ojdbc14">
<xa-datasource-class>oracle.jdbc.driver.OracleDriver</xa-datasource-class>
</driver>
</drivers>

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

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.

Thanks,
HM
 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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">
<resources>
<resource-root path = ojdbc14.jar />
</resources>

<dependencies>
<module name="javax.transaction.api"/>
<module name="javax.api" export="true"/>
</dependencies>
</module>
See if it helps
Regards
Francesco
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic