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. Advertisements

  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. Advertisements

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. Peter Beck

    Threading - ASP. Net vs JSP/Servlets

    Peter Beck, Nov 19, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    929
    S. Justin Gengo
    Nov 19, 2003
  2. Xavi Sam

    Native dlls generated by ASP.NET

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

    Using native DLLs not in Path

    =?Utf-8?B?UmVpbmk=?=, Apr 12, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    637
    =?Utf-8?B?UmVpbmk=?=
    Apr 12, 2006
  5. Mick
    Replies:
    0
    Views:
    604
  6. Prateeksha Web Services
    Replies:
    0
    Views:
    1,920
    Prateeksha Web Services
    Aug 29, 2003
  7. Replies:
    0
    Views:
    4,971
  8. JTimoty
    Replies:
    3
    Views:
    439
    JTimoty
    Apr 26, 2010
Loading...