Unable to start Tomcat 10.0.4

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to start Tomcat 10.0.4

dkumar
Dear All,

Unable to start tomcat 10.0.4 and getting error Failed to initialize
component.
/conf/server.xml configuration as below.

        <Connector port="80" maxHttpHeaderSize="8192"  maxThreads="150"
minSpareThreads="25" enableLookups="false" redirectPort="443"
acceptCount="100"
                   connectionTimeout="302000" disableUploadTimeout="true"
compression="on" compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
 
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
 server=" " />

        <Connector protocol ="org.apache.coyote.http11.Http11NioProtocol"
port="443" maxHttpHeaderSize="8192" maxThreads="150"
                                minSpareThreads="25" enableLookups="false"
disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true"
                                clientAuth="false" sslProtocol="TLS"
sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
allowUnsafeLegacyRenegotiation="false"
 ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
                                keystoreFile="/conf/eNotice.key"
keystorePass="eNotice@1" server=" " />


Getting below error in catalina log

Server version name:   Apache Tomcat/10.0.4
Server built:          Mar 5 2021 11:07:15 UTC
Server version number: 10.0.4.0
OS Name:               Windows 10
OS Version:            10.0
Architecture:          x86
Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_271\jre
JVM Version:           1.8.0_271-b09
JVM Vendor:            Oracle Corporation
CATALINA_BASE:         D:\apache-tomcat-10.0.4
CATALINA_HOME:         D:\apache-tomcat-10.0.4
Command line argument:
-Djava.util.logging.config.file=D:\apache-tomcat-10.0.4\conf\logging.properties
Command line argument:
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
Command line argument:
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources
Command line argument: -Dignore.endorsed.dirs=
Command line argument: -Dcatalina.base=D:\apache-tomcat-10.0.4
Command line argument: -Dcatalina.home=D:\apache-tomcat-10.0.4
Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-10.0.4\temp
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache
Tomcat Native library [1.2.26] using APR version [1.7.0].
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
capabilities: IPv6 [true], sendfile [true], accept filters [false], random
[true], UDS [true].
org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["http-nio-80"]
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
initialize component [Connector[null-80]]
        org.apache.catalina.LifecycleException: Protocol handler
initialization failed
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.startup.Catalina.load(Catalina.java:747)
                at
org.apache.catalina.startup.Catalina.load(Catalina.java:769)
                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:498)
                at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
                at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
        Caused by: java.net.BindException: Address already in use: bind
                at sun.nio.ch.Net.bind0(Native Method)
                at sun.nio.ch.Net.bind(Net.java:444)
                at sun.nio.ch.Net.bind(Net.java:436)
                at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
                at
org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:243)
                at
org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:198)
                at
org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
                at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1188)
                at
org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
                at
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
                ... 13 more
16-Mar-2021 16:45:44.717 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["https-openssl-nio-443"]
16-Mar-2021 16:45:44.723 SEVERE [main]
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
initialize component
[Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
        org.apache.catalina.LifecycleException: Protocol handler
initialization failed
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)

Thanks & Regards
Deepak Kumar

"Disclaimer and confidentiality clause -
 This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
The message may contain information that is confidential and subject to legal privilege.
Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
 If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
 CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

Robert Turner
It's saying port 80 is already in use. Make sure another process (like IIS)
isn't using the port already, or change your configuration to a different
port.

You can use 'netstat' (with options) to determine which process is using
the port already.

On Tue., Mar. 16, 2021, 07:36 , <[hidden email]> wrote:

> Dear All,
>
> Unable to start tomcat 10.0.4 and getting error Failed to initialize
> component.
> /conf/server.xml configuration as below.
>
>         <Connector port="80" maxHttpHeaderSize="8192"  maxThreads="150"
> minSpareThreads="25" enableLookups="false" redirectPort="443"
> acceptCount="100"
>                    connectionTimeout="302000" disableUploadTimeout="true"
> compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
>
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
>
>  server=" " />
>
>         <Connector protocol ="org.apache.coyote.http11.Http11NioProtocol"
> port="443" maxHttpHeaderSize="8192" maxThreads="150"
>                                 minSpareThreads="25" enableLookups="false"
> disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true"
>                                 clientAuth="false" sslProtocol="TLS"
> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> allowUnsafeLegacyRenegotiation="false"
>  ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>                                 keystoreFile="/conf/eNotice.key"
> keystorePass="eNotice@1" server=" " />
>
>
> Getting below error in catalina log
>
> Server version name:   Apache Tomcat/10.0.4
> Server built:          Mar 5 2021 11:07:15 UTC
> Server version number: 10.0.4.0
> OS Name:               Windows 10
> OS Version:            10.0
> Architecture:          x86
> Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> JVM Version:           1.8.0_271-b09
> JVM Vendor:            Oracle Corporation
> CATALINA_BASE:         D:\apache-tomcat-10.0.4
> CATALINA_HOME:         D:\apache-tomcat-10.0.4
> Command line argument:
>
> -Djava.util.logging.config.file=D:\apache-tomcat-10.0.4\conf\logging.properties
> Command line argument:
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
> Command line argument:
> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> Command line argument: -Dignore.endorsed.dirs=
> Command line argument: -Dcatalina.base=D:\apache-tomcat-10.0.4
> Command line argument: -Dcatalina.home=D:\apache-tomcat-10.0.4
> Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-10.0.4\temp
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache
> Tomcat Native library [1.2.26] using APR version [1.7.0].
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> capabilities: IPv6 [true], sendfile [true], accept filters [false], random
> [true], UDS [true].
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-80"]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component [Connector[null-80]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
>                 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:498)
>                 at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
>                 at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
>         Caused by: java.net.BindException: Address already in use: bind
>                 at sun.nio.ch.Net.bind0(Native Method)
>                 at sun.nio.ch.Net.bind(Net.java:444)
>                 at sun.nio.ch.Net.bind(Net.java:436)
>                 at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
>                 at
> org.apache.tomcat.util.net
> .NioEndpoint.initServerSocket(NioEndpoint.java:243)
>                 at
> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:198)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
>                 at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
>                 at
>
> org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
>                 ... 13 more
> 16-Mar-2021 16:45:44.717 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-443"]
> 16-Mar-2021 16:45:44.723 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>
> Thanks & Regards
> Deepak Kumar
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL OR
> ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> original addressee only.
> The message may contain information that is confidential and subject to
> legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the message and copies thereof and any
> attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby
> notified that you must not disseminate, copy, use, distribute, or take any
> action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been
> maintained nor that it is free of errors, viruses, interception and/or
> interference.
> CCIL is not liable whatsoever for loss or damage resulting from the
> opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments."
>
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

Maxim Solodovnik
In reply to this post by dkumar
You already have some service listening on port 80 (IIS maybe?)


from mobile (sorry for typos ;)


On Tue, Mar 16, 2021, 18:36 <[hidden email]> wrote:

> Dear All,
>
> Unable to start tomcat 10.0.4 and getting error Failed to initialize
> component.
> /conf/server.xml configuration as below.
>
>         <Connector port="80" maxHttpHeaderSize="8192"  maxThreads="150"
> minSpareThreads="25" enableLookups="false" redirectPort="443"
> acceptCount="100"
>                    connectionTimeout="302000" disableUploadTimeout="true"
> compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
>
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
>
>  server=" " />
>
>         <Connector protocol ="org.apache.coyote.http11.Http11NioProtocol"
> port="443" maxHttpHeaderSize="8192" maxThreads="150"
>                                 minSpareThreads="25" enableLookups="false"
> disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true"
>                                 clientAuth="false" sslProtocol="TLS"
> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> allowUnsafeLegacyRenegotiation="false"
>  ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>                                 keystoreFile="/conf/eNotice.key"
> keystorePass="eNotice@1" server=" " />
>
>
> Getting below error in catalina log
>
> Server version name:   Apache Tomcat/10.0.4
> Server built:          Mar 5 2021 11:07:15 UTC
> Server version number: 10.0.4.0
> OS Name:               Windows 10
> OS Version:            10.0
> Architecture:          x86
> Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> JVM Version:           1.8.0_271-b09
> JVM Vendor:            Oracle Corporation
> CATALINA_BASE:         D:\apache-tomcat-10.0.4
> CATALINA_HOME:         D:\apache-tomcat-10.0.4
> Command line argument:
>
> -Djava.util.logging.config.file=D:\apache-tomcat-10.0.4\conf\logging.properties
> Command line argument:
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
> Command line argument:
> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> Command line argument: -Dignore.endorsed.dirs=
> Command line argument: -Dcatalina.base=D:\apache-tomcat-10.0.4
> Command line argument: -Dcatalina.home=D:\apache-tomcat-10.0.4
> Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-10.0.4\temp
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache
> Tomcat Native library [1.2.26] using APR version [1.7.0].
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> capabilities: IPv6 [true], sendfile [true], accept filters [false], random
> [true], UDS [true].
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-80"]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component [Connector[null-80]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
>                 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:498)
>                 at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
>                 at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
>         Caused by: java.net.BindException: Address already in use: bind
>                 at sun.nio.ch.Net.bind0(Native Method)
>                 at sun.nio.ch.Net.bind(Net.java:444)
>                 at sun.nio.ch.Net.bind(Net.java:436)
>                 at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
>                 at
> org.apache.tomcat.util.net
> .NioEndpoint.initServerSocket(NioEndpoint.java:243)
>                 at
> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:198)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
>                 at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
>                 at
>
> org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
>                 ... 13 more
> 16-Mar-2021 16:45:44.717 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-443"]
> 16-Mar-2021 16:45:44.723 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>
> Thanks & Regards
> Deepak Kumar
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL OR
> ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> original addressee only.
> The message may contain information that is confidential and subject to
> legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the message and copies thereof and any
> attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby
> notified that you must not disseminate, copy, use, distribute, or take any
> action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been
> maintained nor that it is free of errors, viruses, interception and/or
> interference.
> CCIL is not liable whatsoever for loss or damage resulting from the
> opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments."
>
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

dkumar
You already have some service listening on port 80 (IIS maybe?)


from mobile (sorry for typos ;)

We have changed the port still getting same error

16-Mar-2021 18:09:38.299 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["http-nio-81"]
16-Mar-2021 18:09:38.363 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["https-openssl-nio-445"]
16-Mar-2021 18:09:38.364 SEVERE [main]
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
initialize component
[Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
        org.apache.catalina.LifecycleException: Protocol handler
initialization failed
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)

On Tue, Mar 16, 2021, 18:36 <[hidden email]> wrote:

> Dear All,
>
> Unable to start tomcat 10.0.4 and getting error Failed to initialize
> component.
> /conf/server.xml configuration as below.
>
>         <Connector port="80" maxHttpHeaderSize="8192"  maxThreads="150"
> minSpareThreads="25" enableLookups="false" redirectPort="443"
> acceptCount="100"
>                    connectionTimeout="302000"
disableUploadTimeout="true"
> compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
>
>
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
>
>  server=" " />
>
>         <Connector protocol
="org.apache.coyote.http11.Http11NioProtocol"
> port="443" maxHttpHeaderSize="8192" maxThreads="150"
>                                 minSpareThreads="25"
enableLookups="false"
> disableUploadTimeout="true" acceptCount="100" scheme="https"
secure="true"

>                                 clientAuth="false" sslProtocol="TLS"
> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> allowUnsafeLegacyRenegotiation="false"
>  ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>                                 keystoreFile="/conf/abc.key"
> keystorePass="changeit" server=" " />
>
>
> Getting below error in catalina log
>
> Server version name:   Apache Tomcat/10.0.4
> Server built:          Mar 5 2021 11:07:15 UTC
> Server version number: 10.0.4.0
> OS Name:               Windows 10
> OS Version:            10.0
> Architecture:          x86
> Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> JVM Version:           1.8.0_271-b09
> JVM Vendor:            Oracle Corporation
> CATALINA_BASE:         D:\apache-tomcat-10.0.4
> CATALINA_HOME:         D:\apache-tomcat-10.0.4
> Command line argument:
>
>
-Djava.util.logging.config.file=D:\apache-tomcat-10.0.4\conf\logging.properties

> Command line argument:
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
> Command line argument:
> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> Command line argument: -Dignore.endorsed.dirs=
> Command line argument: -Dcatalina.base=D:\apache-tomcat-10.0.4
> Command line argument: -Dcatalina.home=D:\apache-tomcat-10.0.4
> Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-10.0.4\temp
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded
Apache
> Tomcat Native library [1.2.26] using APR version [1.7.0].
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> capabilities: IPv6 [true], sendfile [true], accept filters [false],
random

> [true], UDS [true].
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-80"]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component [Connector[null-80]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
>
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)

>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
>                 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:498)
>                 at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
>                 at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
>         Caused by: java.net.BindException: Address already in use: bind
>                 at sun.nio.ch.Net.bind0(Native Method)
>                 at sun.nio.ch.Net.bind(Net.java:444)
>                 at sun.nio.ch.Net.bind(Net.java:436)
>                 at
>
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)

>                 at
> org.apache.tomcat.util.net
> .NioEndpoint.initServerSocket(NioEndpoint.java:243)
>                 at
> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:198)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
>                 at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
>                 at
>
>
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
>                 at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)

>                 ... 13 more
> 16-Mar-2021 16:45:44.717 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-443"]
> 16-Mar-2021 16:45:44.723 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>
> Thanks & Regards
> Deepak Kumar
>


>




"Disclaimer and confidentiality clause -
 This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
The message may contain information that is confidential and subject to legal privilege.
Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
 If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
 CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

Christopher Schultz-2
Deepak,

On 3/16/21 09:03, [hidden email] wrote:
> You already have some service listening on port 80 (IIS maybe?)
>
>
> from mobile (sorry for typos ;)
>
> We have changed the port still getting same error

Maybe you have the same port configured twice in your conf/server.xml?

Please post *all* <Connector> elements from your conf/server.xml file,
being careful to remove any secrets from your configuration.

-chris

