You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2023/10/12 22:05:25 UTC
[Bug 67722] New: Tomcat 10 Http11AprProtocol Protocol handler instantiation failed
https://bz.apache.org/bugzilla/show_bug.cgi?id=67722
Bug ID: 67722
Summary: Tomcat 10 Http11AprProtocol Protocol handler
instantiation failed
Product: APR
Version: HEAD
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: APR
Assignee: bugs@apr.apache.org
Reporter: marcelosmbr@gmail.com
Target Milestone: ---
Created attachment 39122
--> https://bz.apache.org/bugzilla/attachment.cgi?id=39122&action=edit
apache tomcat catalina log
--Platform:
1. Windows Server 2022
2. Tomcat 10.1.14
3. APR 2.0.6 64-bits - tomcat-native-2.0.6-openssl-3.0.11-win32-bin.zip
4. OpenJDK 21.35 openjdk-21+35_windows-x64_bin.zip
https://jdk.java.net/java-se-ri/21
--A. Http11AprProtocol
server.xml
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" />
<Connector port="443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" >
<!-- <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"
/> -->
<SSLHostConfig>
<Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
certificateFile="conf/localhost-rsa-cert.pem"
type="RSA" />
</SSLHostConfig>
</Connector>
--Problem:
--Windows Service Tomcat10 fails to start
--C:\Program Files\Apache Software Foundation\Tomcat
10.1\logs\catalina.2023-10-12.log
...
12-Oct-2023 14:43:31.574 SEVERE [main]
org.apache.catalina.connector.Connector.<init> Protocol handler instantiation
failed
...
Caused by: java.lang.NullPointerException: Cannot invoke
"org.apache.coyote.ProtocolHandler.addSslHostConfig(org.apache.tomcat.util.net.SSLHostConfig)"
because "this.protocolHandler" is null
...
12-Oct-2023 14:42:21.090 WARNING [main]
org.apache.catalina.startup.Catalina.parseServerXml Unable to load server
configuration from [C:\Program Files\Apache Software Foundation\Tomcat
10.1\conf\server.xml]
org.xml.sax.SAXParseException; systemId:
file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%2010.1/conf/server.xml;
lineNumber: 130; columnNumber: 25; Error at line [130] column [25]: [Cannot
invoke
"org.apache.coyote.ProtocolHandler.addSslHostConfig(org.apache.tomcat.util.net.SSLHostConfig)"
because "this.protocolHandler" is null]
at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:1953)
--B. Workaround:
--change "Http11AprProtocol" to "Http11NioProtocol"
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
certificateFile="conf/localhost-rsa-cert.pem"
type="RSA" />
</SSLHostConfig>
</Connector>
--C:\Program Files\Apache Software Foundation\Tomcat
10.1\logs\catalina.2023-10-12.log
...
12-Oct-2023 14:56:33.249 INFO [main]
org.apache.tomcat.util.net.AbstractEndpoint.logCertificate Connector
[https-openssl-nio-443], TLS virtual host [_default_], certificate type [RSA]
configured from key [conf/localhost-rsa-key.pem], certificate
[conf/localhost-rsa-cert.pem] and certificate chain [null] with trust store
[null]
12-Oct-2023 14:56:33.249 INFO [main] org.apache.catalina.startup.Catalina.load
Server initialization in [1125] milliseconds
...
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
[Bug 67722] Tomcat 10 Http11AprProtocol Protocol handler instantiation failed
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=67722
Ruediger Pluem <rp...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |------
OS| |All
Product|APR |Tomcat 10
Assignee|bugs@apr.apache.org |dev@tomcat.apache.org
Component|APR |Connectors
Version|HEAD |10.0.0
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org