-2

我的机器上安装了 windows7 64bit。

  • Oracle 11G 客户端(32BIT)
  • 我的日食 6.6(322bit)

在尝试从我的 Eclipse 建立从我的 Java 应用程序到 Oracle 11G 的连接时,它抛出以下错误:

java.lang.UnsatisfiedLinkError: C:\Tools\EMCO\Local Library Pack\bin\ocijdbc8.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1957)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1882)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1087)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:571)
    at java.sql.DriverManager.getConnection(DriverManager.java:215)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:111)
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:98)
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:61)
    at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolConnection(OracleConnectionCacheImpl.java:274)
    at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:220)
    at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:163)
    at com.cisco.emco.core.db.EMCOConnectionManager.getConnection(EMCOConnectionManager.java:99)
    at com.cisco.emco.mfgpln.recommitcp.gui.RCPUIP.pullORG(RCPUIP.java:595)
    at com.cisco.emco.mfgpln.recommitcp.gui.RCPUIP.printQueryScreen(RCPUIP.java:118)
    at com.cisco.emco.mfgpln.recommitcp.recommitcpp.run(recommitcpp.java:234)
    at com.cisco.emco.core.servlet.BaseServlet.doPost(BaseServlet.java:156)
    at com.cisco.emco.core.servlet.BaseServlet.doGet(BaseServlet.java:171)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at com.cisco.emco.systech.safe.authfilter.EMCOAuthFilter.doFilter(EMCOAuthFilter.java:83)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
    at java.lang.Thread.run(Thread.java:724)

可能是什么问题呢?

4

1 回答 1

2

使用来自 Oracle 的纯 Java 类型 IV JDBC 驱动程序。它不应该需要任何本机代码。

我在堆栈跟踪中看到了 Tomcat。在启动之前,您应该将 JDBC 驱动程序 JAR 放在 Tomcat /lib 文件夹中。

我在您的堆栈跟踪中看到了奇怪的东西:Oracle 数据池,Cisco。我不知道为什么你的部署中有这些。我建议只使用 vanilla JDBC 并在它工作后进行分支。

如果您甚至不知道 JDBC JAR,我想知道您还有什么不知道的。此部署可能有任何问题。

于 2013-06-24T09:50:40.157 回答