The APR based Apache Tomcat Native library which allows optimal performance in production ...解决方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a944750471/article/details/82118283

在安装好jdk与tomcat之后,会在tomcat启动log信息里提示:

27-Aug-2018 08:59:49.191 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]

tar.gz版本的tomcat不会安装好apr,需要单独编译安装。

http://apr.apache.org/

去这里下载

丢到服务器上面去
解压,安装

tar -zxvf apr-1.6.3.tar.gz

进入解压后的目录

./configure && make && make install

去tomcat的bin目录下,解压tomcat-native.tar.gz

tar -zxvf tomcat-native.tar.gz

去刚才解压好的目录下的native中

cd apache-tomcat-8.5.33/bin/tomcat-native-1.2.17-src/native/

./configure --with-apr=/usr/local/apr --with-java-home=$JAVA_HOME

make && make install

修改环境变量

vim /etc/profile

在最后增加

export LD_LIBRARY_PATH=/usr/local/apr/lib

最后输入以下命令使刚才添加的内容生效

source /etc/profile

 

如果没有配置SSL相关参数,并且开启了SSL,启动时会发生org.apache.tomcat.jni.Error: 70023: This function has not been implemented on this platform异常: 

如果不想启用SSL,将server.xml中apr模式下ssl关闭即可:

<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />

将SSLEngine的值从on改成off即可:

<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off" />

 

 

展开阅读全文

The APR based Apache Tomcat Native library which allows optimal performance in

05-06

2011-5-6 13:13:05 org.apache.catalina.core.AprLifecycleListener initrn信息: 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\jdk1.6.0_10\bin;C:\JavaEE\Tomact\apache-tomcat-6.0.16\binrn2011-5-6 13:13:05 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-5-6 13:13:05 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 353 msrn2011-5-6 13:13:05 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-5-6 13:13:05 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.16rn2011-5-6 13:13:05 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.rn2011-5-6 13:13:05 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.rn2011-5-6 13:13:05 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2011-5-6 13:13:05 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2011-5-6 13:13:08 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rnrn按照各位高手的办法试了,,但还是没反应。。。。rnMyeclipse8.6+tomact6.Xrn请求好的解决方法。。 论坛

The Apache Tomcat Native library which allows optimal performance in production

12-18

2009-12-18 19:09:55 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the rnrnjava.library.path: C:\Program Files\Java\jdk1.6.0_16\jre\bin;C:\Tomcat 6.0\binrn2009-12-18 19:09:57 org.apache.coyote.http11.Http11Protocol initrn严重: Error initializing endpointrnjava.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)rn at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:504)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:524)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)rn2009-12-18 19:09:57 org.apache.catalina.startup.Catalina loadrn严重: Catalina.startrnLifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:504)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:524)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)rn2009-12-18 19:09:57 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 2797 msrn2009-12-18 19:09:57 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2009-12-18 19:09:57 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.10rn2009-12-18 19:10:00 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2009-12-18 19:10:00 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2009-12-18 19:10:01 org.apache.coyote.http11.Http11Protocol startrn严重: Error starting endpointrnjava.net.BindException: Address already in use: JVM_Bind:8080rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)rn at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:513)rn at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:202)rn at org.apache.catalina.connector.Connector.start(Connector.java:1132)rn at org.apache.catalina.core.StandardService.start(StandardService.java:457)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-12-18 19:10:01 org.apache.catalina.startup.Catalina startrn严重: Catalina.start: rnLifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already rnrnin use: JVM_Bind:8080rn at org.apache.catalina.connector.Connector.start(Connector.java:1139)rn at org.apache.catalina.core.StandardService.start(StandardService.java:457)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-12-18 19:10:01 org.apache.catalina.startup.Catalina startrn信息: Server startup in 4453 msrn2009-12-18 19:10:01 org.apache.catalina.core.StandardServer awaitrn严重: StandardServer.await: create[8005]: rnjava.net.BindException: Address already in use: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)rn at org.apache.catalina.startup.Catalina.await(Catalina.java:616)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:576)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn 论坛

没有更多推荐了,返回首页