> 16-Mar-2021 18:09:38.299 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-81"]
> 16-Mar-2021 18:09:38.363 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-445"]
> 16-Mar-2021 18:09:38.364 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
>          org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                  at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>
> On Tue, Mar 16, 2021, 18:36 <[hidden email]> wrote:
>
>> Dear All,
>>
>> Unable to start tomcat 10.0.4 and getting error Failed to initialize
>> component.
>> /conf/server.xml configuration as below.
>>
>>          <Connector port="80" maxHttpHeaderSize="8192"  maxThreads="150"
>> minSpareThreads="25" enableLookups="false" redirectPort="443"
>> acceptCount="100"
>>                     connectionTimeout="302000"
> disableUploadTimeout="true"
>> compression="on" compressionMinSize="2048"
>> noCompressionUserAgents="gozilla, traviata"
>>
>>
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
>>
>>   server=" " />
>>
>>          <Connector protocol
> ="org.apache.coyote.http11.Http11NioProtocol"
>> port="443" maxHttpHeaderSize="8192" maxThreads="150"
>>                                  minSpareThreads="25"
> enableLookups="false"
>> disableUploadTimeout="true" acceptCount="100" scheme="https"
> secure="true"
>>                                  clientAuth="false" sslProtocol="TLS"
>> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
>> allowUnsafeLegacyRenegotiation="false"
>>   ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>>                                  keystoreFile="/conf/abc.key"
>> keystorePass="changeit" server=" " />
>>
>>
>> Getting below error in catalina log
>>
>> Server version name:   Apache Tomcat/10.0.4
>> Server built:          Mar 5 2021 11:07:15 UTC
>> Server version number: 10.0.4.0
>> OS Name:               Windows 10
>> OS Version:            10.0
>> Architecture:          x86
>> Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_271\jre
>> JVM Version:           1.8.0_271-b09
>> JVM Vendor:            Oracle Corporation
>> CATALINA_BASE:         D:\apache-tomcat-10.0.4
>> CATALINA_HOME:         D:\apache-tomcat-10.0.4
>> Command line argument:
>>
>>
> -Djava.util.logging.config.file=D:\apache-tomcat-10.0.4\conf\logging.properties
>> Command line argument:
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>> Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
>> Command line argument:
>> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
>> Command line argument: -Dignore.endorsed.dirs=
>> Command line argument: -Dcatalina.base=D:\apache-tomcat-10.0.4
>> Command line argument: -Dcatalina.home=D:\apache-tomcat-10.0.4
>> Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-10.0.4\temp
>> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded
> Apache
>> Tomcat Native library [1.2.26] using APR version [1.7.0].
>> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
>> capabilities: IPv6 [true], sendfile [true], accept filters [false],
> random
>> [true], UDS [true].
>> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
>> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
>> ["http-nio-80"]
>> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
>> initialize component [Connector[null-80]]
>>          org.apache.catalina.LifecycleException: Protocol handler
>> initialization failed
>>                  at
>>
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>>                  at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>>                  at
>>
>>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>>                  at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>>                  at
>>
>>
> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
>>                  at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>>                  at
>> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
>>                  at
>> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
>>                  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:498)
>>                  at
>> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
>>                  at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
>>          Caused by: java.net.BindException: Address already in use: bind
>>                  at sun.nio.ch.Net.bind0(Native Method)
>>                  at sun.nio.ch.Net.bind(Net.java:444)
>>                  at sun.nio.ch.Net.bind(Net.java:436)
>>                  at
>>
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
>>                  at
>> org.apache.tomcat.util.net
>> .NioEndpoint.initServerSocket(NioEndpoint.java:243)
>>                  at
>> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:198)
>>                  at
>> org.apache.tomcat.util.net
>> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
>>                  at
>> org.apache.tomcat.util.net
>> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
>>                  at
>> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
>>                  at
>>
>>
> org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
>>                  at
>>
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
>>                  ... 13 more
>> 16-Mar-2021 16:45:44.717 INFO [main]
>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
>> ["https-openssl-nio-443"]
>> 16-Mar-2021 16:45:44.723 SEVERE [main]
>> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
>> initialize component
>> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
>>          org.apache.catalina.LifecycleException: Protocol handler
>> initialization failed
>>                  at
>>
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>>                  at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>>                  at
>>
>>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>>
>> Thanks & Regards
>> Deepak Kumar
>>
>
>
>>
>
>
>
>
> "Disclaimer and confidentiality clause -
>   This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
> The message may contain information that is confidential and subject to legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
>   If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
>   CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
> CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

dkumar
> Deepak,
> You already have some service listening on port 80 (IIS maybe?)
>
>
> from mobile (sorry for typos ;)
>
> We have changed the port still getting same error

> Maybe you have the same port configured twice in your conf/server.xml?

> Please post *all* <Connector> elements from your conf/server.xml file,
> being careful to remove any secrets from your configuration.

-chris
please find conf/server.xml file

<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.startup.VersionLoggerListener"
/>
  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener
className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
 factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
  <Service name="Catalina">
        <Connector port="81" maxHttpHeaderSize="8192"
                   maxThreads="150" minSpareThreads="25"
enableLookups="false" redirectPort="445" acceptCount="100"
                   connectionTimeout="302000" disableUploadTimeout="true"
compression="on" compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
 server=" " />
        <Connector protocol ="org.apache.coyote.http11.Http11NioProtocol"
port="445" maxHttpHeaderSize="8192" maxThreads="150"
                                minSpareThreads="25" enableLookups="false"
disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true"
                                clientAuth="false" sslProtocol="TLS"
sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
allowUnsafeLegacyRenegotiation="false"
 ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
                                keystoreFile="/conf/abc.key"
keystorePass="changeit" server=" " />
    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
      </Host>
    </Engine>
  </Service>
</Server>

> 16-Mar-2021 18:09:38.299 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-81"]
> 16-Mar-2021 18:09:38.363 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-445"]
> 16-Mar-2021 18:09:38.364 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
>          org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                  at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)

>
> On Tue, Mar 16, 2021, 18:36 <[hidden email]> wrote:
>
>> Dear All,
>>
>> Unable to start tomcat 10.0.4 and getting error Failed to initialize
>> component.
>> /conf/server.xml configuration as below.
>>
>>          <Connector port="80" maxHttpHeaderSize="8192" maxThreads="150"
>> minSpareThreads="25" enableLookups="false" redirectPort="443"
>> acceptCount="100"
>>                     connectionTimeout="302000"
> disableUploadTimeout="true"
>> compression="on" compressionMinSize="2048"
>> noCompressionUserAgents="gozilla, traviata"
>>
>>
>
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"

>>
>>   server=" " />
>>
>>          <Connector protocol
> ="org.apache.coyote.http11.Http11NioProtocol"
>> port="443" maxHttpHeaderSize="8192" maxThreads="150"
>>                                  minSpareThreads="25"
> enableLookups="false"
>> disableUploadTimeout="true" acceptCount="100" scheme="https"
> secure="true"
>>                                  clientAuth="false" sslProtocol="TLS"
>> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
>> allowUnsafeLegacyRenegotiation="false"
>> ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>>                                  keystoreFile="/conf/abc.key"
>> keystorePass="changeit" server=" " />
>>
>>
>> Getting below error in catalina log
>>
>> Server version name:   Apache Tomcat/10.0.4
>> Server built:          Mar 5 2021 11:07:15 UTC
>> Server version number: 10.0.4.0
>> OS Name:               Windows 10
>> OS Version:            10.0
>> Architecture:          x86
>> Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_271\jre
>> JVM Version:           1.8.0_271-b09
>> JVM Vendor:            Oracle Corporation
>> CATALINA_BASE:         D:\apache-tomcat-10.0.4
>> CATALINA_HOME:         D:\apache-tomcat-10.0.4
>> Command line argument:
>>
>>
>
-Djava.util.logging.config.file=D:\apache-tomcat-10.0.4\conf\logging.properties

>> Command line argument:
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>> Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
>> Command line argument:
>> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
>> Command line argument: -Dignore.endorsed.dirs=
>> Command line argument: -Dcatalina.base=D:\apache-tomcat-10.0.4
>> Command line argument: -Dcatalina.home=D:\apache-tomcat-10.0.4
>> Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-10.0.4\temp
>> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded
> Apache
>> Tomcat Native library [1.2.26] using APR version [1.7.0].
>> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
>> capabilities: IPv6 [true], sendfile [true], accept filters [false],
> random
>> [true], UDS [true].
>> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
>> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
>> ["http-nio-80"]
>> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
to
>> initialize component [Connector[null-80]]
>>          org.apache.catalina.LifecycleException: Protocol handler
>> initialization failed
>>                  at
>>
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>>                  at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>>                  at
>>
>>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>>                  at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>>                  at
>>
>>
>
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)

>>                  at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>>                  at
>> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
>>                  at
>> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
>>                  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:498)
>>                  at
>> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
>>                  at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
>>          Caused by: java.net.BindException: Address already in use:
bind
>>                  at sun.nio.ch.Net.bind0(Native Method)
>>                  at sun.nio.ch.Net.bind(Net.java:444)
>>                  at sun.nio.ch.Net.bind(Net.java:436)
>>                  at
>>
>
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)

>>                  at
>> org.apache.tomcat.util.net
>> .NioEndpoint.initServerSocket(NioEndpoint.java:243)
>>                  at
>> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:198)
>>                  at
>> org.apache.tomcat.util.net
>> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
>>                  at
>> org.apache.tomcat.util.net
>> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
>>                  at
>> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
>>                  at
>>
>>
>
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
>>                  at
>>
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
>>                  ... 13 more
>> 16-Mar-2021 16:45:44.717 INFO [main]
>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
>> ["https-openssl-nio-443"]
>> 16-Mar-2021 16:45:44.723 SEVERE [main]
>> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
to
>> initialize component
>> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
>>          org.apache.catalina.LifecycleException: Protocol handler
>> initialization failed
>>                  at
>>
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>>                  at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>>                  at
>>
>>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>>
>> Thanks & Regards
>> Deepak Kumar



"Disclaimer and confidentiality clause -
 This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
The message may contain information that is confidential and subject to legal privilege.
Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
 If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
 CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

Robert Turner
Your more recent exception log didn't include the "caused by" exception --
which is the actual failure details. Double-check that and make sure it's
the same issue.

Also, use netstat to confirm you aren't using the ports already. Changing
it may just find another conflict (although less likely). The first error
was quite clear about the port being unavailable.

How are you starting Tomcat? Are you somehow starting it twice?



On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:

> > Deepak,
> > You already have some service listening on port 80 (IIS maybe?)
> >
> >
> > from mobile (sorry for typos ;)
> >
> > We have changed the port still getting same error
>
> > Maybe you have the same port configured twice in your conf/server.xml?
>
> > Please post *all* <Connector> elements from your conf/server.xml file,
> > being careful to remove any secrets from your configuration.
>
> -chris
> please find conf/server.xml file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Server port="8005" shutdown="SHUTDOWN">
>   <Listener className="org.apache.catalina.startup.VersionLoggerListener"
> />
>   <Listener className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="on" />
>   <Listener
> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
>   <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
>   <Listener
> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
>   <GlobalNamingResources>
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved"
>  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>               pathname="conf/tomcat-users.xml" />
>   </GlobalNamingResources>
>   <Service name="Catalina">
>         <Connector port="81" maxHttpHeaderSize="8192"
>                    maxThreads="150" minSpareThreads="25"
> enableLookups="false" redirectPort="445" acceptCount="100"
>                    connectionTimeout="302000" disableUploadTimeout="true"
> compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
>
>  server=" " />
>         <Connector protocol ="org.apache.coyote.http11.Http11NioProtocol"
> port="445" maxHttpHeaderSize="8192" maxThreads="150"
>                                 minSpareThreads="25" enableLookups="false"
> disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true"
>                                 clientAuth="false" sslProtocol="TLS"
> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> allowUnsafeLegacyRenegotiation="false"
>  ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>                                 keystoreFile="/conf/abc.key"
> keystorePass="changeit" server=" " />
>     <Engine name="Catalina" defaultHost="localhost">
>       <Realm className="org.apache.catalina.realm.LockOutRealm">
>         <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>                resourceName="UserDatabase"/>
>       </Realm>
>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true">
>         <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs"
>                prefix="localhost_access_log" suffix=".txt"
>                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
>       </Host>
>     </Engine>
>   </Service>
> </Server>
>
> > 16-Mar-2021 18:09:38.299 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-81"]
> > 16-Mar-2021 18:09:38.363 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["https-openssl-nio-445"]
> > 16-Mar-2021 18:09:38.364 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> > initialize component
> > [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
> >          org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                  at
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >
> > On Tue, Mar 16, 2021, 18:36 <[hidden email]> wrote:
> >
> >> Dear All,
> >>
> >> Unable to start tomcat 10.0.4 and getting error Failed to initialize
> >> component.
> >> /conf/server.xml configuration as below.
> >>
> >>          <Connector port="80" maxHttpHeaderSize="8192" maxThreads="150"
> >> minSpareThreads="25" enableLookups="false" redirectPort="443"
> >> acceptCount="100"
> >>                     connectionTimeout="302000"
> > disableUploadTimeout="true"
> >> compression="on" compressionMinSize="2048"
> >> noCompressionUserAgents="gozilla, traviata"
> >>
> >>
> >
>
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
> >>
> >>   server=" " />
> >>
> >>          <Connector protocol
> > ="org.apache.coyote.http11.Http11NioProtocol"
> >> port="443" maxHttpHeaderSize="8192" maxThreads="150"
> >>                                  minSpareThreads="25"
> > enableLookups="false"
> >> disableUploadTimeout="true" acceptCount="100" scheme="https"
> > secure="true"
> >>                                  clientAuth="false" sslProtocol="TLS"
> >> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> >> allowUnsafeLegacyRenegotiation="false"
> >> ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
> >>                                  keystoreFile="/conf/abc.key"
> >> keystorePass="changeit" server=" " />
> >>
> >>
> >> Getting below error in catalina log
> >>
> >> Server version name:   Apache Tomcat/10.0.4
> >> Server built:          Mar 5 2021 11:07:15 UTC
> >> Server version number: 10.0.4.0
> >> OS Name:               Windows 10
> >> OS Version:            10.0
> >> Architecture:          x86
> >> Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> >> JVM Version:           1.8.0_271-b09
> >> JVM Vendor:            Oracle Corporation
> >> CATALINA_BASE:         D:\apache-tomcat-10.0.4
> >> CATALINA_HOME:         D:\apache-tomcat-10.0.4
> >> Command line argument:
> >>
> >>
> >
>
> -Djava.util.logging.config.file=D:\apache-tomcat-10.0.4\conf\logging.properties
> >> Command line argument:
> >> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> >> Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
> >> Command line argument:
> >> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> >> Command line argument: -Dignore.endorsed.dirs=
> >> Command line argument: -Dcatalina.base=D:\apache-tomcat-10.0.4
> >> Command line argument: -Dcatalina.home=D:\apache-tomcat-10.0.4
> >> Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-10.0.4\temp
> >> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded
> > Apache
> >> Tomcat Native library [1.2.26] using APR version [1.7.0].
> >> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> >> capabilities: IPv6 [true], sendfile [true], accept filters [false],
> > random
> >> [true], UDS [true].
> >> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> >> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> >> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >> ["http-nio-80"]
> >> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
> >> initialize component [Connector[null-80]]
> >>          org.apache.catalina.LifecycleException: Protocol handler
> >> initialization failed
> >>                  at
> >>
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >>                  at
> >> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >>                  at
> >>
> >>
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >>                  at
> >> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >>                  at
> >>
> >>
> >
>
> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
> >>                  at
> >> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >>                  at
> >> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
> >>                  at
> >> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
> >>                  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:498)
> >>                  at
> >> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
> >>                  at
> >> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
> >>          Caused by: java.net.BindException: Address already in use:
> bind
> >>                  at sun.nio.ch.Net.bind0(Native Method)
> >>                  at sun.nio.ch.Net.bind(Net.java:444)
> >>                  at sun.nio.ch.Net.bind(Net.java:436)
> >>                  at
> >>
> >
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
> >>                  at
> >> org.apache.tomcat.util.net
> >> .NioEndpoint.initServerSocket(NioEndpoint.java:243)
> >>                  at
> >> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:198)
> >>                  at
> >> org.apache.tomcat.util.net
> >> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
> >>                  at
> >> org.apache.tomcat.util.net
> >> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
> >>                  at
> >> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
> >>                  at
> >>
> >>
> >
>
> org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
> >>                  at
> >>
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
> >>                  ... 13 more
> >> 16-Mar-2021 16:45:44.717 INFO [main]
> >> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >> ["https-openssl-nio-443"]
> >> 16-Mar-2021 16:45:44.723 SEVERE [main]
> >> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
> >> initialize component
> >> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
> >>          org.apache.catalina.LifecycleException: Protocol handler
> >> initialization failed
> >>                  at
> >>
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >>                  at
> >> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >>                  at
> >>
> >>
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >>
> >> Thanks & Regards
> >> Deepak Kumar
>
>
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL OR
> ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> original addressee only.
> The message may contain information that is confidential and subject to
> legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the message and copies thereof and any
> attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby
> notified that you must not disseminate, copy, use, distribute, or take any
> action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been
> maintained nor that it is free of errors, viruses, interception and/or
> interference.
> CCIL is not liable whatsoever for loss or damage resulting from the
> opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments."
>
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

