2

我有一个 web 项目,当我将该项目部署到单个 tomcat 时工作正常,但是当我尝试从 Eclipse 内部运行相同的项目并且在相同的 tomcat 实例中它不工作时会引发以下异常:

 java.lang.UnsatisfiedLinkError: C:\ms4w\Apache\cgi-bin\mapscript.dll:
 The operating system cannot run %1     at
 java.lang.ClassLoader$NativeLibrary.load(Native Method)    at
 java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)  at
 java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)   at
 java.lang.Runtime.loadLibrary0(Runtime.java:823)   at
 java.lang.System.loadLibrary(System.java:1028)     at
 edu.umn.gis.mapscript.mapscriptJNI.<clinit>(mapscriptJNI.java:26)  at
 edu.umn.gis.mapscript.mapObj.<init>(mapObj.java:283)   at
 GISExtension.GISRequest.createMapInfo(GISRequest.java:193)     at
 GISExtension.GISRequest.doPost(GISRequest.java:166)    at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:637)   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:662)

上述异常的Java代码是:

String  library = System.getProperty("mapserver.library.name", "mapscript");
System.loadLibrary(library);

谁能帮我解决上述异常?

4

0 回答 0