This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes Jboss7 + Oracle 11g - ocijdbc11.dll: Can't find dependent libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss7 + Oracle 11g - ocijdbc11.dll: Can Watch "Jboss7 + Oracle 11g - ocijdbc11.dll: Can New topic
Author

Jboss7 + Oracle 11g - ocijdbc11.dll: Can't find dependent libraries

Paulo Bianchin
Greenhorn

Joined: Jan 16, 2012
Posts: 11
Hi

I want connection for Oracle 11g from Jboss7 (win 32)


I followed the steps of http://javalabor.blogspot.com/2011/08/oracle-datasource-in-jboss-as-7.html?showComment=1326727838716#c30497072491729579


module.xml



standalone.xml





but get an error "Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc11 in java.library.path"

I added the key java.library.path

So show me the following error:




Anybody seen this?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

This error means that some DLL on which ocijdbc11.dll depends cannot be found in the path. The best way to find out which DLL is missing is to use the dependency walker: http://www.dependencywalker.com/


JBoss In Action
Paulo Bianchin
Greenhorn

Joined: Jan 16, 2012
Posts: 11
Tanks for reply

I install dependency walker and fixed one dependency. but the problem remains


Do you have any other way without using these dll?







Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

You could use a different Oracle driver that doesn't need a native DLL. The drivers are listed at:
http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
Looks like you need one that handles XA. (I don't use Oracle or I might be able to tell you a specific driver to use.)
 
 
subject: Jboss7 + Oracle 11g - ocijdbc11.dll: Can't find dependent libraries