Please provide full stacktrace On Tue, 16 Mar 2021 at 22:49, <dku...@ccilindia.co.in> 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 <dku...@ccilindia.co.in> 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 "%r" %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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org