Starting Tomcat Failed to initialize ProtocolHandler-related endpoint

I am trying to start an instance of tomcat (the only tomcat I have) and I am having some strange problems, I know this error:

Failed to initialize ProtocolHandler related endpoint

is that some other application uses the same port, but if I change the port in server.xml and run startup.bat again , I get the same but now pointing to a new port, every time I changing it, I get the same error, also check that other applications are listening on the same port using the netstat -ano | find "9080" , I tried this on three different machines (2 win7, 1 win server 2008), has anyone encountered this problem before?

February 13, 2014 1:25:22 org.apache.coyote.AbstractProtocol init INFO: Initializing the Handler protocol ["http-bio-9080"] February 13, 2014 13:25:22 org.apache.coyote.AbstractProtocol init INFO : Initializing ProtocolHandler ["http-bio-9443"] February 13, 2014 1:25:23 org.apache.coyote.AbstractProtocol init SEVERE: failed to initialize the endpoint associated with ProtocolHandler ["http-bio-9443"] Throwable occurred: java.io.IOException: $ {jazz.connector.sslProtocol} SSLContext is not available in org.apache.tomcat.util.net.jsse.JSSESocketFactory.init (JSSESocketFactory.java-00-0075) ...

thanks

+8
source share
1 answer

, https (SSL) tomcat tomcat .

3 , , , Exception :

SEVERE: Failed to initialize end point associated with ProtocolHandler [http-bi o-8443] java.io.IOException: Cannot recover key at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:54 4)

:

java.io.IOException: Keystore was tampered with, or password was incorrect at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772)

, server.xml, keystorePass keyPass, . , , changeit . server.xml https, .

: $Tomcat\bin>keytool -genkey -alias mkyong -keyalg RSA -keystore c:\mkyongkeystore

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
              maxThreads="150" scheme="https" secure="true"
              clientAuth="false" sslProtocol="TLS"
           keystoreFile="c:\mkyongkeystore"
           keystorePass="password" />

<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS"
           keystoreFile="conf/srccodes.jks"
           keystoreType="JKS"
           keystorePass="changeit"
           keyPass="changeit" />

.

0

Source: https://habr.com/ru/post/1526828/


All Articles