zoukankan      html  css  js  c++  java
  • 解决Tomcat: Can't load IA 32-bit .dll on a AMD 64-bit platform 问题

    错误如下:

    java.lang.UnsatisfiedLinkError: E:Program FilesMyEclipse 10apache-tomcat-7.0.23in	cnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform  
      
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)  
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)  
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)  
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)  
        at java.lang.System.loadLibrary(System.java:1030)  
        at org.apache.tomcat.jni.Library.<init>(Library.java:42)  
        at org.apache.tomcat.jni.Library.initialize(Library.java:174)  
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
        at java.lang.reflect.Method.invoke(Method.java:597)  
        at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:179)  
        at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:84)  
        at org.apache.catalina.connector.Connector.setProtocol(Connector.java:567)  
        at org.apache.catalina.connector.Connector.<init>(Connector.java:69)  
        at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)  
        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)  
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)  
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)  
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)  
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)  
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)  
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)  
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)  
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)  
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)  
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)  
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)  
        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)  
      
        at org.apache.catalina.startup.Catalina.load(Catalina.java:555)  
        at org.apache.catalina.startup.Catalina.load(Catalina.java:598)  
      
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
        at java.lang.reflect.Method.invoke(Method.java:597)  
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)  
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)  
    2013-3-29 13:18:09 org.apache.catalina.core.AprLifecycleListener init  
    

      问题所在:
        主要是在64位的系统下安装的虚拟机是64位的,而WTK的sublime.dll不能在64位的平台下加载64位的虚拟机,只能加载32位的。由于WTK在安装的时候加载的64虚拟机的地址,它找到的是64位的虚拟机,所以它提示不能加载32位的虚拟机(在目录下没有32的虚拟机)

      解决办法:

        下载64位文件,地址:http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.2.10/binaries/

    然后将x64文件夹下的文件复制到tomcat的bin文件夹下:

    然后启动服务器,成功启动,没有错误!

  • 相关阅读:
    参考教程 python 手动搭建ANN,并进行具体实现
    ubuntu18.04 ssh 问题
    Ubuntu18.04 启动后进不了界面 [ failed command: READ DMA ]
    Emacs 使用 markdown 模式
    linux 下 Emacs dired 模式 隐藏 dot file ".filename" 文件
    Ubuntu 16.04 安装后(使用旧的用户目录)登陆不进去
    AWS-SS配置过程
    Jupyter-notebook 导出时不显示Input[]代码
    [网络流24题] 方格取数问题 (最大权独立集---网络最小割)
    [网络流24题] 最长递增子序列 (最多不相交路径---网络最大流)
  • 原文地址:https://www.cnblogs.com/wqh17/p/6370089.html
Copyright © 2011-2022 走看看