Resolves Tomcat:can ' t load IA 32-bit. dll on a AMD 64-bit platform problem

Source: Internet
Author: User

from:http://blog.csdn.net/xiaokui_wingfly/article/details/8736142


View Original: http://www.ibloger.net/article/310.html


The error is as follows:[Java] View Plain copy print? Java.lang.unsatisfiedlinkerror: e:\program files\myeclipse 10\apache-tomcat-7.0.23\bin\ Tcnative-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)     &NBSP;&NBSP;&NBSP; 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 &NBSP;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  
The problem lies in:
The virtual machines installed in the 64-bit system are 64-bit, while the WTK Sublime.dll cannot load 64-bit virtual machines under 64-bit platforms and can only load 32-bit. Because of the address of the 64 virtual machine that WTK loaded at the time of installation, it found a 64-bit virtual machine, so it was prompted not to load 32-bit virtual machines (no 32 virtual machines in the directory)


Download the 32bit from http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.1.20/binaries/to replacement

Update changes when downloading, download the most recent can http://www.apache.org/dist/tomcat/tomcat-connectors/native/


The following figure



OK Problem Resolution

[Java] View Plain copy print? 2013-3-29 13:22:45 org.apache.catalina.core.aprlifecyclelistener init   Information:  loaded apr based apache tomcat native library 1.1.27.   2013-3-29  13:22:45 org.apache.catalina.core.AprLifecycleListener init   Information: apr  capabilities: ipv6 [true], sendfile [true], accept filters [false],  random [true].   2013-3-29 13:22:47 org.apache.coyote.abstractprotocol init    Information:  initializing protocolhandler ["http-apr-8080"]   2013-3-29 13:22:47  org.apache.coyote.AbstractProtocol init   Information: initializing protocolhandler  ["ajp-apr-8009"]   2013-3-29 13:22:47 org.apache.catalina.startup.catalina load    Information: initialization processed in 2088 ms   2013-3-29 13:22:47 org.apache.catalina.core.standardservice startinternal   Information:  Starting service  Catalina   2013-3-29 13:22:47 org.apache.catalina.core.standardengine  startinternal   Information: starting servlet engine: apache tomcat/7.0.23    2013-3-29 13:22:47 org.apache.catalina.startup.hostconfig deploydirectory   Information:  deploying web application directory e:\program files\myeclipse 10\ apache-tomcat-7.0.23\webapps\docs   2013-3-29 13:22:47  org.apache.catalina.startup.hostconfig deploydirectory   Information: deploying web  Application directory e:\program files\myeclipse 10\apache-tomcat-7.0.23\webapps\examples    2013-3-29 13:22:48 org.apache.catalina.core.applicationcontext log   Information:  contextlistener: contextinitialized ()    2013-3-29 13:22:48 org.apache.catalina.core.applicationcontext log   Information:  SessionListener:  contextinitialized ()    2013-3-29 13:22:48 org.apache.catalina.core.applicationcontext  log   Information:  contextlistener: attributeadded (' Org.apache.jasper.compiler.TldLocationsCache ',  ' org.apache.jasper.compiler.tldlocationscache@4402a6ff ')    2013-3-29 13:22:48 org.apache.catalina.startup.hostconfig deploydirectory    Information:  deploying web application directory e:\program files\myeclipse 10 \apache-tomcat-7.0.23\webapps\host-manager   2013-3-29 13:22:48  org.apache.catalina.startup.hostconfig deploydirectory   Information: deploying web  Application directory e:\program files\myeclipse 10\apache-tomcat-7.0.23\webapps\manager    2013-3-29 13:22:48 org.apache.catalina.startup.hostconfig deploydirectory   Information: deploying web application directory e:\program  files\myeclipse 10\apache-tomcat-7.0.23\webapps\root   2013-3-29 13:22:48  org.apache.coyote.abstractprotocol start   Information:  starting protocolhandler [" http-apr-8080 "]   2013-3-29 13:22:48 org.apache.coyote.abstractprotocol start    Information:  starting protocolhandler ["ajp-apr-8009"]   2013-3-29 13:22:48  org.apache.catalina.startup.catalina start   Information:  server startup in 1261  ms 







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.