Loading Native DLLs in JSP/servlets

Discussion in 'Java' started by Brett Slocum, Mar 18, 2005.

  1. Brett Slocum

    Brett Slocum Guest

    OK, I've got an object that needs to load a native DLL. So, I put the
    System.loadLibrary(...) call in the constructor for that object. This
    object is called from three different JSPs that instantiate the object.

    When I run the JSP for the first time, I get the following error
    message (even though the JavaDoc says that System.loadLibrary() won't
    throw an exception, if the library is already loaded):

    java.lang.UnsatisfiedLinkError: Native Library
    C:\WINNT\AcordeInterfaceJNI.dll already loaded in another classloader

    So, what's going on and how can I get this to work? Has anyone done
    something like this before?
     
    Brett Slocum, Mar 18, 2005
    #1
    1. Advertising

  2. Brett Slocum

    Tom Dyess Guest

    "Brett Slocum" <> wrote in message
    news:...
    > OK, I've got an object that needs to load a native DLL. So, I put the
    > System.loadLibrary(...) call in the constructor for that object. This
    > object is called from three different JSPs that instantiate the object.
    >
    > When I run the JSP for the first time, I get the following error
    > message (even though the JavaDoc says that System.loadLibrary() won't
    > throw an exception, if the library is already loaded):
    >
    > java.lang.UnsatisfiedLinkError: Native Library
    > C:\WINNT\AcordeInterfaceJNI.dll already loaded in another classloader
    >
    > So, what's going on and how can I get this to work? Has anyone done
    > something like this before?
    >


    I get this when calling a COM object through JACOB when Eclipse
    automatically builds and reloads the context after saving a file and Tomcat
    is running in debug mode. I don't know if this helps.

    --
    Tom Dyess
    OraclePower.com
     
    Tom Dyess, Mar 18, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xavi Sam

    Native dlls generated by ASP.NET

    Xavi Sam, Jul 19, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    398
    Jim Cheshire [MSFT]
    Jul 19, 2004
  2. Oenone
    Replies:
    0
    Views:
    542
    Oenone
    Jul 11, 2005
  3. =?Utf-8?B?UmVpbmk=?=

    Using native DLLs not in Path

    =?Utf-8?B?UmVpbmk=?=, Apr 12, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    524
    =?Utf-8?B?UmVpbmk=?=
    Apr 12, 2006
  4. Replies:
    0
    Views:
    4,441
  5. JTimoty
    Replies:
    3
    Views:
    305
    JTimoty
    Apr 26, 2010
Loading...

Share This Page