dkumar
> Your more recent exception log didn't include the "caused by" exception
--
> which is the actual failure details. Double-check that and make sure
it's
> the same issue.
>
> Also, use netstat to confirm you aren't using the ports already.
Changing
> it may just find another conflict (although less likely). The first
error
> was quite clear about the port being unavailable.
>
> How are you starting Tomcat? Are you somehow starting it twice?

I start tomcat click on batch file. I have changed port 80 to 81 please
find both log below. Unable to find any port (80, 81, 443) in netstat.
Please suggest where I am doing wrong

Old log with port 80 and 443
16-Mar-2021 16:45:44.410 INFO [main]
org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
16-Mar-2021 16:45:44.704 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["http-nio-80"]
16-Mar-2021 16:45:44.716 SEVERE [main]
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
initialize component [Connector[null-80]]
        org.apache.catalina.LifecycleException: Protocol handler
initialization failed
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

New log with change port 81 and 443
16-Mar-2021 20:16:06.094 INFO [main]
org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
16-Mar-2021 20:16:06.380 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["http-nio-81"]
16-Mar-2021 20:16:06.411 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["https-openssl-nio-443"]
16-Mar-2021 20:16:06.413 SEVERE [main]
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
initialize component
[Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
        org.apache.catalina.LifecycleException: Protocol handler
initialization failed
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:

> > Deepak,
> > You already have some service listening on port 80 (IIS maybe?)
> >
> >
> > from mobile (sorry for typos ;)
> >
> > We have changed the port still getting same error
>
> > Maybe you have the same port configured twice in your conf/server.xml?
>
> > Please post *all* <Connector> elements from your conf/server.xml file,
> > being careful to remove any secrets from your configuration.
>
> -chris
> please find conf/server.xml file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Server port="8005" shutdown="SHUTDOWN">
>   <Listener
className="org.apache.catalina.startup.VersionLoggerListener"
> />
>   <Listener className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="on" />
>   <Listener
> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
>   <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
/>
>   <Listener
> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
/>

>   <GlobalNamingResources>
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved"
>  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>               pathname="conf/tomcat-users.xml" />
>   </GlobalNamingResources>
>   <Service name="Catalina">
>         <Connector port="81" maxHttpHeaderSize="8192"
>                    maxThreads="150" minSpareThreads="25"
> enableLookups="false" redirectPort="445" acceptCount="100"
>                    connectionTimeout="302000"
disableUploadTimeout="true"
> compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
>
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
>
>  server=" " />
>         <Connector protocol
="org.apache.coyote.http11.Http11NioProtocol"
> port="445" maxHttpHeaderSize="8192" maxThreads="150"
>                                 minSpareThreads="25"
enableLookups="false"
> disableUploadTimeout="true" acceptCount="100" scheme="https"
secure="true"

>                                 clientAuth="false" sslProtocol="TLS"
> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> allowUnsafeLegacyRenegotiation="false"
>  ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>                                 keystoreFile="/conf/abc.key"
> keystorePass="changeit" server=" " />
>     <Engine name="Catalina" defaultHost="localhost">
>       <Realm className="org.apache.catalina.realm.LockOutRealm">
>         <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>                resourceName="UserDatabase"/>
>       </Realm>
>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true">
>         <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs"
>                prefix="localhost_access_log" suffix=".txt"
>                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
>       </Host>
>     </Engine>
>   </Service>
> </Server>
>
> > 16-Mar-2021 18:09:38.299 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-81"]
> > 16-Mar-2021 18:09:38.363 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["https-openssl-nio-445"]
> > 16-Mar-2021 18:09:38.364 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
to
> > initialize component
> > [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
> >          org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                  at
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)

> >
> > On Tue, Mar 16, 2021, 18:36 <[hidden email]> wrote:
> >
> >> Dear All,
> >>
> >> Unable to start tomcat 10.0.4 and getting error Failed to initialize
> >> component.
> >> /conf/server.xml configuration as below.
> >>
> >>          <Connector port="80" maxHttpHeaderSize="8192"
maxThreads="150"

> >> minSpareThreads="25" enableLookups="false" redirectPort="443"
> >> acceptCount="100"
> >>                     connectionTimeout="302000"
> > disableUploadTimeout="true"
> >> compression="on" compressionMinSize="2048"
> >> noCompressionUserAgents="gozilla, traviata"
> >>
> >>
> >
>
>
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"

> >>
> >>   server=" " />
> >>
> >>          <Connector protocol
> > ="org.apache.coyote.http11.Http11NioProtocol"
> >> port="443" maxHttpHeaderSize="8192" maxThreads="150"
> >>                                  minSpareThreads="25"
> > enableLookups="false"
> >> disableUploadTimeout="true" acceptCount="100" scheme="https"
> > secure="true"
> >>                                  clientAuth="false" sslProtocol="TLS"
> >> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> >> allowUnsafeLegacyRenegotiation="false"
> >>
ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"

> >>                                  keystoreFile="/conf/abc.key"
> >> keystorePass="changeit" server=" " />
> >>
> >>
> >> Getting below error in catalina log
> >>
> >> Server version name:   Apache Tomcat/10.0.4
> >> Server built:          Mar 5 2021 11:07:15 UTC
> >> Server version number: 10.0.4.0
> >> OS Name:               Windows 10
> >> OS Version:            10.0
> >> Architecture:          x86
> >> Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> >> JVM Version:           1.8.0_271-b09
> >> JVM Vendor:            Oracle Corporation
> >> CATALINA_BASE:         D:\apache-tomcat-10.0.4
> >> CATALINA_HOME:         D:\apache-tomcat-10.0.4
> >> Command line argument:
> >>
> >>
> >
>
>
-Djava.util.logging.config.file=D:\apache-tomcat-10.0.4\conf\logging.properties

> >> Command line argument:
> >> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> >> Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
> >> Command line argument:
> >> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> >> Command line argument: -Dignore.endorsed.dirs=
> >> Command line argument: -Dcatalina.base=D:\apache-tomcat-10.0.4
> >> Command line argument: -Dcatalina.home=D:\apache-tomcat-10.0.4
> >> Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-10.0.4\temp
> >> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded
> > Apache
> >> Tomcat Native library [1.2.26] using APR version [1.7.0].
> >> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> >> capabilities: IPv6 [true], sendfile [true], accept filters [false],
> > random
> >> [true], UDS [true].
> >> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> >> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> >> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >> ["http-nio-80"]
> >> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
> >> initialize component [Connector[null-80]]
> >>          org.apache.catalina.LifecycleException: Protocol handler
> >> initialization failed
> >>                  at
> >>
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >>                  at
> >> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >>                  at
> >>
> >>
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >>                  at
> >> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >>                  at
> >>
> >>
> >
>
>
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
> >>                  at
> >> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >>                  at
> >> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
> >>                  at
> >> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
> >>                  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:498)
> >>                  at
> >> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
> >>                  at
> >> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
> >>          Caused by: java.net.BindException: Address already in use:
> bind
> >>                  at sun.nio.ch.Net.bind0(Native Method)
> >>                  at sun.nio.ch.Net.bind(Net.java:444)
> >>                  at sun.nio.ch.Net.bind(Net.java:436)
> >>                  at
> >>
> >
>
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)

> >>                  at
> >> org.apache.tomcat.util.net
> >> .NioEndpoint.initServerSocket(NioEndpoint.java:243)
> >>                  at
> >> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:198)
> >>                  at
> >> org.apache.tomcat.util.net
> >> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
> >>                  at
> >> org.apache.tomcat.util.net
> >> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
> >>                  at
> >> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
> >>                  at
> >>
> >>
> >
>
>
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
> >>                  at
> >>
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)

> >>                  ... 13 more
> >> 16-Mar-2021 16:45:44.717 INFO [main]
> >> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >> ["https-openssl-nio-443"]
> >> 16-Mar-2021 16:45:44.723 SEVERE [main]
> >> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
> >> initialize component
> >> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
> >>          org.apache.catalina.LifecycleException: Protocol handler
> >> initialization failed
> >>                  at
> >>
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >>                  at
> >> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >>                  at
> >>
> >>
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >>
> >> Thanks & Regards
> >> Deepak Kumar
>
>
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL
OR

> ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> original addressee only.
> The message may contain information that is confidential and subject to
> legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the message and copies thereof and any
> attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby
> notified that you must not disseminate, copy, use, distribute, or take
any
> action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been
> maintained nor that it is free of errors, viruses, interception and/or
> interference.
> CCIL is not liable whatsoever for loss or damage resulting from the
> opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments."
>




"Disclaimer and confidentiality clause -
 This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
The message may contain information that is confidential and subject to legal privilege.
Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
 If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
 CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

Zorro
On 3/16/21 3:57 PM, [hidden email] wrote:

>> Your more recent exception log didn't include the "caused by" exception
> --
>> which is the actual failure details. Double-check that and make sure
> it's
>> the same issue.
>>
>> Also, use netstat to confirm you aren't using the ports already.
> Changing
>> it may just find another conflict (although less likely). The first
> error
>> was quite clear about the port being unavailable.
>>
>> How are you starting Tomcat? Are you somehow starting it twice?
> I start tomcat click on batch file. I have changed port 80 to 81 please
> find both log below. Unable to find any port (80, 81, 443) in netstat.
> Please suggest where I am doing wrong
>
> Old log with port 80 and 443
> 16-Mar-2021 16:45:44.410 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> 16-Mar-2021 16:45:44.704 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-80"]
> 16-Mar-2021 16:45:44.716 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component [Connector[null-80]]
>          org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                  at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                  at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                  at
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>                  at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>
> New log with change port 81 and 443
> 16-Mar-2021 20:16:06.094 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> 16-Mar-2021 20:16:06.380 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-81"]
> 16-Mar-2021 20:16:06.411 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-443"]
> 16-Mar-2021 20:16:06.413 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
>          org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                  at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                  at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                  at
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>                  at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>
> On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:
>
>>> Deepak,
>>> You already have some service listening on port 80 (IIS maybe?)
>>>
>>>
>>> from mobile (sorry for typos ;)
>>>
>>> We have changed the port still getting same error
>>> Maybe you have the same port configured twice in your conf/server.xml?
>>> Please post *all* <Connector> elements from your conf/server.xml file,
>>> being careful to remove any secrets from your configuration.
>> -chris
>> please find conf/server.xml file
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <Server port="8005" shutdown="SHUTDOWN">
>>    <Listener
> className="org.apache.catalina.startup.VersionLoggerListener"
>> />
>>    <Listener className="org.apache.catalina.core.AprLifecycleListener"
>> SSLEngine="on" />
>>    <Listener
>> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
>>    <Listener
>> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> />
>>    <Listener
>> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> />
>>    <GlobalNamingResources>
>>      <Resource name="UserDatabase" auth="Container"
>>                type="org.apache.catalina.UserDatabase"
>>                description="User database that can be updated and saved"
>>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>                pathname="conf/tomcat-users.xml" />
>>    </GlobalNamingResources>
>>    <Service name="Catalina">
>>          <Connector port="81" maxHttpHeaderSize="8192"
>>                     maxThreads="150" minSpareThreads="25"
>> enableLookups="false" redirectPort="445" acceptCount="100"
>>                     connectionTimeout="302000"
> disableUploadTimeout="true"
>> compression="on" compressionMinSize="2048"
>> noCompressionUserAgents="gozilla, traviata"
>>
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
>>   server=" " />
>>          <Connector protocol
> ="org.apache.coyote.http11.Http11NioProtocol"
>> port="445" maxHttpHeaderSize="8192" maxThreads="150"
>>                                  minSpareThreads="25"
> enableLookups="false"
>> disableUploadTimeout="true" acceptCount="100" scheme="https"
> secure="true"
>>                                  clientAuth="false" sslProtocol="TLS"
>> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
>> allowUnsafeLegacyRenegotiation="false"
>>   ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>>                                  keystoreFile="/conf/abc.key"
>> keystorePass="changeit" server=" " />
>>      <Engine name="Catalina" defaultHost="localhost">
>>        <Realm className="org.apache.catalina.realm.LockOutRealm">
>>          <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>>                 resourceName="UserDatabase"/>
>>        </Realm>
>>        <Host name="localhost"  appBase="webapps"
>>              unpackWARs="true" autoDeploy="true">
>>          <Valve className="org.apache.catalina.valves.AccessLogValve"
>> directory="logs"
>>                 prefix="localhost_access_log" suffix=".txt"
>>                 pattern="%h %l %u %t &quot;%r&quot; %s %b" />
>>        </Host>
>>      </Engine>
>>    </Service>
>> </Server>
>>
>>> 16-Mar-2021 18:09:38.299 INFO [main]
>>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
>>> ["http-nio-81"]
>>> 16-Mar-2021 18:09:38.363 INFO [main]
>>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
>>> ["https-openssl-nio-445"]
>>> 16-Mar-2021 18:09:38.364 SEVERE [main]
>>> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
>>> initialize component
>>> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
>>>           org.apache.catalina.LifecycleException: Protocol handler
>>> initialization failed
>>>                   at
>>>

On Linux you cannot bind ports below 1024 without admin privileges.

Maybe that is also the case in Windows ?

Then you could change port 80 into 8080 and 443 into 8443 and see if
that works.

~Z



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

dkumar
>> Your more recent exception log didn't include the "caused by" exception
> --
>> which is the actual failure details. Double-check that and make sure
> it's
>> the same issue.
>>
>> Also, use netstat to confirm you aren't using the ports already.
> Changing
>> it may just find another conflict (although less likely). The first
> error
>> was quite clear about the port being unavailable.
>>
>> How are you starting Tomcat? Are you somehow starting it twice?
> I start tomcat click on batch file. I have changed port 80 to 81 please
> find both log below. Unable to find any port (80, 81, 443) in netstat.
> Please suggest where I am doing wrong
>
> Old log with port 80 and 443
> 16-Mar-2021 16:45:44.410 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> 16-Mar-2021 16:45:44.704 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-80"]
> 16-Mar-2021 16:45:44.716 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component [Connector[null-80]]
>          org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                  at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                  at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                  at
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)

>                  at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>
> New log with change port 81 and 443
> 16-Mar-2021 20:16:06.094 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> 16-Mar-2021 20:16:06.380 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-81"]
> 16-Mar-2021 20:16:06.411 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-443"]
> 16-Mar-2021 20:16:06.413 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
>          org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                  at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                  at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                  at
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)

>                  at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>
> On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:
>
>>> Deepak,
>>> You already have some service listening on port 80 (IIS maybe?)
>>>
>>>
>>> from mobile (sorry for typos ;)
>>>
>>> We have changed the port still getting same error
>>> Maybe you have the same port configured twice in your conf/server.xml?
>>> Please post *all* <Connector> elements from your conf/server.xml file,
>>> being careful to remove any secrets from your configuration.
>> -chris
>> please find conf/server.xml file
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <Server port="8005" shutdown="SHUTDOWN">
>>    <Listener
> className="org.apache.catalina.startup.VersionLoggerListener"
>> />
>>    <Listener className="org.apache.catalina.core.AprLifecycleListener"
>> SSLEngine="on" />
>>    <Listener
>> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
>>    <Listener
>> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> />
>>    <Listener
>> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> />
>>    <GlobalNamingResources>
>>      <Resource name="UserDatabase" auth="Container"
>>                type="org.apache.catalina.UserDatabase"
>>                description="User database that can be updated and
saved"

