问题描述
- 启动Tomcat时出现警告: The APR based Apache...
-
一月 04, 2016 10:42:32 上午 org.apache.catalina.core.AprLifecycleListener init警告: The APR based Apache Tomcat Native library failed to load. The error reported was [D:apache-tomcat-7.0.67in cnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform]
java.lang.UnsatisfiedLinkError: D:apache-tomcat-7.0.67in cnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1855)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.apache.tomcat.jni.Library.(Library.java:42)
at org.apache.tomcat.jni.Library.initialize(Library.java:178)
at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:201)
at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:109)
at org.apache.catalina.connector.Connector.setProtocol(Connector.java:592)
at org.apache.catalina.connector.Connector.(Connector.java:66)
at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1282)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
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:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
at org.apache.catalina.startup.Catalina.load(Catalina.java:616)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.67
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Dec 7 2015 13:07:11 UTC
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.67.0
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 8.1
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.3
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: x86
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:javajdk8.0jre
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_45-b14
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:apache-tomcat-7.0.67
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:apache-tomcat-7.0.67
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:7694
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:apache-tomcat-7.0.67
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:apache-tomcat-7.0.67
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:apache-tomcat-7.0.67/common/endorsed
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=D:apache-tomcat-7.0.67 emp
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.library.path=D:javajdk8.0jrein;D:apache-tomcat-7.0.67in
一月 04, 2016 10:42:33 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dsun.io.useCanonCaches=false
一月 04, 2016 10:42:34 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
一月 04, 2016 10:42:34 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
一月 04, 2016 10:42:34 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2676 ms
一月 04, 2016 10:42:34 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
一月 04, 2016 10:42:34 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.67
一月 04, 2016 10:42:34 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:apache-tomcat-7.0.67webappsDemo
一月 04, 2016 10:42:34 上午 org.apache.catalina.deploy.WebXml setVersion
警告: Unknown version string [3.1]. Default version will be used.
一月 04, 2016 10:42:35 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [107] milliseconds.
一月 04, 2016 10:42:35 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:apache-tomcat-7.0.67webappsDemo has finished in 1,274 ms
一月 04, 2016 10:42:35 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:apache-tomcat-7.0.67webappsdocs
一月 04, 2016 10:42:35 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:apache-tomcat-7.0.67webappsdocs has finished in 77 ms
一月 04, 2016 10:42:35 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:apache-tomcat-7.0.67webappsexamples
一月 04, 2016 10:42:36 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
一月 04, 2016 10:42:36 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
一月 04, 2016 10:42:36 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@18b35d6')
一月 04, 2016 10:42:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:apache-tomcat-7.0.67webappsexamples has finished in 1,073 ms
一月 04, 2016 10:42:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:apache-tomcat-7.0.67webappshost-manager
一月 04, 2016 10:42:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:apache-tomcat-7.0.67webappshost-manager has finished in 83 ms
一月 04, 2016 10:42:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:apache-tomcat-7.0.67webappsmanager
一月 04, 2016 10:42:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:apache-tomcat-7.0.67webappsmanager has finished in 62 ms
一月 04, 2016 10:42:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:apache-tomcat-7.0.67webappsROOT
一月 04, 2016 10:42:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:apache-tomcat-7.0.67webappsROOT has finished in 47 ms
一月 04, 2016 10:42:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:apache-tomcat-7.0.67webappsServletRequest
一月 04, 2016 10:42:37 上午 org.apache.catalina.deploy.WebXml setVersion
警告: Unknown version string [3.1]. Default version will be used.
一月 04, 2016 10:42:37 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:apache-tomcat-7.0.67webappsServletRequest has finished in 388 ms
一月 04, 2016 10:42:37 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
一月 04, 2016 10:42:37 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
一月 04, 2016 10:42:37 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3097 ms
解决方案
Tomcat 启动报错The APR based Apache Tomcat Native l...
Tomcat 启动报错The APR based Apache Tomcat Native l...
转:Tomcat 启动报错The APR based Apache Tomcat Native l...
解决方案二:
可能输你用的应该用的是64位的,而你系统是32位的,你下个32位的试试