Library ocijdbc8.dll already loaded in another classloader
843854Nov 20 2002 — edited Nov 20 2002Hi,
help me please!
I have Platform: Win2000/Orion/JSP + Oracle 8.1.7
and while using this testdb.jsp file
(simple select from some table and print result)
i get error:
java.lang.UnsatisfiedLinkError: Native Library C:\oracle\ora81\bin\ocijdbc8.dll already loaded in another classloader
testdb.jsp
----------------------------------------
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%
String user = "sa";
String password = "dbo";
String jdbcClass = "oracle.jdbc.driver.OracleDriver";
String jdbcURL = "jdbc:oracle:oci8:@DB02";
Connection conn = null;
PreparedStatement pstmt = null;
Statement stmt = null;
ResultSet rs = null;
try
{
Properties props = new Properties();
props.put("user", user);
props.put("password", password);
Driver myDriver = (Driver) Class.forName(jdbcClass).newInstance();
conn = myDriver.connect(jdbcURL, props);
}
catch (Exception e)
{
e.printStackTrace(response.getWriter());
}
try
{
stmt = conn.createStatement();
rs = stmt.executeQuery("select * from fxqs_users");
while(rs.next())
out.print("User: " + rs.getString("LOGIN") + "<hr size=1>");
rs.close();
stmt.close();
}
catch(Exception e)
{
e.printStackTrace(response.getWriter());
}
%>
-------------------------
Error:
--------------
500 Internal Server Error
java.lang.UnsatisfiedLinkError: Native Library C:\oracle\ora81\bin\ocijdbc8.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1346)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
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 /fxqs/admin/index.jsp._jspService(/fxqs/admin/index.jsp.java:222) (JSP page line 185)
at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)
---------------
have you any solutions?