>>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>                pathname="conf/tomcat-users.xml" />
>>    </GlobalNamingResources>
>>    <Service name="Catalina">
>>          <Connector port="81" maxHttpHeaderSize="8192"
>>                     maxThreads="150" minSpareThreads="25"
>> enableLookups="false" redirectPort="445" acceptCount="100"
>>                     connectionTimeout="302000"
> disableUploadTimeout="true"
>> compression="on" compressionMinSize="2048"
>> noCompressionUserAgents="gozilla, traviata"
>>
>
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"

>>   server=" " />
>>          <Connector protocol
> ="org.apache.coyote.http11.Http11NioProtocol"
>> port="445" maxHttpHeaderSize="8192" maxThreads="150"
>>                                  minSpareThreads="25"
> enableLookups="false"
>> disableUploadTimeout="true" acceptCount="100" scheme="https"
> secure="true"
>>                                  clientAuth="false" sslProtocol="TLS"
>> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
>> allowUnsafeLegacyRenegotiation="false"
>> ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
>>                                  keystoreFile="/conf/abc.key"
>> keystorePass="changeit" server=" " />
>>      <Engine name="Catalina" defaultHost="localhost">
>>        <Realm className="org.apache.catalina.realm.LockOutRealm">
>>          <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>>                 resourceName="UserDatabase"/>
>>        </Realm>
>>        <Host name="localhost"  appBase="webapps"
>>              unpackWARs="true" autoDeploy="true">
>>          <Valve className="org.apache.catalina.valves.AccessLogValve"
>> directory="logs"
>>                 prefix="localhost_access_log" suffix=".txt"
>>                 pattern="%h %l %u %t &quot;%r&quot; %s %b" />
>>        </Host>
>>      </Engine>
>>    </Service>
>> </Server>
>>
>>> 16-Mar-2021 18:09:38.299 INFO [main]
>>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
>>> ["http-nio-81"]
>>> 16-Mar-2021 18:09:38.363 INFO [main]
>>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
>>> ["https-openssl-nio-445"]
>>> 16-Mar-2021 18:09:38.364 SEVERE [main]
>>> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
>>> initialize component
>>> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
>>>           org.apache.catalina.LifecycleException: Protocol handler
>>> initialization failed
>>>                   at
>>>

> On Linux you cannot bind ports below 1024 without admin privileges.
>
> Maybe that is also the case in Windows ?
>
> Then you could change port 80 into 8080 and 443 into 8443 and see if
> that works.

I have changed port to 8080 and 8443. And my window user has full control
permission still bad luck

16-Mar-2021 21:06:37.145 INFO [main]
org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
16-Mar-2021 21:06:37.434 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["http-nio-8080"]
16-Mar-2021 21:06:37.460 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["https-openssl-nio-8443"]
16-Mar-2021 21:06:37.469 SEVERE [main]
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
initialize component
[Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
        org.apache.catalina.LifecycleException: Protocol handler
initialization failed
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)



"Disclaimer and confidentiality clause -
 This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
The message may contain information that is confidential and subject to legal privilege.
Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
 If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
 CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

Maxim Solodovnik
Please provide full stacktrace

On Tue, 16 Mar 2021 at 22:49, <[hidden email]> wrote:

>
> >> Your more recent exception log didn't include the "caused by" exception
> > --
> >> which is the actual failure details. Double-check that and make sure
> > it's
> >> the same issue.
> >>
> >> Also, use netstat to confirm you aren't using the ports already.
> > Changing
> >> it may just find another conflict (although less likely). The first
> > error
> >> was quite clear about the port being unavailable.
> >>
> >> How are you starting Tomcat? Are you somehow starting it twice?
> > I start tomcat click on batch file. I have changed port 80 to 81 please
> > find both log below. Unable to find any port (80, 81, 443) in netstat.
> > Please suggest where I am doing wrong
> >
> > Old log with port 80 and 443
> > 16-Mar-2021 16:45:44.410 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > 16-Mar-2021 16:45:44.704 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-80"]
> > 16-Mar-2021 16:45:44.716 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> > initialize component [Connector[null-80]]
> >          org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                  at
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >                  at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                  at
> >
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >                  at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >
> > New log with change port 81 and 443
> > 16-Mar-2021 20:16:06.094 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > 16-Mar-2021 20:16:06.380 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-81"]
> > 16-Mar-2021 20:16:06.411 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["https-openssl-nio-443"]
> > 16-Mar-2021 20:16:06.413 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> > initialize component
> > [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
> >          org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                  at
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >                  at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                  at
> >
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >                  at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >
> > On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:
> >
> >>> Deepak,
> >>> You already have some service listening on port 80 (IIS maybe?)
> >>>
> >>>
> >>> from mobile (sorry for typos ;)
> >>>
> >>> We have changed the port still getting same error
> >>> Maybe you have the same port configured twice in your conf/server.xml?
> >>> Please post *all* <Connector> elements from your conf/server.xml file,
> >>> being careful to remove any secrets from your configuration.
> >> -chris
> >> please find conf/server.xml file
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <Server port="8005" shutdown="SHUTDOWN">
> >>    <Listener
> > className="org.apache.catalina.startup.VersionLoggerListener"
> >> />
> >>    <Listener className="org.apache.catalina.core.AprLifecycleListener"
> >> SSLEngine="on" />
> >>    <Listener
> >> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
> >>    <Listener
> >> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> > />
> >>    <Listener
> >> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> > />
> >>    <GlobalNamingResources>
> >>      <Resource name="UserDatabase" auth="Container"
> >>                type="org.apache.catalina.UserDatabase"
> >>                description="User database that can be updated and
> saved"
> >>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> >>                pathname="conf/tomcat-users.xml" />
> >>    </GlobalNamingResources>
> >>    <Service name="Catalina">
> >>          <Connector port="81" maxHttpHeaderSize="8192"
> >>                     maxThreads="150" minSpareThreads="25"
> >> enableLookups="false" redirectPort="445" acceptCount="100"
> >>                     connectionTimeout="302000"
> > disableUploadTimeout="true"
> >> compression="on" compressionMinSize="2048"
> >> noCompressionUserAgents="gozilla, traviata"
> >>
> >
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
> >>   server=" " />
> >>          <Connector protocol
> > ="org.apache.coyote.http11.Http11NioProtocol"
> >> port="445" maxHttpHeaderSize="8192" maxThreads="150"
> >>                                  minSpareThreads="25"
> > enableLookups="false"
> >> disableUploadTimeout="true" acceptCount="100" scheme="https"
> > secure="true"
> >>                                  clientAuth="false" sslProtocol="TLS"
> >> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> >> allowUnsafeLegacyRenegotiation="false"
> >> ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
> >>                                  keystoreFile="/conf/abc.key"
> >> keystorePass="changeit" server=" " />
> >>      <Engine name="Catalina" defaultHost="localhost">
> >>        <Realm className="org.apache.catalina.realm.LockOutRealm">
> >>          <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> >>                 resourceName="UserDatabase"/>
> >>        </Realm>
> >>        <Host name="localhost"  appBase="webapps"
> >>              unpackWARs="true" autoDeploy="true">
> >>          <Valve className="org.apache.catalina.valves.AccessLogValve"
> >> directory="logs"
> >>                 prefix="localhost_access_log" suffix=".txt"
> >>                 pattern="%h %l %u %t &quot;%r&quot; %s %b" />
> >>        </Host>
> >>      </Engine>
> >>    </Service>
> >> </Server>
> >>
> >>> 16-Mar-2021 18:09:38.299 INFO [main]
> >>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >>> ["http-nio-81"]
> >>> 16-Mar-2021 18:09:38.363 INFO [main]
> >>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >>> ["https-openssl-nio-445"]
> >>> 16-Mar-2021 18:09:38.364 SEVERE [main]
> >>> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> > to
> >>> initialize component
> >>> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
> >>>           org.apache.catalina.LifecycleException: Protocol handler
> >>> initialization failed
> >>>                   at
> >>>
>
> > On Linux you cannot bind ports below 1024 without admin privileges.
> >
> > Maybe that is also the case in Windows ?
> >
> > Then you could change port 80 into 8080 and 443 into 8443 and see if
> > that works.
>
> I have changed port to 8080 and 8443. And my window user has full control
> permission still bad luck
>
> 16-Mar-2021 21:06:37.145 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> 16-Mar-2021 21:06:37.434 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-8080"]
> 16-Mar-2021 21:06:37.460 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-8443"]
> 16-Mar-2021 21:06:37.469 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>
>
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
> The message may contain information that is confidential and subject to legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
> CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."



--
Best regards,
Maxim

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

dkumar
> Please provide full stacktrace
Please find full catlina log and I have already shared server.xml in trail
mail

16-Mar-2021 21:26:54.263 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [compressableMimeType]
to
[text/html,text/xml,text/javascript,application/x-javascript,application/javascript]
16-Mar-2021 21:26:54.269 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [clientAuth] to [false]
16-Mar-2021 21:26:54.270 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [sslProtocol] to [TLS]
16-Mar-2021 21:26:54.270 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [sslEnabledProtocols] to
[TLSv1.2,TLSv1.1]
16-Mar-2021 21:26:54.270 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property
[allowUnsafeLegacyRenegotiation] to [false]
16-Mar-2021 21:26:54.270 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [ciphers] to
[TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA]
16-Mar-2021 21:26:54.271 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [keystoreFile] to
[/conf/eNotice.key]
16-Mar-2021 21:26:54.272 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [keystorePass] to
[eNotice@1]
16-Mar-2021 21:26:54.306 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server version name:
  Apache Tomcat/10.0.4
16-Mar-2021 21:26:54.307 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server built:   Mar
5 2021 11:07:15 UTC
16-Mar-2021 21:26:54.307 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server version
number: 10.0.4.0
16-Mar-2021 21:26:54.307 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Name:   Windows
10
16-Mar-2021 21:26:54.307 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Version:   10.0
16-Mar-2021 21:26:54.308 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Architecture:   x86
16-Mar-2021 21:26:54.308 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Java Home:  
C:\Program Files (x86)\Java\jdk1.8.0_271\jre
16-Mar-2021 21:26:54.308 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:  
1.8.0_271-b09
16-Mar-2021 21:26:54.308 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:   Oracle
Corporation
16-Mar-2021 21:26:54.309 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:  
D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
16-Mar-2021 21:26:54.309 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:  
D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
16-Mar-2021 21:26:54.310 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument:
-Djava.util.logging.config.file=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\conf\logging.properties
16-Mar-2021 21:26:54.310 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument:
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
16-Mar-2021 21:26:54.311 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djdk.tls.ephemeralDHKeySize=2048
16-Mar-2021 21:26:54.311 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
16-Mar-2021 21:26:54.311 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dignore.endorsed.dirs=
16-Mar-2021 21:26:54.312 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dcatalina.base=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
16-Mar-2021 21:26:54.312 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dcatalina.home=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
16-Mar-2021 21:26:54.312 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument:
-Djava.io.tmpdir=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\temp
16-Mar-2021 21:26:54.348 INFO [main]
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache
Tomcat Native library [1.2.26] using APR version [1.7.0].
16-Mar-2021 21:26:54.348 INFO [main]
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
capabilities: IPv6 [true], sendfile [true], accept filters [false], random
[true], UDS [true].
16-Mar-2021 21:26:54.363 INFO [main]
org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
16-Mar-2021 21:26:54.658 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["http-nio-8080"]
16-Mar-2021 21:26:54.681 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["https-openssl-nio-8443"]
16-Mar-2021 21:26:54.683 SEVERE [main]
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
initialize component
[Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
        org.apache.catalina.LifecycleException: Protocol handler
initialization failed
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
                at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
                at
org.apache.catalina.startup.Catalina.load(Catalina.java:747)
                at
org.apache.catalina.startup.Catalina.load(Catalina.java:769)
                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:498)
                at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
                at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
        Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
element was found with the hostName [_default_] to match the
defaultSSLHostConfigName for the connector [https-openssl-nio-8443]
                at
org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:76)
                at
org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:203)
                at
org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
                at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1188)
                at
org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
                at
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
                at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
                ... 13 more
16-Mar-2021 21:26:54.685 INFO [main]
org.apache.catalina.startup.Catalina.load Server initialization in [549]
milliseconds
16-Mar-2021 21:26:54.710 INFO [main]
org.apache.catalina.core.StandardService.startInternal Starting service
[Catalina]
16-Mar-2021 21:26:54.710 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
engine: [Apache Tomcat/10.0.4]
16-Mar-2021 21:26:54.720 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs]
16-Mar-2021 21:26:55.028 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs] has
finished in [308] ms
16-Mar-2021 21:26:55.029 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples]
16-Mar-2021 21:26:55.403 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples] has
finished in [373] ms
16-Mar-2021 21:26:55.403 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager]
16-Mar-2021 21:26:55.458 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager] has
finished in [55] ms
16-Mar-2021 21:26:55.459 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager]
16-Mar-2021 21:26:55.488 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager] has
finished in [29] ms
16-Mar-2021 21:26:55.488 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT]
16-Mar-2021 21:26:55.509 INFO [main]
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
application directory
[D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT] has
finished in [21] ms
16-Mar-2021 21:26:55.514 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
["http-nio-8080"]
16-Mar-2021 21:26:55.563 INFO [main]
org.apache.catalina.startup.Catalina.start Server startup in [876]
milliseconds

On Tue, 16 Mar 2021 at 22:49, <[hidden email]> wrote:
>
> >> Your more recent exception log didn't include the "caused by"
exception

> > --
> >> which is the actual failure details. Double-check that and make sure
> > it's
> >> the same issue.
> >>
> >> Also, use netstat to confirm you aren't using the ports already.
> > Changing
> >> it may just find another conflict (although less likely). The first
> > error
> >> was quite clear about the port being unavailable.
> >>
> >> How are you starting Tomcat? Are you somehow starting it twice?
> > I start tomcat click on batch file. I have changed port 80 to 81
please

> > find both log below. Unable to find any port (80, 81, 443) in netstat.
> > Please suggest where I am doing wrong
> >
> > Old log with port 80 and 443
> > 16-Mar-2021 16:45:44.410 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > 16-Mar-2021 16:45:44.704 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-80"]
> > 16-Mar-2021 16:45:44.716 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
to
> > initialize component [Connector[null-80]]
> >          org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                  at
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >                  at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                  at
> >
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)

> >                  at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >
> > New log with change port 81 and 443
> > 16-Mar-2021 20:16:06.094 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > 16-Mar-2021 20:16:06.380 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-81"]
> > 16-Mar-2021 20:16:06.411 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["https-openssl-nio-443"]
> > 16-Mar-2021 20:16:06.413 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
to
> > initialize component
> > [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
> >          org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                  at
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >                  at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                  at
> >
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)

> >                  at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >
> > On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:
> >
> >>> Deepak,
> >>> You already have some service listening on port 80 (IIS maybe?)
> >>>
> >>>
> >>> from mobile (sorry for typos ;)
> >>>
> >>> We have changed the port still getting same error
> >>> Maybe you have the same port configured twice in your
conf/server.xml?
> >>> Please post *all* <Connector> elements from your conf/server.xml
file,

> >>> being careful to remove any secrets from your configuration.
> >> -chris
> >> please find conf/server.xml file
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <Server port="8005" shutdown="SHUTDOWN">
> >>    <Listener
> > className="org.apache.catalina.startup.VersionLoggerListener"
> >> />
> >>    <Listener
className="org.apache.catalina.core.AprLifecycleListener"
> >> SSLEngine="on" />
> >>    <Listener
> >> className="org.apache.catalina.core.JreMemoryLeakPreventionListener"
/>
> >>    <Listener
> >>
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> > />
> >>    <Listener
> >>
className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"

