aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss Datasource dependency issue" Watch "Jboss Datasource dependency issue" New topic
Author

Jboss Datasource dependency issue

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
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

Joined: Sep 22, 2003
Posts: 191
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


WildFly 8 Administration Book - JBoss Tutorials
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss Datasource dependency issue