You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Zigarelli, Michael" <mz...@messiah.edu> on 2017/01/25 22:11:16 UTC

Problems with tomcat 9 http/2 configuration

Hi,


I am unable to configure tomcat 9.0.0.M17 for http/2 support. My connector for port 8443 has been uncommented and the necessary certificates were added to it. I am receiving this error when I start my tomcat: Jan 25, 2017 4:28:21 PM org.apache.catalina.util.LifecycleBase handleSubClassException

SEVERE: Failed to initialize component [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]

org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available

at org.apache.catalina.connector.Connector.initInternal(Connector.java:924)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:530)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

at org.apache.catalina.startup.Catalina.load(Catalina.java:606)

at org.apache.catalina.startup.Catalina.load(Catalina.java:629)

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:311)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)

I am using eclipse to run my tomcat server. I have the APR library installed on my computer (Mac OS). I have added a VM argument in the run configurations of the server: -Djava.library.path="Path/to/lib" and the environmental variable LD_LIBRARY_PATH set to /usr/local/apr/lib. I am not sure what else to do here.



Re: Problems with tomcat 9 http/2 configuration

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 1/25/17 5:14 PM, Mark Thomas wrote:
> On 25/01/2017 22:11, Zigarelli, Michael wrote:
>> Hi,
>> 
>> 
>> I am unable to configure tomcat 9.0.0.M17 for http/2 support. My
>> connector for port 8443 has been uncommented and the necessary
>> certificates were added to it. I am receiving this error when I
>> start my tomcat: Jan 25, 2017 4:28:21 PM
>> org.apache.catalina.util.LifecycleBase handleSubClassException
>> 
>> SEVERE: Failed to initialize component
>> [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]
>> 
>> org.apache.catalina.LifecycleException: The configured protocol
>> [org.apache.coyote.http11.Http11AprProtocol] requires the
>> APR/native library which is not available
> 
> This means the APR/native Tomcat connector - not the standard APR
> library.

Specifically, libtcnative.so.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYimcbAAoJEBzwKT+lPKRYzZoP/jtD0T/v067XeCIja6D8WM//
3Bkv6TW8PuKh4dPa+hKv63Z9tLJC//nuUWQdcCt6gdX6fmkvXApgFgos10iwT4vV
whbaolNK3dQhcvoLbu6WIbLipEXJuNygvS7BqKQBPSIqgtt696L93EscfMUd2SMH
VjspVJsZIZ3DPXgiy3lw7ACZ1iFsDWHBCncllgSNUq8r5QtlAYxchhGCOdYT039h
C4jGHmcTpSJGEVEMS6462+GiUaEZB+BIR35zd/YglvzW6jKIacVy2CJ3wTl9Axhm
mx1+laqim70asjWJ3YkgNSbh5graE3KJn7w8EfjZ1NtfZdcpXrzndqiFn6YY5lLj
q3fY5W6H9GVG+2JIdRPV/xqY5mrOzgHxj9EB7wkTdh1WKTZxreH8CbZgMxtcp+Yh
NFmJDx5goxNh5WfvB40sdIpwnYJikzEoUaYs6e9so5dPZGlGWm1p7AYbU+2Qnik8
dReU1hnycAuRjFWUhgiDnO3GIipVnJRH8nufqHSGyHTRhFKl65camA6D0N6HQ4KZ
RBpmNymvAbxAtJq5yyWSIOOPMa9T9MOBn4/oyk/R0PPyt/XxzPIair+xA8LuHWwI
6W1wOcDc1Q9IadCwlxwklGUaaBBq7NQh9mDZiNqMS2C+tkCecWaznr6DFKQzTM5v
jvIgDK7xDU46joDl3tP+
=SMyx
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problems with tomcat 9 http/2 configuration

Posted by Mark Thomas <ma...@apache.org>.
On 25/01/2017 22:11, Zigarelli, Michael wrote:
> Hi,
> 
> 
> I am unable to configure tomcat 9.0.0.M17 for http/2 support. My connector for port 8443 has been uncommented and the necessary certificates were added to it. I am receiving this error when I start my tomcat: Jan 25, 2017 4:28:21 PM org.apache.catalina.util.LifecycleBase handleSubClassException
> 
> SEVERE: Failed to initialize component [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]
> 
> org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available

This means the APR/native Tomcat connector - not the standard APR library.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org