需要维护别人写的一个WEB项目,还原数据库,从SVN中检出源码,运行,提示如下错误:
5526 [localhost-startStop-1] DEBUG Sigar - no sigar-amd64-winnt.dll in java.library.path
org.hyperic.sigar.SigarException: no sigar-amd64-winnt.dll in java.library.path
at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:172)
at org.hyperic.sigar.Sigar.<clinit>(Sigar.java:100)
at com.lepord.machine.impl.netSeries.NetSeriesMachineNo.getMACArray(NetSeriesMachineNo.java:24)
at com.lepord.machine.impl.netSeries.NetSeriesMachineNo.getMachineNo(NetSeriesMachineNo.java:59)
at com.anche.register.Srv_register.checkLic(Srv_register.java:74)
at com.anche.register.Srv_register.contextInitialized(Srv_register.java:137)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
解决:
参考:http://blog.163.com/lmx5257%40126/blog/static/134642902201472872412938/