tomcat-启动Tomcat时出现警告: The APR based Apache...

问题描述

启动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位的试试

时间: 2025-01-21 15:42:43

tomcat-启动Tomcat时出现警告: The APR based Apache...的相关文章

The APR based Apache Tomcat Native library which allows optimal performance in production 问题的解决

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:XXXX 出现原因分析: Tomcat建议使用apache的apr,来更好的运行Tomcat; ------–apache的apr 的介绍 --------- APR(Apache portable Run-

DRP问题集结(三)--- The APR based Apache Tomcat Native library which allows optimal performance in product

             问题一:  Tomcat无法启动,报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory           问题二:[Error]JavaWeb: 严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]           问题三:The APR based Apa

ubuntu 10.4 The APR based Apache Tomcat not found

问题描述 The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/lonso/java/jdk/jre/lib/i386/server:/home/lonso/java/jdk/jre/lib/i386:/home/lonso/java/jdk/jre/..

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

十二月 14, 2012 7:57:03 下午 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bi

apache+tomcat 启动tomcat 报错 求大神赐教

问题描述 apache+tomcat 启动tomcat 报错 求大神赐教 解决方案 看看org.apache.catalina.filters.CsrfPreventionFilter.jar有没有正确部署. 解决方案二: CsrfPreventionFilter.jar 这个包没有安装吧

ssh-SpringMVC+Spring+Hibernate 启动tomcat时出现这个错误怎么解决

问题描述 SpringMVC+Spring+Hibernate 启动tomcat时出现这个错误怎么解决 2012-10-24 11:45:22 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the

启动tomcat时,控制如何台输出自定义消息?

问题描述 今天在公司安装myeclipse和tomcat遇到一个奇怪的问题,当我将安装好的myeclipse和tomcat配置好之后,我启动tomcat服务器,发现控制台输出如下信息:[color=red]2011-10-19 10:05:52 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'de

spring mvc-springmvc+mybatis tomcat加载时出错,JUNIT测试通过

问题描述 springmvc+mybatis tomcat加载时出错,JUNIT测试通过 springmvc+mybatis tomcat加载时出错,JUNIT测试通过,就是tomcat起不来,请各位大神帮帮忙 十月 25, 2015 6:18:41 下午 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath 十月 25

Struts2初次配置启动tomcat出错

问题描述 开发环境:Eclipse Java EE IDE for Web Developers.Version: Helios Service Release 1Build id: 20100917-0705Tomcat 6.x log:2011-1-6 0:04:30 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context