问题描述
我正在将Web服务集成到我的Web应用程序中。
该Web服务为我提供了.dll和.jar文件。
我将.dd放在/ jre / bin中,并将.jar放在/ jre / lib
之后,我开发了代码,并部署了该应用程序。
在开发期间,我还在项目构建路径中包括了.jar文件。
通过tomcat运行它时,出现了以下错误:
I am integrating a web service in my web application.The web service provided me a .dll and .jar file.I placed .dd in /jre/bin and .jar in /jre/libAfter that I developed my code, and deployed the app.During development, I also included the .jar file in my project build path.On running it through tomcat, it gives me the error:
java.lang.UnsatisfiedLinkError:本机库.dll已加载到另一个类加载器中
java.lang.UnsatisfiedLinkError: Native Library .dll already loaded in another classloader
有人可以告诉我我在哪里错了。
我确实搜索了此问题,但d个答案都不明确。
Can someone tell me where am I goign wrong.I did search this problem, but none of d answers were clear.
当我删除.dll或.jar文件时,我的程序无法说可以找不到它。
我也尝试将其从我的外部库中删除,但这也可以解决问题
When I remove the .dll or .jar file, my program fails saying it could not find it.I also tried removing it from my external lib, but that also din work
请帮助
感谢
Akshay
Thanks,Akshay
推荐答案
您不能两次加载同一个库。
You can't load the same library twice.
将类粘贴到 / lib /
下的jar文件中,它将与其他.WAR文件共享。
Paste the class in a jar file under /lib/
, it will be shared with other .WAR files.
这篇关于.dll已在另一个类加载器中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!