Java Web Project无法从Eclipse内部执行DLL文件

时间:2013-06-11 09:13:05

标签: java eclipse tomcat mapserver

我有一个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);

任何人都可以帮我解决上述异常吗?

0 个答案:

没有答案