> > />
> >>    <GlobalNamingResources>
> >>      <Resource name="UserDatabase" auth="Container"
> >>                type="org.apache.catalina.UserDatabase"
> >>                description="User database that can be updated and
> saved"
> >>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> >>                pathname="conf/tomcat-users.xml" />
> >>    </GlobalNamingResources>
> >>    <Service name="Catalina">
> >>          <Connector port="81" maxHttpHeaderSize="8192"
> >>                     maxThreads="150" minSpareThreads="25"
> >> enableLookups="false" redirectPort="445" acceptCount="100"
> >>                     connectionTimeout="302000"
> > disableUploadTimeout="true"
> >> compression="on" compressionMinSize="2048"
> >> noCompressionUserAgents="gozilla, traviata"
> >>
> >
>
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"

> >>   server=" " />
> >>          <Connector protocol
> > ="org.apache.coyote.http11.Http11NioProtocol"
> >> port="445" maxHttpHeaderSize="8192" maxThreads="150"
> >>                                  minSpareThreads="25"
> > enableLookups="false"
> >> disableUploadTimeout="true" acceptCount="100" scheme="https"
> > secure="true"
> >>                                  clientAuth="false" sslProtocol="TLS"
> >> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> >> allowUnsafeLegacyRenegotiation="false"
> >>
ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
> >>                                  keystoreFile="/conf/abc.key"
> >> keystorePass="changeit" server=" " />
> >>      <Engine name="Catalina" defaultHost="localhost">
> >>        <Realm className="org.apache.catalina.realm.LockOutRealm">
> >>          <Realm
className="org.apache.catalina.realm.UserDatabaseRealm"

> >>                 resourceName="UserDatabase"/>
> >>        </Realm>
> >>        <Host name="localhost"  appBase="webapps"
> >>              unpackWARs="true" autoDeploy="true">
> >>          <Valve className="org.apache.catalina.valves.AccessLogValve"
> >> directory="logs"
> >>                 prefix="localhost_access_log" suffix=".txt"
> >>                 pattern="%h %l %u %t &quot;%r&quot; %s %b" />
> >>        </Host>
> >>      </Engine>
> >>    </Service>
> >> </Server>
> >>
> >>> 16-Mar-2021 18:09:38.299 INFO [main]
> >>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >>> ["http-nio-81"]
> >>> 16-Mar-2021 18:09:38.363 INFO [main]
> >>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> >>> ["https-openssl-nio-445"]
> >>> 16-Mar-2021 18:09:38.364 SEVERE [main]
> >>> org.apache.catalina.util.LifecycleBase.handleSubClassException
Failed

> > to
> >>> initialize component
> >>> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
> >>>           org.apache.catalina.LifecycleException: Protocol handler
> >>> initialization failed
> >>>                   at
> >>>
>
> > On Linux you cannot bind ports below 1024 without admin privileges.
> >
> > Maybe that is also the case in Windows ?
> >
> > Then you could change port 80 into 8080 and 443 into 8443 and see if
> > that works.
>
> I have changed port to 8080 and 8443. And my window user has full
control

> permission still bad luck
>
> 16-Mar-2021 21:06:37.145 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> 16-Mar-2021 21:06:37.434 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-8080"]
> 16-Mar-2021 21:06:37.460 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-8443"]
> 16-Mar-2021 21:06:37.469 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>
>
>



"Disclaimer and confidentiality clause -
 This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
The message may contain information that is confidential and subject to legal privilege.
Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
 If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
 CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

Robert Turner
If you look at the stack trace, it tells you what the problem is:

 Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
element was found with the hostName [_default_] to match the
defaultSSLHostConfigName for the connector [https-openssl-nio-8443]

So it no longer looks like you are hitting a port in use issue.



On Tue, Mar 16, 2021 at 12:01 PM <[hidden email]> wrote:

> > Please provide full stacktrace
> Please find full catlina log and I have already shared server.xml in trail
> mail
>
> 16-Mar-2021 21:26:54.263 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [compressableMimeType]
> to
>
> [text/html,text/xml,text/javascript,application/x-javascript,application/javascript]
> 16-Mar-2021 21:26:54.269 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [clientAuth] to [false]
> 16-Mar-2021 21:26:54.270 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [sslProtocol] to [TLS]
> 16-Mar-2021 21:26:54.270 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [sslEnabledProtocols] to
> [TLSv1.2,TLSv1.1]
> 16-Mar-2021 21:26:54.270 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property
> [allowUnsafeLegacyRenegotiation] to [false]
> 16-Mar-2021 21:26:54.270 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [ciphers] to
> [TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA]
> 16-Mar-2021 21:26:54.271 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [keystoreFile] to
> [/conf/eNotice.key]
> 16-Mar-2021 21:26:54.272 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [keystorePass] to
> [eNotice@1]
> 16-Mar-2021 21:26:54.306 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server version name:
>   Apache Tomcat/10.0.4
> 16-Mar-2021 21:26:54.307 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server built:   Mar
> 5 2021 11:07:15 UTC
> 16-Mar-2021 21:26:54.307 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server version
> number: 10.0.4.0
> 16-Mar-2021 21:26:54.307 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Name:   Windows
> 10
> 16-Mar-2021 21:26:54.307 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Version:   10.0
> 16-Mar-2021 21:26:54.308 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Architecture:   x86
> 16-Mar-2021 21:26:54.308 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Java Home:
> C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> 16-Mar-2021 21:26:54.308 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
> 1.8.0_271-b09
> 16-Mar-2021 21:26:54.308 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:   Oracle
> Corporation
> 16-Mar-2021 21:26:54.309 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
> D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> 16-Mar-2021 21:26:54.309 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
> D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> 16-Mar-2021 21:26:54.310 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
>
> -Djava.util.logging.config.file=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\conf\logging.properties
> 16-Mar-2021 21:26:54.310 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> 16-Mar-2021 21:26:54.311 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Djdk.tls.ephemeralDHKeySize=2048
> 16-Mar-2021 21:26:54.311 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> 16-Mar-2021 21:26:54.311 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Dignore.endorsed.dirs=
> 16-Mar-2021 21:26:54.312 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Dcatalina.base=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> 16-Mar-2021 21:26:54.312 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Dcatalina.home=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> 16-Mar-2021 21:26:54.312 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
> -Djava.io.tmpdir=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\temp
> 16-Mar-2021 21:26:54.348 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache
> Tomcat Native library [1.2.26] using APR version [1.7.0].
> 16-Mar-2021 21:26:54.348 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> capabilities: IPv6 [true], sendfile [true], accept filters [false], random
> [true], UDS [true].
> 16-Mar-2021 21:26:54.363 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> 16-Mar-2021 21:26:54.658 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-8080"]
> 16-Mar-2021 21:26:54.681 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-8443"]
> 16-Mar-2021 21:26:54.683 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
>                 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:498)
>                 at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
>                 at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
>         Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
> element was found with the hostName [_default_] to match the
> defaultSSLHostConfigName for the connector [https-openssl-nio-8443]
>                 at
> org.apache.tomcat.util.net
> .AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:76)
>                 at
> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:203)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
>                 at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
>                 at
>
> org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
>                 at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
>                 ... 13 more
> 16-Mar-2021 21:26:54.685 INFO [main]
> org.apache.catalina.startup.Catalina.load Server initialization in [549]
> milliseconds
> 16-Mar-2021 21:26:54.710 INFO [main]
> org.apache.catalina.core.StandardService.startInternal Starting service
> [Catalina]
> 16-Mar-2021 21:26:54.710 INFO [main]
> org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
> engine: [Apache Tomcat/10.0.4]
> 16-Mar-2021 21:26:54.720 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs]
> 16-Mar-2021 21:26:55.028 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs] has
> finished in [308] ms
> 16-Mar-2021 21:26:55.029 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples]
> 16-Mar-2021 21:26:55.403 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples] has
> finished in [373] ms
> 16-Mar-2021 21:26:55.403 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager]
> 16-Mar-2021 21:26:55.458 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager] has
> finished in [55] ms
> 16-Mar-2021 21:26:55.459 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager]
> 16-Mar-2021 21:26:55.488 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager] has
> finished in [29] ms
> 16-Mar-2021 21:26:55.488 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT]
> 16-Mar-2021 21:26:55.509 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT] has
> finished in [21] ms
> 16-Mar-2021 21:26:55.514 INFO [main]
> org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
> ["http-nio-8080"]
> 16-Mar-2021 21:26:55.563 INFO [main]
> org.apache.catalina.startup.Catalina.start Server startup in [876]
> milliseconds
>
> On Tue, 16 Mar 2021 at 22:49, <[hidden email]> wrote:
> >
> > >> Your more recent exception log didn't include the "caused by"
> exception
> > > --
> > >> which is the actual failure details. Double-check that and make sure
> > > it's
> > >> the same issue.
> > >>
> > >> Also, use netstat to confirm you aren't using the ports already.
> > > Changing
> > >> it may just find another conflict (although less likely). The first
> > > error
> > >> was quite clear about the port being unavailable.
> > >>
> > >> How are you starting Tomcat? Are you somehow starting it twice?
> > > I start tomcat click on batch file. I have changed port 80 to 81
> please
> > > find both log below. Unable to find any port (80, 81, 443) in netstat.
> > > Please suggest where I am doing wrong
> > >
> > > Old log with port 80 and 443
> > > 16-Mar-2021 16:45:44.410 INFO [main]
> > > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > 16-Mar-2021 16:45:44.704 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["http-nio-80"]
> > > 16-Mar-2021 16:45:44.716 SEVERE [main]
> > > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
> > > initialize component [Connector[null-80]]
> > >          org.apache.catalina.LifecycleException: Protocol handler
> > > initialization failed
> > >                  at
> > >
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > >                  at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >                  at
> > >
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> > >                  at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >
> > > New log with change port 81 and 443
> > > 16-Mar-2021 20:16:06.094 INFO [main]
> > > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > 16-Mar-2021 20:16:06.380 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["http-nio-81"]
> > > 16-Mar-2021 20:16:06.411 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["https-openssl-nio-443"]
> > > 16-Mar-2021 20:16:06.413 SEVERE [main]
> > > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
> > > initialize component
> > > [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
> > >          org.apache.catalina.LifecycleException: Protocol handler
> > > initialization failed
> > >                  at
> > >
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > >                  at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >                  at
> > >
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> > >                  at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >
> > > On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:
> > >
> > >>> Deepak,
> > >>> You already have some service listening on port 80 (IIS maybe?)
> > >>>
> > >>>
> > >>> from mobile (sorry for typos ;)
> > >>>
> > >>> We have changed the port still getting same error
> > >>> Maybe you have the same port configured twice in your
> conf/server.xml?
> > >>> Please post *all* <Connector> elements from your conf/server.xml
> file,
> > >>> being careful to remove any secrets from your configuration.
> > >> -chris
> > >> please find conf/server.xml file
> > >>
> > >> <?xml version="1.0" encoding="UTF-8"?>
> > >> <Server port="8005" shutdown="SHUTDOWN">
> > >>    <Listener
> > > className="org.apache.catalina.startup.VersionLoggerListener"
> > >> />
> > >>    <Listener
> className="org.apache.catalina.core.AprLifecycleListener"
> > >> SSLEngine="on" />
> > >>    <Listener
> > >> className="org.apache.catalina.core.JreMemoryLeakPreventionListener"
> />
> > >>    <Listener
> > >>
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> > > />
> > >>    <Listener
> > >>
> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> > > />
> > >>    <GlobalNamingResources>
> > >>      <Resource name="UserDatabase" auth="Container"
> > >>                type="org.apache.catalina.UserDatabase"
> > >>                description="User database that can be updated and
> > saved"
> > >>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> > >>                pathname="conf/tomcat-users.xml" />
> > >>    </GlobalNamingResources>
> > >>    <Service name="Catalina">
> > >>          <Connector port="81" maxHttpHeaderSize="8192"
> > >>                     maxThreads="150" minSpareThreads="25"
> > >> enableLookups="false" redirectPort="445" acceptCount="100"
> > >>                     connectionTimeout="302000"
> > > disableUploadTimeout="true"
> > >> compression="on" compressionMinSize="2048"
> > >> noCompressionUserAgents="gozilla, traviata"
> > >>
> > >
> >
>
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
> > >>   server=" " />
> > >>          <Connector protocol
> > > ="org.apache.coyote.http11.Http11NioProtocol"
> > >> port="445" maxHttpHeaderSize="8192" maxThreads="150"
> > >>                                  minSpareThreads="25"
> > > enableLookups="false"
> > >> disableUploadTimeout="true" acceptCount="100" scheme="https"
> > > secure="true"
> > >>                                  clientAuth="false" sslProtocol="TLS"
> > >> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> > >> allowUnsafeLegacyRenegotiation="false"
> > >>
> ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
> > >>                                  keystoreFile="/conf/abc.key"
> > >> keystorePass="changeit" server=" " />
> > >>      <Engine name="Catalina" defaultHost="localhost">
> > >>        <Realm className="org.apache.catalina.realm.LockOutRealm">
> > >>          <Realm
> className="org.apache.catalina.realm.UserDatabaseRealm"
> > >>                 resourceName="UserDatabase"/>
> > >>        </Realm>
> > >>        <Host name="localhost"  appBase="webapps"
> > >>              unpackWARs="true" autoDeploy="true">
> > >>          <Valve className="org.apache.catalina.valves.AccessLogValve"
> > >> directory="logs"
> > >>                 prefix="localhost_access_log" suffix=".txt"
> > >>                 pattern="%h %l %u %t &quot;%r&quot; %s %b" />
> > >>        </Host>
> > >>      </Engine>
> > >>    </Service>
> > >> </Server>
> > >>
> > >>> 16-Mar-2021 18:09:38.299 INFO [main]
> > >>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > >>> ["http-nio-81"]
> > >>> 16-Mar-2021 18:09:38.363 INFO [main]
> > >>> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > >>> ["https-openssl-nio-445"]
> > >>> 16-Mar-2021 18:09:38.364 SEVERE [main]
> > >>> org.apache.catalina.util.LifecycleBase.handleSubClassException
> Failed
> > > to
> > >>> initialize component
> > >>> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
> > >>>           org.apache.catalina.LifecycleException: Protocol handler
> > >>> initialization failed
> > >>>                   at
> > >>>
> >
> > > On Linux you cannot bind ports below 1024 without admin privileges.
> > >
> > > Maybe that is also the case in Windows ?
> > >
> > > Then you could change port 80 into 8080 and 443 into 8443 and see if
> > > that works.
> >
> > I have changed port to 8080 and 8443. And my window user has full
> control
> > permission still bad luck
> >
> > 16-Mar-2021 21:06:37.145 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > 16-Mar-2021 21:06:37.434 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-8080"]
> > 16-Mar-2021 21:06:37.460 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["https-openssl-nio-8443"]
> > 16-Mar-2021 21:06:37.469 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> > initialize component
> > [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
> >         org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                 at
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >                 at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                 at
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >
> >
> >
>
>
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL OR
> ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> original addressee only.
> The message may contain information that is confidential and subject to
> legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the message and copies thereof and any
> attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby
> notified that you must not disseminate, copy, use, distribute, or take any
> action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been
> maintained nor that it is free of errors, viruses, interception and/or
> interference.
> CCIL is not liable whatsoever for loss or damage resulting from the
> opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments."
>
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

dkumar
> If you look at the stack trace, it tells you what the problem is:

>  Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
> element was found with the hostName [_default_] to match the
> defaultSSLHostConfigName for the connector [https-openssl-nio-8443]

> So it no longer looks like you are hitting a port in use issue.
Please suggest what configuration need to do. To remove this error. It
will be very helpful for us.


On Tue, Mar 16, 2021 at 12:01 PM <[hidden email]> wrote:

> > Please provide full stacktrace
> Please find full catlina log and I have already shared server.xml in
trail
> mail
>
> 16-Mar-2021 21:26:54.263 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [compressableMimeType]
> to
>
>
[text/html,text/xml,text/javascript,application/x-javascript,application/javascript]
> 16-Mar-2021 21:26:54.269 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [clientAuth] to
[false]
> 16-Mar-2021 21:26:54.270 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [sslProtocol] to [TLS]
> 16-Mar-2021 21:26:54.270 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [sslEnabledProtocols]
to

> [TLSv1.2,TLSv1.1]
> 16-Mar-2021 21:26:54.270 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property
> [allowUnsafeLegacyRenegotiation] to [false]
> 16-Mar-2021 21:26:54.270 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [ciphers] to
> [TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA]
> 16-Mar-2021 21:26:54.271 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [keystoreFile] to
> [/conf/eNotice.key]
> 16-Mar-2021 21:26:54.272 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [keystorePass] to
> [eNotice@1]
> 16-Mar-2021 21:26:54.306 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server version
name:

>   Apache Tomcat/10.0.4
> 16-Mar-2021 21:26:54.307 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server built: Mar
> 5 2021 11:07:15 UTC
> 16-Mar-2021 21:26:54.307 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server version
> number: 10.0.4.0
> 16-Mar-2021 21:26:54.307 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Name:   Windows
> 10
> 16-Mar-2021 21:26:54.307 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Version:   10.0
> 16-Mar-2021 21:26:54.308 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86
> 16-Mar-2021 21:26:54.308 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Java Home:
> C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> 16-Mar-2021 21:26:54.308 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
> 1.8.0_271-b09
> 16-Mar-2021 21:26:54.308 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle
> Corporation
> 16-Mar-2021 21:26:54.309 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
> D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> 16-Mar-2021 21:26:54.309 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
> D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> 16-Mar-2021 21:26:54.310 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
>
>
-Djava.util.logging.config.file=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\conf\logging.properties

> 16-Mar-2021 21:26:54.310 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> 16-Mar-2021 21:26:54.311 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Djdk.tls.ephemeralDHKeySize=2048
> 16-Mar-2021 21:26:54.311 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> 16-Mar-2021 21:26:54.311 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Dignore.endorsed.dirs=
> 16-Mar-2021 21:26:54.312 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
-Dcatalina.base=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> 16-Mar-2021 21:26:54.312 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
-Dcatalina.home=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> 16-Mar-2021 21:26:54.312 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
> -Djava.io.tmpdir=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\temp
> 16-Mar-2021 21:26:54.348 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded
Apache
> Tomcat Native library [1.2.26] using APR version [1.7.0].
> 16-Mar-2021 21:26:54.348 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> capabilities: IPv6 [true], sendfile [true], accept filters [false],
random

> [true], UDS [true].
> 16-Mar-2021 21:26:54.363 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> 16-Mar-2021 21:26:54.658 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["http-nio-8080"]
> 16-Mar-2021 21:26:54.681 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-openssl-nio-8443"]
> 16-Mar-2021 21:26:54.683 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component
> [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
>         org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
>                 at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
>
>
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)

>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:747)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:769)
>                 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:498)
>                 at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
>                 at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
>         Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
> element was found with the hostName [_default_] to match the
> defaultSSLHostConfigName for the connector [https-openssl-nio-8443]
>                 at
> org.apache.tomcat.util.net
> .AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:76)
>                 at
> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:203)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
>                 at
> org.apache.tomcat.util.net
> .AbstractEndpoint.init(AbstractEndpoint.java:1188)
>                 at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
>                 at
>
>
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
>                 at
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)

