Problem :  Native Library already loaded in another classloader

I created a shared library HaspKeyAPI.dll by using JNI and add path to Java class library. I need to call native functions in my servletAction class to check some information in a key. Sometimes not always, I met �java.lang.UnsatisfiedLinkError: Native Library C:\eclipse\workspace\HaspKey\SharedLib\HaspKeyAPI.dll already loaded in another classloader� problem. I have to restart tomcat server then to restart my web app.
Does anyone know how to fix it?
Thank you in advance!
////////////////////////////////////my native function class, a singleton class////////////////////////////////
package haspkey.api;
import java.util.Collection;
import java.util.Vector;
import haspkey.HardwareSecurityKey;
Public class HaspKeyAPI {
Public static final int KEYEXIST = 1;
//A Singleton Class
private static HaspKeyAPI haspKeyAPI;
private HaspKeyAPI()
public static HaspKeyAPI getSingletonObject()
if ( haspKeyAPI== null)
haspKeyAPI = new HaspKeyAPI();          
return haspKeyAPI;
public Object clone()
     throws CloneNotSupportedException
throw new CloneNotSupportedException();
/**********use native functions to call hasp C API***********/
public native int keyPresent(int password1, int password2);
public native int getId(int password1, int password2);
public native void readBlock(int startMemoryLocation, int size,
byte[] block, int password1, int password2);
public native void writeBlock(int startMemoryLocation,int size, byte[] block, int password1,
int password2);
public native boolean decodeData(int size, byte[] block, int password1,
int password2);
public native boolean encodeData(int size, byte[] block, int password1,
int password2);
static {
System.loadLibrary("HaspKeyAPI");
private int getPrivMachineSpeed(boolean decrypt, int pass1, int pass2, String MLOCRTypeCode){
byte[] block = new byte[8];
int privMachineSpeed = 0;
boolean isNumeric = true;;
readKeyMemory(40,8,block, decrypt, pass1, pass2);
if(block.length!=8){
return -1;
}else{
String s = new String(block);
for(int n=0; n<3; n++){
if(s.charAt(n)<48 || s.charAt(n)>57){
isNumeric = false;
if(isNumeric){
privMachineSpeed = Integer.parseInt(s.substring(0,3));
return privMachineSpeed;
public HardwareSecurityKey getHardwareSecurityKey(boolean decrypt, int pass1, int pass2, String AuthorizationCodes,String MLOCRTypeCode){
HardwareSecurityKey key = new HardwareSecurityKey();
if(keyPresent(pass1,pass2)==KEYEXIST){
key.setPrivKeyID(getId(pass1, pass2));
key.setPrivMachineSpeed(getPrivMachineSpeed(true, pass1,pass2, MLOCRTypeCode));
}else{
return null;
/////////////////////////////// a class include some static final information to call the native function///////////////
import com.bowebellhowell.haspkey.api.HaspKeyAPI;
import com.bowebellhowell.winsort.vo.haspkey.HardwareSecurityKey;
public class HaspKey{
public static final String MLOCRTypeCode ="mmmmmmmmmmmmmmm";
public static final String AuthorizationCodes = "bbbbbbbbbbbbbbbb";
public static final int p1 = 0;
public static final int p2 = 0;
public static HardwareSecurityKey getHardwareSecurityKey(){
HaspKeyAPI key = HaspKeyAPI.getSingletonObject();
return key.getHardwareSecurityKey(true,p1,p2,AuthorizationCodes,MLOCRTypeCode);
/////////////////////////////////// a servlet to call native function///////////////////////////////////
public class LogonAction extends Action {
     public ActionForward execute(
          ActionMapping mapping,
          ActionForm form,
          HttpServletRequest request,
          HttpServletResponse response)
          throws Exception {
          int n = HaspKey.isKeyPresent();
          if(n!=1){
          if(n==2){
          message = "KeyDriverNotMatch";          
          }else if(n==3){
          message = "KeyOldModel";
          }else if(n==4){
          message = "KeyPasswordNotMatch";
          }else if(n==-1){
          message = "keyNotExist";
          request.getSession().setAttribute("message",message);
java.lang.UnsatisfiedLinkError: Native Library C:\eclipse\workspace\HaspKey\SharedLib\HaspKeyAPI.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at haspkey.api.HaspKeyAPI.<clinit>(HaspKeyAPI.java:76)
at util.HaspKey.isKeyPresent(HaspKey.java:35)
at LogonAction (LogonAction .java:65)

Hi EveryBody:
i working in 2 servlets, these servlets import a login.jar library and login.jar call to Login.dll (a native Library)
then. when i start second servlet i have this message
java.lang.UnsatisfiedLinkError: Native Library dllLogin.dll already loaded in another classloader
i read about class loader and i know about a only one load for native library but i don't know how resolve this exception because both servlets need dllLogin.dll to validate the user
please anybody knows how or have any idea?
Kind Regards
Edson
--sorry i know. my english is very bad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Libsapjco3.so - native library already loaded in another classloader

    During the work with sap-connector i get the messages "/usr/lib64/libsapjco3.so - native library already loaded in another classloader"".
    How can I solve it? Because after that I must restart Weblogic to make sap-connector work correctly again.

    you need to set the env varibale LD_LIBRARY_PATH, try to find out where you can set it in weblogic server .
    Thanks
    Suren

  • Error: native library oljdbc40.dll already loaded in another classloader

    Hi, we're using Oracle 8iLite in combination with Tomcat (on WinNT4.0) to run servlets accessing our OLite db. We use a deployed db (Deployment tool: PolUtil.exe) and pure JDBC connections.
    When starting tomcat, the servlet is automatically initialized (exactly once!). It comes to the point, where a database connection is to be established. At this point, we get the following error message:
    Native Library E:\MyServer\DB\BIN\oljdbc40.dll already loaded in another classloader
    The strange thing is, that this error only occurs on some machines. There are no other java apps running.
    Where does this error come from, and how can someone avoid this seemingly arbitrary error?
    Thanks in advance for your time, Holger
    null

    You are having some problems with that Oracle Driver and Orion.
    Do you have any JSP at your Installation that work with Oracle?
    Orion needs to know where that Diver is located is that Driver in
    some package that is in Orion's Class Path?

  • Native Library ocijdbc8.dll already loaded in another classloader

    Hi,
    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?

    You are having some problems with that Oracle Driver and Orion.
    Do you have any JSP at your Installation that work with Oracle?
    Orion needs to know where that Diver is located is that Driver in
    some package that is in Orion's Class Path?

  • Library is already loaded in another ClassLoader

    Hi,
    We have deployed our java application in NetWeaver. To decrpyt the logon cookie we are using the library libsapssoext.o. When we are tying to load this library it fails with the following exception.
    [ERROR] SSO2Ticket.<clinit>() - Error during initialization of SSO2TICKET:
    libsapssoext.o (Library is already loaded in another ClassLoader)
    This had actually worked first time when we deployed the app but after that when we redeployed the application..it throws this error and any native calls fails after this point.
    Below is the java code snippet which we are using to load this library.
         static {
              try {
                   logger.debug("java.library.path - "+System.getProperty("java.library.path"));
                   System.loadLibrary("libsapssoext.o");
                   System.out.println("SAPSSOEXT loaded.");
                   logger.debug("SAPSSOEXT loaded.");
              } catch (Throwable e) {
                   System.out.println("Error during initialization of SSO2TICKET:\n"+ e.getMessage());
                   logger.error("Error during initialization of SSO2TICKET:\n"+ e.getMessage());
    Kindly advise.

    Hi
    The reason of such behavior might be in the mapping between the library and the old version of your Java class. It seems that the library when it was loaded first time is still mapped to the previous Java class version. Try to undeploy your application from the server and deploy it again.
    BR, Siarhei

  • Library ocijdbc8.dll already loaded in another classloader

    Hi,
    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?

    Make sure that the Oracle JDBC driver is in the "common" library location, not in the per-webapp location. If this were tomcat, I'd say put it in tomcat's own common/lib, rather than the webappname/WEB-INF/lib.
    Basically, you want to make sure that the classes12.zip is only loaded once by one classloader.

  • UnsatisfiedLinkError ... ntvinv.dll already loaded in another classloader

    Hi,
    I'm trying to run a program using JCOM from the command line. My program is a
    test runner which spawns a number of users in separate threads and runs a sequence
    of requests. For every new user, the constructor which initializes the jcom proxy
    object (IWlsTrigWrapProxy below) is called. Running the test with one user works
    fine. In a multiple user test, the first user is successful, but when subsequent
    users try to initialize I get the following message:
    -----------------------8<---------------------------
    BEA WebLogic 6.1 license found...
    java.lang.UnsatisfiedLinkError: Native Library C:\bea\wlserver6.1\jcom\bin\ntvinv.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 com.bea.jcom.NativeObjRef.r(NativeObjRef.java)
    at com.bea.jcom.Dispatch.a(Dispatch.java)
    at com.bea.jcom.Dispatch.isNativeMode(Dispatch.java)
    at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
    at com.bea.jcom.Dispatch.<init>(Dispatch.java)
    at xx.xxx.IWlsTrigWrapProxy.<init>(IWlsTrigWrapProxy.java:49)
    at .......................
    [ stuff deleted ]
    -----------------------8<---------------------------
    Is there an obvious reason for this? What can be done about it?
    Best regards,
    Lars Cronsioe

    Hi Cronsioe,
    I encountered the same error as you mentioned here when trying to access the COM
    object using jcom.
    The message I am getting is
    UnsatisfiiedLinkError:getNegociateMessage()
    I have put the jcom\bin in the path variable and the jcom.jar in the system classpath.
    I have even sepcified the path for jcom\bin\ntvauth.dll in path variable.
    Did you get any solution to your problem. If so please let me know. I appreciate
    your responses.
    Quraishi
    "Lars Cronsioe" <[email protected]> wrote:
    >
    Clarifying my question from yesterday, I would like to add the following:
    From the JCom Reference Guide, chapter 8, first section "From Java to
    COM", it
    seems that "The WebLogic jCOM runtime DCOM engine will allow multiple
    simultaneous
    requests to the same COM object". However, since nothing is said about
    the native
    mode, I draw the conclusion that simultaneous requests to the same COM
    object
    are not supported. Is this correct? What can I do about it?
    Regards
    Lars Cronsioe again

  • Libdb_java46.dll already loaded in another classloader

    I'm trying to use DB XML in a servlet with Tomcat 5.5. In the init() method, I open a container and in destroy(), I do the cleanup.
    The problem is that if I recompile my code and let Tomcat reload the webapp, I get the following error:
    "java.lang.UnsatisfiedLinkError: Native Library libdb_java46.dll already loaded in another classloader"
    I'm using Java 1.5.
    Is there a way to get around this error? it is very annoying in development mode to stop and restart Tomcat each time I make a modification.
    Thanks.

    hi
    try with putting db.jar and dblxml.jar into
    $CATALINA_HOME/common/lib
    more to read about classloading at following url
    http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
    yurss rober

  • Usr/lib/mps/sercv1/libjss3.so already loaded in another classloader.

    I�ve got the followindg error when i use the sun one applicationserver 7.
    /usr/lib/mps/sercv1/libjss3.so already loaded in another classloader.
    What can i do to solve the problem?

    Hello
    I had that problem more than 3 months ago on 10.1.3 DP4 "Native library already loaded in an other class loader". and I come back now, as one of my customer meets that problem himself with OC4J 10.1.3.00!
    My question is the following: what sort of advices could you give, in OC4J consiguration, if one have two components run by OC4J run the same classes from the same jar file, which in turn loads a native shared library ?
    Is there a way of declaring this shared library so that it is loaded only once ?
    Thank you very much in advance, help very much appreciated!
    Paul Barnes

  • Java Connector. "sapjcorfc.dll already loaded in another classloader"

    Dear all:
    I'm fighting against a Java Connector problem.
    I'm using:
    -JCO version 2.16
    -Apache Tomcat 5.5.17
    I have written the environment variables:
    CLASSPATH pointing where I have sapjco.jar, sapjcorfc.dll
    Path where i have sapjco.jar, sapjcorfc.dll.
    I try to make a webservice which calls a RFC function in SAP.
    Java program compiles and Deploy OK.
    I load the web service in Tomcat.
    When I call the java server page, I get this error message from Tomcat:
    org.apache.jasper.JasperException: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc Native Library C:\Traspas\Projecte\lib\sapjcorfc.dll already loaded in another classloader. java.library.path C:\Tomcat5.5.17\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Java\jdk1.5.0_07\bin;C:\Traspas\Projecte\lib
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Seems that is trying to load twice sapjcorfc.dll?
    I would be grateful if someone can give me help.
    Thanks in advance.
    Jordi

    I received a message asking for further clarification. I try to further explain.
    Be sure sapjco.jar is not included in the application. Doing so will lead the system to load more than one time the SAP Java Connector. Sapjco.jar has to be loaded only once in the server.
    To do so (in Windows & Tomcat environment):
    1-Be sure sapjco.jar is not included in the WEB-INF folder.
    2-Put sapjcorfc.dll and librfc32.dll in c:Windowssystem32
    3-Put sapjco.jar in c:Tomcatcommonlib
    4-Add a reference to sapjco.jar in the project (In Eclipse: Project/Properties/Java Build Path, Tab Libraries, Add External JARs.
    5-Compile and deploy the application. Generate War file. If ant gives problems, add proper command to find sapjco.jar (section <path id=u201Dpath.baseu201D>, <include name=u201Dsapjco.jaru201D>)
    6-Load the WAR file in Tomcat.
    7-Stop and Start Tomcat.
    8-Run the application.
    A related thread: [SAP J2EE engine problem|SAP J2EE engine problem]
    Hope this helps.

  • [XMLType]Native Library already loaded

    Hi !
    I work with oracle DB 9.2.0.3 and J2ee server.
    I connect to the db with JDBC driver (oci8 client)
    When I use the method CreateXML method (XDB.jar package) I have this error :
    java.lang.UnsatisfiedLinkError: Native Library D:\oracle\ora92\bin\orageneric9.dll already loaded in another classloader
    I have to shutdown and reopen my J2ee server ...
    Any Idea ?

    If you use the session of the myserver1, then store some value in session to identify that the library is loaded.
    As a first step in myserver2, Check in session whether the value is set.
    If you cannot propagate session information across myserver1 and myserver2, then
    myserver1:
    static
    loadLibrary("YourDLL")
    "Include this here..........."
    This code will be there in some class
    "Include this here..........."
    Just write in ser file that DLL is loaded.
    myserver2:
    static
    checkWhetherAlreadyLoaded();
    loadLibrary("YourDLL");
    Or have the loading of library alone in a class in a static method.
    public class LoadClass
    public static loadLibrary()
    System.loadLibrary("YourDLL");
    In myserver1, just call this.
    In myserver2, before calling this method,
    just call any native method - a test method will do
    public boolean checkLoadedStatus()
    try
    // Call the testing nativemethod.
    catch(UnsatisfiedLinkerError e)
    try
    LoadClass.loadLibrary();
    return true;
    catch(Exception e)
    return false;
    }

  • Bonjour java already loaded in another classloader error

    I'm using the java bonjour library (dns_sd.jar) in a web application running in Jboss web server.
    When I start the server a Servlet finds every resource on the network with bonjour and returns to the user. The first time everything runs great but when I redeploy the web app I get:
    java.lang.UnsatisfiedLinkError: Native Library C:\Windows\System32\jdns_sd.dll already loaded in another classloader
    I already tried deletting the .dll and the samething happens.
    Why does it even refer the .dll if I have the .jar lib in my web app?
    Does anyone have any idea on how to fix this?

    marcosRoriz wrote:
    But I can't use another instance of IXCRegistry?You understand that you have two class loaders right?
    The shared library is loaded by the OS into the application. There can be only one.
    The VM wants to associate that single shared library with the class loader that loaded it.
    One solution is to have a class loader for just that class. Note that the OS, not the VM, will not let you have two instances of the shared library so it is generally pointless (in terms of class loaders) to have more than one.

  • Oracle nightmares.. : libocijdbc8.so already loaded in another classloader

    Hi folks,
    I'm currently getting the above error, and my jsp page is acting like a run-away java process. The above can be solved be restarting tomcat on the server, but obviously this takes a little time.
    When tomcat is restarted, the connection to the database works perfectly, all the relative variables seem to be set, the oracle client is installed and works fine.
    It seems to be hanging out to resources, i.e. the libocijdbc8. Is there any method to release these resources, or let it know I'm done with them?
    Regards,
    Neil McKeown

    Hello
    I had that problem more than 3 months ago on 10.1.3 DP4 "Native library already loaded in an other class loader". and I come back now, as one of my customer meets that problem himself with OC4J 10.1.3.00!
    My question is the following: what sort of advices could you give, in OC4J consiguration, if one have two components run by OC4J run the same classes from the same jar file, which in turn loads a native shared library ?
    Is there a way of declaring this shared library so that it is loaded only once ?
    Thank you very much in advance, help very much appreciated!
    Paul Barnes

  • Native Library libocijdbc9.so already loaded in another classloader

    System Environment:
    Solaris 9
    Oracle 9.2.0.1
    Tomcat 5.5.9
    Hibernate 3.0.5
    We are using a Tomcat with Hibernate in two applications each with a different hibernate.cfg.xml.
    The first application to come connects correctly to the database and the second fails with the message in the topic.
    Does anybody know a way to solve our problem.

    okay okay.. already got it
    for all who want to know:
    1) you can keep jco archive for local development in the project
    2) make sure you don't export it
    3) when deploying to WebAS a popup appears
    4) click on the first entry in the list to the right (ear-settings)
    5) add a reference "libary" to com.sap.mw.jco
    6) deploy
    7) start & have fun
    Alternative way:
    create a file called: <b>application-j2ee-engine.xml
    </b> in your EAR <i>"META-INF"</i> Directory with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application-j2ee-engine SYSTEM 'application-j2ee-engine.dtd'>
    <application-j2ee-engine>
         <reference reference-type="hard">
              <reference-target provider-name="engine.sap.com"
                   target-type="library">
                   com.sap.mw.jco
              </reference-target>
         </reference>
    </application-j2ee-engine>
    when the project will be deployed to the WebAS the changes from solution above will be set up automatically.
    Message was edited by:
            Lars Paetzold

  • JCo: "sapjcorfc.dll already loaded in another classloader"

    Hi,
    using Eclipse 3.2 I created some Java classes, which are using com.sap.mw.jco.*.
    Now I create two JSP projects, which using my Java classes.
    The JSPs are hosted by a Tomcat 5.5.
    The reason of the error above is written in SAP note 542175.
    Can somebody explain me please, which settings inside Eclipse 3.2 I have to make, that I can use my JSP applications at the same time.
    What's to do on the Tomcat server?
    In thread 15622 was written: "Add the library reference to the J2EE module ...", but how to do that?
    Any help would be appreciated!
    Regards,
    Peter

    Inside Eclipse open project properties, go to "Java Build Path" and then I pressed "Add variable", there I picked the SAPJCo.jar.
    On tomcat installation directory I added the SAPJCo.jar inside file directory
    "C:\Program Files\Apache Software Foundation\Tomcat 5.5\shared\lib"
    I also extended the environment PATH variable with SAP JCo installation directory "C:\Program Files\SAP\sapjco-ntintel-2.1.7"
    Hope this helps!
    Peter

Maybe you are looking for

  • SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has be

    Hello, I have a sql 2005 server, and I am a developer, with the database on my own machine.  It alwayws works for me but after some minutes the other developer cant work in the application He got this error Login failed for user ''. The user is not a

  • Chapter Numbers in a table of contents

    Hi Experts, I'd like to add a table of contents (TOC) including chapter numbers in my template. For example: Table of Contents 1. Title 1.1 Sub-Title 1.1.1 SubSub-Title To do so: •     I created a template with a table of contents. •     In the repor

  • Intaller software for MAC

    Hi everyone, I have a CS-10 internet stick working fine with a Windows PC. Recently I have bought a Macbook Air with Snow Leopard and trying to use the CS-10 with the MAC but it is not working. Do you know where can I download the software installati

  • Show desktop not working in full screen app

    The thumb & three finger swipe to show the desktop does not work for me if the screen is filled with a full screen app. If hte app is not full screen then the gesture works. Is this  a bug, does anyone else get this, what use is the gesture if it doe

  • No Download after phone purchase??

    Purchased upgrade to Lightroom 5 over the phone after online purchase checkout page kept insisting I was purchasing Lightroom 4.  Was told I would receive email with licensed download.  No email after 2 days wait.  Also, in my account on the 'My Orde