I am getting the java.lang.UnsatisfiedLinkError: Native Library C:\Lotus\Notes\nlsxbe.dll already loaded in another class exception when i am redeploying my ear file without restarting the webserver.

I am creating ear file and deploying the application in weblogic. My application contains a message driven been that sends email using lotus api when ever a message comes. This is contained in a jar file in the ear.

I am getting the following exception when i am redeploying the application without restarting my server.

<ExecuteThread: '12' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-010065> <MessageDrivenBean threw an Exception in onMessage(). The exception was:
 java.lang.UnsatisfiedLinkError: Native Library C:\Lotus\Notes\nlsxbe.dll already loaded in another classloader.
java.lang.UnsatisfiedLinkError: Native Library C:\Lotus\Notes\nlsxbe.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 lotus.domino.NotesThread.load(NotesThread.java:281)
      at lotus.domino.NotesThread.checkLoaded(NotesThread.java:301)
      at lotus.domino.NotesThread.sinitThread(NotesThread.java:171)

 Is it a configuration issue? Should i have to put my jar file in some other place?
 looking for suggestions...

Thanks
madhurikgAsked:
Who is Participating?
 
ECollinConnect With a Mentor Commented:
Hi,

your application also use a native api to send your emails. Put it in the server's classpath instead of the jar file.

Emmanuel
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.