>                 ... 13 more
> 16-Mar-2021 21:26:54.685 INFO [main]
> org.apache.catalina.startup.Catalina.load Server initialization in [549]
> milliseconds
> 16-Mar-2021 21:26:54.710 INFO [main]
> org.apache.catalina.core.StandardService.startInternal Starting service
> [Catalina]
> 16-Mar-2021 21:26:54.710 INFO [main]
> org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
> engine: [Apache Tomcat/10.0.4]
> 16-Mar-2021 21:26:54.720 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs]
> 16-Mar-2021 21:26:55.028 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs] has
> finished in [308] ms
> 16-Mar-2021 21:26:55.029 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples]
> 16-Mar-2021 21:26:55.403 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples] has
> finished in [373] ms
> 16-Mar-2021 21:26:55.403 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager]
> 16-Mar-2021 21:26:55.458 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager]
has

> finished in [55] ms
> 16-Mar-2021 21:26:55.459 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager]
> 16-Mar-2021 21:26:55.488 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager] has
> finished in [29] ms
> 16-Mar-2021 21:26:55.488 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT]
> 16-Mar-2021 21:26:55.509 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> application directory
> [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT] has
> finished in [21] ms
> 16-Mar-2021 21:26:55.514 INFO [main]
> org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
> ["http-nio-8080"]
> 16-Mar-2021 21:26:55.563 INFO [main]
> org.apache.catalina.startup.Catalina.start Server startup in [876]
> milliseconds
>
> On Tue, 16 Mar 2021 at 22:49, <[hidden email]> wrote:
> >
> > >> Your more recent exception log didn't include the "caused by"
> exception
> > > --
> > >> which is the actual failure details. Double-check that and make
sure

> > > it's
> > >> the same issue.
> > >>
> > >> Also, use netstat to confirm you aren't using the ports already.
> > > Changing
> > >> it may just find another conflict (although less likely). The first
> > > error
> > >> was quite clear about the port being unavailable.
> > >>
> > >> How are you starting Tomcat? Are you somehow starting it twice?
> > > I start tomcat click on batch file. I have changed port 80 to 81
> please
> > > find both log below. Unable to find any port (80, 81, 443) in
netstat.

> > > Please suggest where I am doing wrong
> > >
> > > Old log with port 80 and 443
> > > 16-Mar-2021 16:45:44.410 INFO [main]
> > > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > 16-Mar-2021 16:45:44.704 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["http-nio-80"]
> > > 16-Mar-2021 16:45:44.716 SEVERE [main]
> > > org.apache.catalina.util.LifecycleBase.handleSubClassException
Failed
> to
> > > initialize component [Connector[null-80]]
> > >          org.apache.catalina.LifecycleException: Protocol handler
> > > initialization failed
> > >                  at
> > >
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > >                  at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >                  at
> > >
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)

> > >                  at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >
> > > New log with change port 81 and 443
> > > 16-Mar-2021 20:16:06.094 INFO [main]
> > > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > 16-Mar-2021 20:16:06.380 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["http-nio-81"]
> > > 16-Mar-2021 20:16:06.411 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["https-openssl-nio-443"]
> > > 16-Mar-2021 20:16:06.413 SEVERE [main]
> > > org.apache.catalina.util.LifecycleBase.handleSubClassException
Failed
> to
> > > initialize component
> > > [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
> > >          org.apache.catalina.LifecycleException: Protocol handler
> > > initialization failed
> > >                  at
> > >
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > >                  at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >                  at
> > >
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)

> > >                  at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >
> > > On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:
> > >
> > >>> Deepak,
> > >>> You already have some service listening on port 80 (IIS maybe?)
> > >>>
> > >>>
> > >>> from mobile (sorry for typos ;)
> > >>>
> > >>> We have changed the port still getting same error
> > >>> Maybe you have the same port configured twice in your
> conf/server.xml?
> > >>> Please post *all* <Connector> elements from your conf/server.xml
> file,
> > >>> being careful to remove any secrets from your configuration.
> > >> -chris
> > >> please find conf/server.xml file
> > >>
> > >> <?xml version="1.0" encoding="UTF-8"?>
> > >> <Server port="8005" shutdown="SHUTDOWN">
> > >>    <Listener
> > > className="org.apache.catalina.startup.VersionLoggerListener"
> > >> />
> > >>    <Listener
> className="org.apache.catalina.core.AprLifecycleListener"
> > >> SSLEngine="on" />
> > >>    <Listener
> > >>
className="org.apache.catalina.core.JreMemoryLeakPreventionListener"

> />
> > >>    <Listener
> > >>
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> > > />
> > >>    <Listener
> > >>
> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> > > />
> > >>    <GlobalNamingResources>
> > >>      <Resource name="UserDatabase" auth="Container"
> > >>                type="org.apache.catalina.UserDatabase"
> > >>                description="User database that can be updated and
> > saved"
> > >>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> > >>                pathname="conf/tomcat-users.xml" />
> > >>    </GlobalNamingResources>
> > >>    <Service name="Catalina">
> > >>          <Connector port="81" maxHttpHeaderSize="8192"
> > >>                     maxThreads="150" minSpareThreads="25"
> > >> enableLookups="false" redirectPort="445" acceptCount="100"
> > >>                     connectionTimeout="302000"
> > > disableUploadTimeout="true"
> > >> compression="on" compressionMinSize="2048"
> > >> noCompressionUserAgents="gozilla, traviata"
> > >>
> > >
> >
>
>
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
> > >>   server=" " />
> > >>          <Connector protocol
> > > ="org.apache.coyote.http11.Http11NioProtocol"
> > >> port="445" maxHttpHeaderSize="8192" maxThreads="150"
> > >>                                  minSpareThreads="25"
> > > enableLookups="false"
> > >> disableUploadTimeout="true" acceptCount="100" scheme="https"
> > > secure="true"
> > >>                                  clientAuth="false"
sslProtocol="TLS"

> > >> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> > >> allowUnsafeLegacyRenegotiation="false"
> > >>
> ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
> > >>                                  keystoreFile="/conf/abc.key"
> > >> keystorePass="changeit" server=" " />
> > >>      <Engine name="Catalina" defaultHost="localhost">
> > >>        <Realm className="org.apache.catalina.realm.LockOutRealm">
> > >>          <Realm
> className="org.apache.catalina.realm.UserDatabaseRealm"
> > >>                 resourceName="UserDatabase"/>
> > >>        </Realm>
> > >>        <Host name="localhost"  appBase="webapps"
> > >>              unpackWARs="true" autoDeploy="true">
> > >>          <Valve
className="org.apache.catalina.valves.AccessLogValve"

> > >> directory="logs"
> > >>                 prefix="localhost_access_log" suffix=".txt"
> > >>                 pattern="%h %l %u %t &quot;%r&quot; %s %b" />
> > >>        </Host>
> > >>      </Engine>
> > >>    </Service>
> > >> </Server>
> > >>
> > >>> 16-Mar-2021 18:09:38.299 INFO [main]
> > >>> org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler
> > >>> ["http-nio-81"]
> > >>> 16-Mar-2021 18:09:38.363 INFO [main]
> > >>> org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler

