简体   繁体   English

UnsatisfiedLinkError-本机库-jnidispatch.dll

[英]UnsatisfiedLinkError - Native Library - jnidispatch.dll

I have a problem using waffle and tomcat 7 to enable login via windows authentication. 我在使用waffle和tomcat 7启用通过Windows身份验证登录时遇到问题。

Everything is working fine but everytime I deploy the application, I get this error: 一切正常,但是每次部署应用程序时,都会出现此错误:

java.lang.UnsatisfiedLinkError: Native Library C:\Program Files    (x86)\Apache Software Foundation\Tomcat 7.0\work\Catalina\localhost\seedInventory\loader\com\sun\jna\win32-x86\jnidispatch.dll already loaded in another classloader

When I restart tomcat, it started working again. 当我重新启动tomcat时,它再次开始工作。 However, I want to be able to deploy the application without restarting. 但是,我希望能够在不重新启动的情况下部署应用程序。

I see that this file jnidispatch.dll is still being used even after the undeploy and I can't delete it manually. 我看到该文件jnidispatch.dll甚至在取消部署后仍在使用,我无法手动删除它。

What could I do? 我能做什么?

Take a look at Apache Tomcat HowTo section about classloader problems when using JNI under Tomcat. 查看有关在Tomcat下使用JNI时类加载器问题的Apache Tomcat HowTo部分。 It says, that: 它说:

The important thing to know about using JNI under Tomcat is that one cannot place the native libraries OR their JNI interfaces under the WEB-INF/lib or WEB-INF/classes directories of a web application and expect to be able to reload the webapp without restarting the server. 在Tomcat下使用JNI时要了解的重要一点是,不能将本机库或其JNI接口放置在Web应用程序的WEB-INF / lib或WEB-INF / classes目录下,并且期望能够在不加载WebApp的情况下重新加载Webapp重新启动服务器。

So, it seems, that some of your libraries contains a native jnidispatch.dll lib, which you should move out of jar or war into Tomcat's lib folder, to make it possible to redeploy you application. 因此,似乎您的某些库包含本机jnidispatch.dll lib,您应该将其移出jar或war进入Tomcat的lib文件夹,以便可以重新部署应用程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 gluonfx 编译为本机后,在资源路径中找不到 jnidispatch.dll - jnidispatch.dll not found in resource path after compile to native with gluonfx 在资源路径中找不到线程“主” java.lang.UnsatisfiedLinkError中的异常:jnidispatch(/ com / sun /jna/win32-x86/jnidispatch.dll) - Exception in thread “main” java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun /jna/win32-x86/jnidispatch.dll) not found in resource path UnsatisfiedLinkError:本机库sunmscapi.dll已在另一个类加载器中加载 - UnsatisfiedLinkError: Native Library sunmscapi.dll already loaded in another classloader 加载本机库时出现UnsatisfiedLinkError - UnsatisfiedLinkError while loading native library java.lang.UnsatisfiedLinkError:本地库{____。dll}已经加载到另一个类加载器中 - java.lang.UnsatisfiedLinkError: Native Library {____.dll} already loaded in another classloader java.lang.UnsatisfiedLinkError:Native Library sqljdbc_auth.dll已经加载到另一个类加载器中 - java.lang.UnsatisfiedLinkError: Native Library sqljdbc_auth.dll already loaded in another classloader java.lang.UnsatisfiedLinkError:本机库:{…} .dll已在另一个类加载器中加载 - java.lang.UnsatisfiedLinkError: Native Library: {…}.dll already loaded in another class loader 出现错误:java.lang.UnsatisfiedLinkError:本机库C:\\ opencv \\ build \\ java \\ x64 \\ opencv_java300.dll - getting error : java.lang.UnsatisfiedLinkError: Native Library C:\opencv\build\java\x64\opencv_java300.dll java Opencv unsatisfiedLinkError,本地库被加载 - java Opencv unsatisfiedLinkError, native Library is loaded Android java.lang.UnsatisfiedLinkError与本机库 - Android java.lang.UnsatisfiedLinkError with native library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM