tomcat注册成服务调用不到sigar的dll
十一月 14, 2018 2:48:40 下午 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [mvc] in context with path [/scs] threw exception [Handler processing failed; nested exception is java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getNetInterfaceList()[Ljava/lang/String;] with root cause
java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getNetInterfaceList()[Ljava/lang/String;
at org.hyperic.sigar.Sigar.getNetInterfaceList(Native Method)
at com.nuctech.datacomm.service.ServerStatusService.getData(ServerStatusService.java:167)
at com.nuctech.datacomm.service.ServerStatusService$$FastClassBySpringCGLIB$$df928a78.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
[b]tomcat注册成服务调用不到sigar的dll,,,
直接用startup.bat启动tomcat是可以调用dll的,在eclipse下运行也好使,也可以调用dll,但是在tomcat注册成windows系统服务后调用一个文件dll文件就不好使了[/b][b][/b]