> > >>> ["https-openssl-nio-445"]
> > >>> 16-Mar-2021 18:09:38.364 SEVERE [main]
> > >>> org.apache.catalina.util.LifecycleBase.handleSubClassException
> Failed
> > > to
> > >>> initialize component
> > >>> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
> > >>>           org.apache.catalina.LifecycleException: Protocol handler
> > >>> initialization failed
> > >>>                   at
> > >>>
> >
> > > On Linux you cannot bind ports below 1024 without admin privileges.
> > >
> > > Maybe that is also the case in Windows ?
> > >
> > > Then you could change port 80 into 8080 and 443 into 8443 and see if
> > > that works.
> >
> > I have changed port to 8080 and 8443. And my window user has full
> control
> > permission still bad luck
> >
> > 16-Mar-2021 21:06:37.145 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > 16-Mar-2021 21:06:37.434 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-8080"]
> > 16-Mar-2021 21:06:37.460 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["https-openssl-nio-8443"]
> > 16-Mar-2021 21:06:37.469 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
to
> > initialize component
> > [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
> >         org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                 at
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >                 at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                 at
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >
> >
> >
>
>
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL
OR

> ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> original addressee only.
> The message may contain information that is confidential and subject to
> legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the message and copies thereof and any
> attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby
> notified that you must not disseminate, copy, use, distribute, or take
any
> action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been
> maintained nor that it is free of errors, viruses, interception and/or
> interference.
> CCIL is not liable whatsoever for loss or damage resulting from the
> opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments."
>




"Disclaimer and confidentiality clause -
 This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
The message may contain information that is confidential and subject to legal privilege.
Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
 If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
 CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

Robert Turner
I suggest you have a read here:
https://tomcat.apache.org/tomcat-10.0-doc/config/http.html#SSL_Support
The documentation covers the details you need to correctly configure Tomcat
and SSL and links to a related page about SSL configuration.

Notice the line:
Each secure connector must define at least one *SSLHostConfig*. The names
of the *SSLHostConfig* elements must be unique and one of them must match
the defaultSSLHostConfigName attribute of the *Connector*.




On Tue, Mar 16, 2021 at 12:42 PM <[hidden email]> wrote:

> > If you look at the stack trace, it tells you what the problem is:
>
> >  Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
> > element was found with the hostName [_default_] to match the
> > defaultSSLHostConfigName for the connector [https-openssl-nio-8443]
>
> > So it no longer looks like you are hitting a port in use issue.
> Please suggest what configuration need to do. To remove this error. It
> will be very helpful for us.
>
>
> On Tue, Mar 16, 2021 at 12:01 PM <[hidden email]> wrote:
>
> > > Please provide full stacktrace
> > Please find full catlina log and I have already shared server.xml in
> trail
> > mail
> >
> > 16-Mar-2021 21:26:54.263 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [compressableMimeType]
> > to
> >
> >
>
> [text/html,text/xml,text/javascript,application/x-javascript,application/javascript]
> > 16-Mar-2021 21:26:54.269 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [clientAuth] to
> [false]
> > 16-Mar-2021 21:26:54.270 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [sslProtocol] to [TLS]
> > 16-Mar-2021 21:26:54.270 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [sslEnabledProtocols]
> to
> > [TLSv1.2,TLSv1.1]
> > 16-Mar-2021 21:26:54.270 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property
> > [allowUnsafeLegacyRenegotiation] to [false]
> > 16-Mar-2021 21:26:54.270 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [ciphers] to
> > [TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA]
> > 16-Mar-2021 21:26:54.271 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [keystoreFile] to
> > [/conf/eNotice.key]
> > 16-Mar-2021 21:26:54.272 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [keystorePass] to
> > [eNotice@1]
> > 16-Mar-2021 21:26:54.306 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Server version
> name:
> >   Apache Tomcat/10.0.4
> > 16-Mar-2021 21:26:54.307 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Server built: Mar
> > 5 2021 11:07:15 UTC
> > 16-Mar-2021 21:26:54.307 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Server version
> > number: 10.0.4.0
> > 16-Mar-2021 21:26:54.307 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log OS Name:   Windows
> > 10
> > 16-Mar-2021 21:26:54.307 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log OS Version:   10.0
> > 16-Mar-2021 21:26:54.308 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86
> > 16-Mar-2021 21:26:54.308 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Java Home:
> > C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> > 16-Mar-2021 21:26:54.308 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
> > 1.8.0_271-b09
> > 16-Mar-2021 21:26:54.308 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle
> > Corporation
> > 16-Mar-2021 21:26:54.309 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
> > D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> > 16-Mar-2021 21:26:54.309 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
> > D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> > 16-Mar-2021 21:26:54.310 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> >
> >
>
> -Djava.util.logging.config.file=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\conf\logging.properties
> > 16-Mar-2021 21:26:54.310 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> > 16-Mar-2021 21:26:54.311 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument: -Djdk.tls.ephemeralDHKeySize=2048
> > 16-Mar-2021 21:26:54.311 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> > 16-Mar-2021 21:26:54.311 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument: -Dignore.endorsed.dirs=
> > 16-Mar-2021 21:26:54.312 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> -Dcatalina.base=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> > 16-Mar-2021 21:26:54.312 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> -Dcatalina.home=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> > 16-Mar-2021 21:26:54.312 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> > -Djava.io.tmpdir=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\temp
> > 16-Mar-2021 21:26:54.348 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded
> Apache
> > Tomcat Native library [1.2.26] using APR version [1.7.0].
> > 16-Mar-2021 21:26:54.348 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> > capabilities: IPv6 [true], sendfile [true], accept filters [false],
> random
> > [true], UDS [true].
> > 16-Mar-2021 21:26:54.363 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > 16-Mar-2021 21:26:54.658 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-8080"]
> > 16-Mar-2021 21:26:54.681 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["https-openssl-nio-8443"]
> > 16-Mar-2021 21:26:54.683 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> > initialize component
> > [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
> >         org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                 at
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >                 at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                 at
> >
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >                 at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                 at
> >
> >
>
> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)
> >                 at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                 at
> > org.apache.catalina.startup.Catalina.load(Catalina.java:747)
> >                 at
> > org.apache.catalina.startup.Catalina.load(Catalina.java:769)
> >                 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:498)
> >                 at
> > org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
> >                 at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
> >         Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
> > element was found with the hostName [_default_] to match the
> > defaultSSLHostConfigName for the connector [https-openssl-nio-8443]
> >                 at
> > org.apache.tomcat.util.net
> > .AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:76)
> >                 at
> > org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:203)
> >                 at
> > org.apache.tomcat.util.net
> > .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
> >                 at
> > org.apache.tomcat.util.net
> > .AbstractEndpoint.init(AbstractEndpoint.java:1188)
> >                 at
> > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
> >                 at
> >
> >
>
> org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
> >                 at
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
> >                 ... 13 more
> > 16-Mar-2021 21:26:54.685 INFO [main]
> > org.apache.catalina.startup.Catalina.load Server initialization in [549]
> > milliseconds
> > 16-Mar-2021 21:26:54.710 INFO [main]
> > org.apache.catalina.core.StandardService.startInternal Starting service
> > [Catalina]
> > 16-Mar-2021 21:26:54.710 INFO [main]
> > org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
> > engine: [Apache Tomcat/10.0.4]
> > 16-Mar-2021 21:26:54.720 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs]
> > 16-Mar-2021 21:26:55.028 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs] has
> > finished in [308] ms
> > 16-Mar-2021 21:26:55.029 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples]
> > 16-Mar-2021 21:26:55.403 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples] has
> > finished in [373] ms
> > 16-Mar-2021 21:26:55.403 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager]
> > 16-Mar-2021 21:26:55.458 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager]
> has
> > finished in [55] ms
> > 16-Mar-2021 21:26:55.459 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager]
> > 16-Mar-2021 21:26:55.488 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager] has
> > finished in [29] ms
> > 16-Mar-2021 21:26:55.488 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT]
> > 16-Mar-2021 21:26:55.509 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT] has
> > finished in [21] ms
> > 16-Mar-2021 21:26:55.514 INFO [main]
> > org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
> > ["http-nio-8080"]
> > 16-Mar-2021 21:26:55.563 INFO [main]
> > org.apache.catalina.startup.Catalina.start Server startup in [876]
> > milliseconds
> >
> > On Tue, 16 Mar 2021 at 22:49, <[hidden email]> wrote:
> > >
> > > >> Your more recent exception log didn't include the "caused by"
> > exception
> > > > --
> > > >> which is the actual failure details. Double-check that and make
> sure
> > > > it's
> > > >> the same issue.
> > > >>
> > > >> Also, use netstat to confirm you aren't using the ports already.
> > > > Changing
> > > >> it may just find another conflict (although less likely). The first
> > > > error
> > > >> was quite clear about the port being unavailable.
> > > >>
> > > >> How are you starting Tomcat? Are you somehow starting it twice?
> > > > I start tomcat click on batch file. I have changed port 80 to 81
> > please
> > > > find both log below. Unable to find any port (80, 81, 443) in
> netstat.
> > > > Please suggest where I am doing wrong
> > > >
> > > > Old log with port 80 and 443
> > > > 16-Mar-2021 16:45:44.410 INFO [main]
> > > > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > > 16-Mar-2021 16:45:44.704 INFO [main]
> > > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > > ["http-nio-80"]
> > > > 16-Mar-2021 16:45:44.716 SEVERE [main]
> > > > org.apache.catalina.util.LifecycleBase.handleSubClassException
> Failed
> > to
> > > > initialize component [Connector[null-80]]
> > > >          org.apache.catalina.LifecycleException: Protocol handler
> > > > initialization failed
> > > >                  at
> > > >
> > >
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > > >                  at
> > > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > > >                  at
> > > >
> > >
> >
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> > > >                  at
> > > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > > >
> > > > New log with change port 81 and 443
> > > > 16-Mar-2021 20:16:06.094 INFO [main]
> > > > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > > 16-Mar-2021 20:16:06.380 INFO [main]
> > > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > > ["http-nio-81"]
> > > > 16-Mar-2021 20:16:06.411 INFO [main]
> > > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > > ["https-openssl-nio-443"]
> > > > 16-Mar-2021 20:16:06.413 SEVERE [main]
> > > > org.apache.catalina.util.LifecycleBase.handleSubClassException
> Failed
> > to
> > > > initialize component
> > > > [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
> > > >          org.apache.catalina.LifecycleException: Protocol handler
> > > > initialization failed
> > > >                  at
> > > >
> > >
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > > >                  at
> > > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > > >                  at
> > > >
> > >
> >
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> > > >                  at
> > > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > > >
> > > > On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:
> > > >
> > > >>> Deepak,
> > > >>> You already have some service listening on port 80 (IIS maybe?)
> > > >>>
> > > >>>
> > > >>> from mobile (sorry for typos ;)
> > > >>>
> > > >>> We have changed the port still getting same error
> > > >>> Maybe you have the same port configured twice in your
> > conf/server.xml?
> > > >>> Please post *all* <Connector> elements from your conf/server.xml
> > file,
> > > >>> being careful to remove any secrets from your configuration.
> > > >> -chris
> > > >> please find conf/server.xml file
> > > >>
> > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > >> <Server port="8005" shutdown="SHUTDOWN">
> > > >>    <Listener
> > > > className="org.apache.catalina.startup.VersionLoggerListener"
> > > >> />
> > > >>    <Listener
> > className="org.apache.catalina.core.AprLifecycleListener"
> > > >> SSLEngine="on" />
> > > >>    <Listener
> > > >>
> className="org.apache.catalina.core.JreMemoryLeakPreventionListener"
> > />
> > > >>    <Listener
> > > >>
> > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> > > > />
> > > >>    <Listener
> > > >>
> > className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> > > > />
> > > >>    <GlobalNamingResources>
> > > >>      <Resource name="UserDatabase" auth="Container"
> > > >>                type="org.apache.catalina.UserDatabase"
> > > >>                description="User database that can be updated and
> > > saved"
> > > >>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> > > >>                pathname="conf/tomcat-users.xml" />
> > > >>    </GlobalNamingResources>
> > > >>    <Service name="Catalina">
> > > >>          <Connector port="81" maxHttpHeaderSize="8192"
> > > >>                     maxThreads="150" minSpareThreads="25"
> > > >> enableLookups="false" redirectPort="445" acceptCount="100"
> > > >>                     connectionTimeout="302000"
> > > > disableUploadTimeout="true"
> > > >> compression="on" compressionMinSize="2048"
> > > >> noCompressionUserAgents="gozilla, traviata"
> > > >>
> > > >
> > >
> >
> >
>
> compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"
> > > >>   server=" " />
> > > >>          <Connector protocol
> > > > ="org.apache.coyote.http11.Http11NioProtocol"
> > > >> port="445" maxHttpHeaderSize="8192" maxThreads="150"
> > > >>                                  minSpareThreads="25"
> > > > enableLookups="false"
> > > >> disableUploadTimeout="true" acceptCount="100" scheme="https"
> > > > secure="true"
> > > >>                                  clientAuth="false"
> sslProtocol="TLS"
> > > >> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> > > >> allowUnsafeLegacyRenegotiation="false"
> > > >>
> > ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
> > > >>                                  keystoreFile="/conf/abc.key"
> > > >> keystorePass="changeit" server=" " />
> > > >>      <Engine name="Catalina" defaultHost="localhost">
> > > >>        <Realm className="org.apache.catalina.realm.LockOutRealm">
> > > >>          <Realm
> > className="org.apache.catalina.realm.UserDatabaseRealm"
> > > >>                 resourceName="UserDatabase"/>
> > > >>        </Realm>
> > > >>        <Host name="localhost"  appBase="webapps"
> > > >>              unpackWARs="true" autoDeploy="true">
> > > >>          <Valve
> className="org.apache.catalina.valves.AccessLogValve"
> > > >> directory="logs"
> > > >>                 prefix="localhost_access_log" suffix=".txt"
> > > >>                 pattern="%h %l %u %t &quot;%r&quot; %s %b" />
> > > >>        </Host>
> > > >>      </Engine>
> > > >>    </Service>
> > > >> </Server>
> > > >>
> > > >>> 16-Mar-2021 18:09:38.299 INFO [main]
> > > >>> org.apache.coyote.AbstractProtocol.init Initializing
> ProtocolHandler
> > > >>> ["http-nio-81"]
> > > >>> 16-Mar-2021 18:09:38.363 INFO [main]
> > > >>> org.apache.coyote.AbstractProtocol.init Initializing
> ProtocolHandler
> > > >>> ["https-openssl-nio-445"]
> > > >>> 16-Mar-2021 18:09:38.364 SEVERE [main]
> > > >>> org.apache.catalina.util.LifecycleBase.handleSubClassException
> > Failed
> > > > to
> > > >>> initialize component
> > > >>> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
> > > >>>           org.apache.catalina.LifecycleException: Protocol handler
> > > >>> initialization failed
> > > >>>                   at
> > > >>>
> > >
> > > > On Linux you cannot bind ports below 1024 without admin privileges.
> > > >
> > > > Maybe that is also the case in Windows ?
> > > >
> > > > Then you could change port 80 into 8080 and 443 into 8443 and see if
> > > > that works.
> > >
> > > I have changed port to 8080 and 8443. And my window user has full
> > control
> > > permission still bad luck
> > >
> > > 16-Mar-2021 21:06:37.145 INFO [main]
> > > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > 16-Mar-2021 21:06:37.434 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["http-nio-8080"]
> > > 16-Mar-2021 21:06:37.460 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["https-openssl-nio-8443"]
> > > 16-Mar-2021 21:06:37.469 SEVERE [main]
> > > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to
> > > initialize component
> > > [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
> > >         org.apache.catalina.LifecycleException: Protocol handler
> > > initialization failed
> > >                 at
> > >
> >
> org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > >                 at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >                 at
> > >
> >
> >
>
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> > >
> > >
> > >
> >
> >
> >
> > "Disclaimer and confidentiality clause -
> >  This message and any attachments relating to official business of CCIL
> OR
> > ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> > original addressee only.
> > The message may contain information that is confidential and subject to
> > legal privilege.
> > Any views expressed in this message are those of the individual sender.
> > If you have received this message in error, please notify the original
> > sender immediately and destroy the message and copies thereof and any
> > attachments contained in it .
> >  If you are not the intended recipient of this message, you are hereby
> > notified that you must not disseminate, copy, use, distribute, or take
> any
> > action in connection therewith.
> >  CCIL cannot ensure that the integrity of this communication has been
> > maintained nor that it is free of errors, viruses, interception and/or
> > interference.
> > CCIL is not liable whatsoever for loss or damage resulting from the
> > opening of this message and/or attachments and/or the use of the
> > information contained in this message and/or attachments."
> >
>
>
>
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL OR
> ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> original addressee only.
> The message may contain information that is confidential and subject to
> legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the message and copies thereof and any
> attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby
> notified that you must not disseminate, copy, use, distribute, or take any
> action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been
> maintained nor that it is free of errors, viruses, interception and/or
> interference.
> CCIL is not liable whatsoever for loss or damage resulting from the
> opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments."
>
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

calder
On Tue, Mar 16, 2021, 11:46 Robert Turner <[hidden email]> wrote:

> I suggest you have a read here:
> https://tomcat.apache.org/tomcat-10.0-doc/config/http.html#SSL_Support
> The documentation covers the details you need to correctly configure Tomcat
> and SSL and links to a related page about SSL configuration.
>
> Notice the line:
> Each secure connector must define at least one *SSLHostConfig*. The names
> of the *SSLHostConfig* elements must be unique and one of them must match
> the defaultSSLHostConfigName attribute of the *Connector*.
>
>
>
>
> On Tue, Mar 16, 2021 at 12:42 PM <[hidden email]> wrote:
>
> > > If you look at the stack trace, it tells you what the problem is:
> >
> > >  Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
> > > element was found with the hostName [_default_] to match the
> > > defaultSSLHostConfigName for the connector [https-openssl-nio-8443]
> >
> > > So it no longer looks like you are hitting a port in use issue.
> > Please suggest what configuration need to do. To remove this error. It
> >
>


Wild guess... malformed XML file
Reply | Threaded
Open this post in threaded view
|

Re: Unable to start Tomcat 10.0.4

dkumar
In reply to this post by Robert Turner
> I suggest you have a read here:
> https://tomcat.apache.org/tomcat-10.0-doc/config/http.html#SSL_Support
> The documentation covers the details you need to correctly configure
Tomcat
> and SSL and links to a related page about SSL configuration.

> Notice the line:
> Each secure connector must define at least one *SSLHostConfig*. The
names
> of the *SSLHostConfig* elements must be unique and one of them must
match
> the defaultSSLHostConfigName attribute of the *Connector*.
Thank you all
Issue has been resolved after configuring SSLHostConfig


On Tue, Mar 16, 2021 at 12:42 PM <[hidden email]> wrote:

> > If you look at the stack trace, it tells you what the problem is:
>
> >  Caused by: java.lang.IllegalArgumentException: No SSLHostConfig
> > element was found with the hostName [_default_] to match the
> > defaultSSLHostConfigName for the connector [https-openssl-nio-8443]
>
> > So it no longer looks like you are hitting a port in use issue.
> Please suggest what configuration need to do. To remove this error. It
> will be very helpful for us.
>
>
> On Tue, Mar 16, 2021 at 12:01 PM <[hidden email]> wrote:
>
> > > Please provide full stacktrace
> > Please find full catlina log and I have already shared server.xml in
> trail
> > mail
> >
> > 16-Mar-2021 21:26:54.263 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property
[compressableMimeType]
> > to
> >
> >
>
>
[text/html,text/xml,text/javascript,application/x-javascript,application/javascript]
> > 16-Mar-2021 21:26:54.269 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [clientAuth] to
> [false]
> > 16-Mar-2021 21:26:54.270 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [sslProtocol] to
[TLS]
> > 16-Mar-2021 21:26:54.270 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property
[sslEnabledProtocols]

> to
> > [TLSv1.2,TLSv1.1]
> > 16-Mar-2021 21:26:54.270 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property
> > [allowUnsafeLegacyRenegotiation] to [false]
> > 16-Mar-2021 21:26:54.270 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [ciphers] to
> > [TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA]
> > 16-Mar-2021 21:26:54.271 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [keystoreFile] to
> > [/conf/eNotice.key]
> > 16-Mar-2021 21:26:54.272 WARNING [main]
> > org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> > [Server/Service/Connector] failed to set property [keystorePass] to
> > [eNotice@1]
> > 16-Mar-2021 21:26:54.306 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Server version
> name:
> >   Apache Tomcat/10.0.4
> > 16-Mar-2021 21:26:54.307 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Server built:
Mar

> > 5 2021 11:07:15 UTC
> > 16-Mar-2021 21:26:54.307 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Server version
> > number: 10.0.4.0
> > 16-Mar-2021 21:26:54.307 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows
> > 10
> > 16-Mar-2021 21:26:54.307 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
> > 16-Mar-2021 21:26:54.308 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Architecture:
x86
> > 16-Mar-2021 21:26:54.308 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Java Home:
> > C:\Program Files (x86)\Java\jdk1.8.0_271\jre
> > 16-Mar-2021 21:26:54.308 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
> > 1.8.0_271-b09
> > 16-Mar-2021 21:26:54.308 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
Oracle

> > Corporation
> > 16-Mar-2021 21:26:54.309 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
> > D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> > 16-Mar-2021 21:26:54.309 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
> > D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> > 16-Mar-2021 21:26:54.310 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> >
> >
>
>
-Djava.util.logging.config.file=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\conf\logging.properties

> > 16-Mar-2021 21:26:54.310 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> > 16-Mar-2021 21:26:54.311 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument: -Djdk.tls.ephemeralDHKeySize=2048
> > 16-Mar-2021 21:26:54.311 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources

> > 16-Mar-2021 21:26:54.311 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument: -Dignore.endorsed.dirs=
> > 16-Mar-2021 21:26:54.312 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> -Dcatalina.base=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> > 16-Mar-2021 21:26:54.312 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> -Dcatalina.home=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4
> > 16-Mar-2021 21:26:54.312 INFO [main]
> > org.apache.catalina.startup.VersionLoggerListener.log Command line
> > argument:
> > -Djava.io.tmpdir=D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\temp
> > 16-Mar-2021 21:26:54.348 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded
> Apache
> > Tomcat Native library [1.2.26] using APR version [1.7.0].
> > 16-Mar-2021 21:26:54.348 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR
> > capabilities: IPv6 [true], sendfile [true], accept filters [false],
> random
> > [true], UDS [true].
> > 16-Mar-2021 21:26:54.363 INFO [main]
> > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > 16-Mar-2021 21:26:54.658 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["http-nio-8080"]
> > 16-Mar-2021 21:26:54.681 INFO [main]
> > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > ["https-openssl-nio-8443"]
> > 16-Mar-2021 21:26:54.683 SEVERE [main]
> > org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
to
> > initialize component
> > [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
> >         org.apache.catalina.LifecycleException: Protocol handler
> > initialization failed
> >                 at
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> >                 at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                 at
> >
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> >                 at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                 at
> >
> >
>
>
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1045)

> >                 at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> >                 at
> > org.apache.catalina.startup.Catalina.load(Catalina.java:747)
> >                 at
> > org.apache.catalina.startup.Catalina.load(Catalina.java:769)
> >                 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:498)
> >                 at
> > org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
> >                 at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
> >         Caused by: java.lang.IllegalArgumentException: No
SSLHostConfig

> > element was found with the hostName [_default_] to match the
> > defaultSSLHostConfigName for the connector [https-openssl-nio-8443]
> >                 at
> > org.apache.tomcat.util.net
> > .AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:76)
> >                 at
> > org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:203)
> >                 at
> > org.apache.tomcat.util.net
> > .AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1175)
> >                 at
> > org.apache.tomcat.util.net
> > .AbstractEndpoint.init(AbstractEndpoint.java:1188)
> >                 at
> > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
> >                 at
> >
> >
>
>
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
> >                 at
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
> >                 ... 13 more
> > 16-Mar-2021 21:26:54.685 INFO [main]
> > org.apache.catalina.startup.Catalina.load Server initialization in
[549]
> > milliseconds
> > 16-Mar-2021 21:26:54.710 INFO [main]
> > org.apache.catalina.core.StandardService.startInternal Starting
service

> > [Catalina]
> > 16-Mar-2021 21:26:54.710 INFO [main]
> > org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
> > engine: [Apache Tomcat/10.0.4]
> > 16-Mar-2021 21:26:54.720 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs]
> > 16-Mar-2021 21:26:55.028 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of
web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\docs] has
> > finished in [308] ms
> > 16-Mar-2021 21:26:55.029 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples]
> > 16-Mar-2021 21:26:55.403 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of
web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\examples] has
> > finished in [373] ms
> > 16-Mar-2021 21:26:55.403 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager]
> > 16-Mar-2021 21:26:55.458 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of
web

> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\host-manager]
> has
> > finished in [55] ms
> > 16-Mar-2021 21:26:55.459 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager]
> > 16-Mar-2021 21:26:55.488 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of
web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\manager] has
> > finished in [29] ms
> > 16-Mar-2021 21:26:55.488 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT]
> > 16-Mar-2021 21:26:55.509 INFO [main]
> > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of
web

> > application directory
> > [D:\apache-tomcat-10.0.4_bk\apache-tomcat-10.0.4\webapps\ROOT] has
> > finished in [21] ms
> > 16-Mar-2021 21:26:55.514 INFO [main]
> > org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
> > ["http-nio-8080"]
> > 16-Mar-2021 21:26:55.563 INFO [main]
> > org.apache.catalina.startup.Catalina.start Server startup in [876]
> > milliseconds
> >
> > On Tue, 16 Mar 2021 at 22:49, <[hidden email]> wrote:
> > >
> > > >> Your more recent exception log didn't include the "caused by"
> > exception
> > > > --
> > > >> which is the actual failure details. Double-check that and make
> sure
> > > > it's
> > > >> the same issue.
> > > >>
> > > >> Also, use netstat to confirm you aren't using the ports already.
> > > > Changing
> > > >> it may just find another conflict (although less likely). The
first

> > > > error
> > > >> was quite clear about the port being unavailable.
> > > >>
> > > >> How are you starting Tomcat? Are you somehow starting it twice?
> > > > I start tomcat click on batch file. I have changed port 80 to 81
> > please
> > > > find both log below. Unable to find any port (80, 81, 443) in
> netstat.
> > > > Please suggest where I am doing wrong
> > > >
> > > > Old log with port 80 and 443
> > > > 16-Mar-2021 16:45:44.410 INFO [main]
> > > > org.apache.catalina.core.AprLifecycleListener.initializeSSL
OpenSSL
> > > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > > 16-Mar-2021 16:45:44.704 INFO [main]
> > > > org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler

> > > > ["http-nio-80"]
> > > > 16-Mar-2021 16:45:44.716 SEVERE [main]
> > > > org.apache.catalina.util.LifecycleBase.handleSubClassException
> Failed
> > to
> > > > initialize component [Connector[null-80]]
> > > >          org.apache.catalina.LifecycleException: Protocol handler
> > > > initialization failed
> > > >                  at
> > > >
> > >
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > > >                  at
> > > >
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > > >                  at
> > > >
> > >
> >
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> > > >                  at
> > > >
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > > >
> > > > New log with change port 81 and 443
> > > > 16-Mar-2021 20:16:06.094 INFO [main]
> > > > org.apache.catalina.core.AprLifecycleListener.initializeSSL
OpenSSL
> > > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > > 16-Mar-2021 20:16:06.380 INFO [main]
> > > > org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler
> > > > ["http-nio-81"]
> > > > 16-Mar-2021 20:16:06.411 INFO [main]
> > > > org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler

> > > > ["https-openssl-nio-443"]
> > > > 16-Mar-2021 20:16:06.413 SEVERE [main]
> > > > org.apache.catalina.util.LifecycleBase.handleSubClassException
> Failed
> > to
> > > > initialize component
> > > > [Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
> > > >          org.apache.catalina.LifecycleException: Protocol handler
> > > > initialization failed
> > > >                  at
> > > >
> > >
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > > >                  at
> > > >
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > > >                  at
> > > >
> > >
> >
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> > > >                  at
> > > >
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

> > > >
> > > > On Tue, Mar 16, 2021 at 9:38 AM <[hidden email]> wrote:
> > > >
> > > >>> Deepak,
> > > >>> You already have some service listening on port 80 (IIS maybe?)
> > > >>>
> > > >>>
> > > >>> from mobile (sorry for typos ;)
> > > >>>
> > > >>> We have changed the port still getting same error
> > > >>> Maybe you have the same port configured twice in your
> > conf/server.xml?
> > > >>> Please post *all* <Connector> elements from your conf/server.xml
> > file,
> > > >>> being careful to remove any secrets from your configuration.
> > > >> -chris
> > > >> please find conf/server.xml file
> > > >>
> > > >> <?xml version="1.0" encoding="UTF-8"?>
> > > >> <Server port="8005" shutdown="SHUTDOWN">
> > > >>    <Listener
> > > > className="org.apache.catalina.startup.VersionLoggerListener"
> > > >> />
> > > >>    <Listener
> > className="org.apache.catalina.core.AprLifecycleListener"
> > > >> SSLEngine="on" />
> > > >>    <Listener
> > > >>
> className="org.apache.catalina.core.JreMemoryLeakPreventionListener"
> > />
> > > >>    <Listener
> > > >>
> >
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"

> > > > />
> > > >>    <Listener
> > > >>
> > className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> > > > />
> > > >>    <GlobalNamingResources>
> > > >>      <Resource name="UserDatabase" auth="Container"
> > > >>                type="org.apache.catalina.UserDatabase"
> > > >>                description="User database that can be updated and
> > > saved"
> > > >>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> > > >>                pathname="conf/tomcat-users.xml" />
> > > >>    </GlobalNamingResources>
> > > >>    <Service name="Catalina">
> > > >>          <Connector port="81" maxHttpHeaderSize="8192"
> > > >>                     maxThreads="150" minSpareThreads="25"
> > > >> enableLookups="false" redirectPort="445" acceptCount="100"
> > > >>                     connectionTimeout="302000"
> > > > disableUploadTimeout="true"
> > > >> compression="on" compressionMinSize="2048"
> > > >> noCompressionUserAgents="gozilla, traviata"
> > > >>
> > > >
> > >
> >
> >
>
>
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/javascript"

> > > >>   server=" " />
> > > >>          <Connector protocol
> > > > ="org.apache.coyote.http11.Http11NioProtocol"
> > > >> port="445" maxHttpHeaderSize="8192" maxThreads="150"
> > > >>                                  minSpareThreads="25"
> > > > enableLookups="false"
> > > >> disableUploadTimeout="true" acceptCount="100" scheme="https"
> > > > secure="true"
> > > >>                                  clientAuth="false"
> sslProtocol="TLS"
> > > >> sslEnabledProtocols="TLSv1.2,TLSv1.1" SSLEnabled="true"
> > > >> allowUnsafeLegacyRenegotiation="false"
> > > >>
> >
ciphers="TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"

> > > >>                                  keystoreFile="/conf/abc.key"
> > > >> keystorePass="changeit" server=" " />
> > > >>      <Engine name="Catalina" defaultHost="localhost">
> > > >>        <Realm className="org.apache.catalina.realm.LockOutRealm">
> > > >>          <Realm
> > className="org.apache.catalina.realm.UserDatabaseRealm"
> > > >>                 resourceName="UserDatabase"/>
> > > >>        </Realm>
> > > >>        <Host name="localhost"  appBase="webapps"
> > > >>              unpackWARs="true" autoDeploy="true">
> > > >>          <Valve
> className="org.apache.catalina.valves.AccessLogValve"
> > > >> directory="logs"
> > > >>                 prefix="localhost_access_log" suffix=".txt"
> > > >>                 pattern="%h %l %u %t &quot;%r&quot; %s %b" />
> > > >>        </Host>
> > > >>      </Engine>
> > > >>    </Service>
> > > >> </Server>
> > > >>
> > > >>> 16-Mar-2021 18:09:38.299 INFO [main]
> > > >>> org.apache.coyote.AbstractProtocol.init Initializing
> ProtocolHandler
> > > >>> ["http-nio-81"]
> > > >>> 16-Mar-2021 18:09:38.363 INFO [main]
> > > >>> org.apache.coyote.AbstractProtocol.init Initializing
> ProtocolHandler
> > > >>> ["https-openssl-nio-445"]
> > > >>> 16-Mar-2021 18:09:38.364 SEVERE [main]
> > > >>> org.apache.catalina.util.LifecycleBase.handleSubClassException
> > Failed
> > > > to
> > > >>> initialize component
> > > >>> [Connector[org.apache.coyote.http11.Http11NioProtocol-445]]
> > > >>>           org.apache.catalina.LifecycleException: Protocol
handler
> > > >>> initialization failed
> > > >>>                   at
> > > >>>
> > >
> > > > On Linux you cannot bind ports below 1024 without admin
privileges.
> > > >
> > > > Maybe that is also the case in Windows ?
> > > >
> > > > Then you could change port 80 into 8080 and 443 into 8443 and see
if

> > > > that works.
> > >
> > > I have changed port to 8080 and 8443. And my window user has full
> > control
> > > permission still bad luck
> > >
> > > 16-Mar-2021 21:06:37.145 INFO [main]
> > > org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL
> > > successfully initialized [OpenSSL 1.1.1i  8 Dec 2020]
> > > 16-Mar-2021 21:06:37.434 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["http-nio-8080"]
> > > 16-Mar-2021 21:06:37.460 INFO [main]
> > > org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> > > ["https-openssl-nio-8443"]
> > > 16-Mar-2021 21:06:37.469 SEVERE [main]
> > > org.apache.catalina.util.LifecycleBase.handleSubClassException
Failed
> to
> > > initialize component
> > > [Connector[org.apache.coyote.http11.Http11NioProtocol-8443]]
> > >         org.apache.catalina.LifecycleException: Protocol handler
> > > initialization failed
> > >                 at
> > >
> >
>
org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
> > >                 at
> > > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
> > >                 at
> > >
> >
> >
>
>
org.apache.catalina.core.StandardService.initInternal(StandardService.java:558)
> > >
> > >
> > >
> >
> >
> >
> > "Disclaimer and confidentiality clause -
> >  This message and any attachments relating to official business of
CCIL
> OR
> > ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> > original addressee only.
> > The message may contain information that is confidential and subject
to
> > legal privilege.
> > Any views expressed in this message are those of the individual
sender.

> > If you have received this message in error, please notify the original
> > sender immediately and destroy the message and copies thereof and any
> > attachments contained in it .
> >  If you are not the intended recipient of this message, you are hereby
> > notified that you must not disseminate, copy, use, distribute, or take
> any
> > action in connection therewith.
> >  CCIL cannot ensure that the integrity of this communication has been
> > maintained nor that it is free of errors, viruses, interception and/or
> > interference.
> > CCIL is not liable whatsoever for loss or damage resulting from the
> > opening of this message and/or attachments and/or the use of the
> > information contained in this message and/or attachments."
> >
>
>
>
>
> "Disclaimer and confidentiality clause -
>  This message and any attachments relating to official business of CCIL
OR

> ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the
> original addressee only.
> The message may contain information that is confidential and subject to
> legal privilege.
> Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the message and copies thereof and any
> attachments contained in it .
>  If you are not the intended recipient of this message, you are hereby
> notified that you must not disseminate, copy, use, distribute, or take
any
> action in connection therewith.
>  CCIL cannot ensure that the integrity of this communication has been
> maintained nor that it is free of errors, viruses, interception and/or
> interference.
> CCIL is not liable whatsoever for loss or damage resulting from the
> opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments."
>




"Disclaimer and confidentiality clause -
 This message and any attachments relating to official business of CCIL OR ANY OF IT'S SUBSIDIARIES is proprietary to CCIL and intended for the original addressee only.
The message may contain information that is confidential and subject to legal privilege.
Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the message and copies thereof and any attachments contained in it .
 If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith.
 CCIL cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference.
CCIL is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments."