Home > Back-end >  Springboot configuration HTTPS port appeared always start to take up
Springboot configuration HTTPS port appeared always start to take up

Time:09-30

# # to avoid port conflicts and server project
# server port=80
Server port=443
# certificate path.
# server.ssl.key-store=classpath:pay.xianzhiedu.com.cn.jks
Server. The SSL. Key - store=classpath: keystore. P12
# certificate password, please amend your certificate password for you.
# server. SSL. Key - store - password=123456
Server. The SSL. Key - store - password=111111
# the secret key library type
# server. SSL. KeyStoreType=JKS
Server. The SSL. KeyStoreType=as PKCS12
# certificate alias
Server. The SSL. KeyAlias=tyzf
# # # # HTTPS end


===================================for the configuration above==================================

Error description is as follows:
17:57:07 2018-12-27. 491. [the main] the DEBUG - O.S.B.D.L oggingFailureAnalysisReporter - Application failed to start due to an exception
Org. Springframework. Boot. Context. Embedded. Tomcat. ConnectorStartFailedException: Connector configured to listen on port 443 failed to start
The at org. Springframework. Boot. Context. Embedded. Tomcat. TomcatEmbeddedServletContainer. CheckThatConnectorsHaveStarted (TomcatEmbeddedServletContainer. Java: 222)
The at org. Springframework. Boot. Context. Embedded. Tomcat. TomcatEmbeddedServletContainer. Start (TomcatEmbeddedServletContainer. Java: 198)
The at org. Springframework. Boot. Context. Embedded. EmbeddedWebApplicationContext. StartEmbeddedServletContainer (EmbeddedWebApplicationContext. Java: 297)
The at org. Springframework. Boot. Context. Embedded. EmbeddedWebApplicationContext. FinishRefresh (EmbeddedWebApplicationContext. Java: 145)
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 546)
The at org. Springframework. Boot. Context. Embedded. EmbeddedWebApplicationContext. Refresh (EmbeddedWebApplicationContext. Java: 122)
The at org. Springframework. Boot. SpringApplication. Refresh (SpringApplication. Java: 693)
The at org. Springframework. Boot. SpringApplication. RefreshContext (SpringApplication. Java: 360)
The at org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 303)
The at org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 1118)
The at org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 1107)
The at org. Spring. Springboot. ClientApplication. Main (ClientApplication. Java: 32)
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java:
The at org. Springframework. Boot. Loader. MainMethodRunner. Run (MainMethodRunner. Java: 48)
The at org. Springframework. Boot. Loader. The Launcher. Launch (87). The Launcher Java:
At org. Springframework. Boot. Loader. The Launcher. The launch (the Launcher. Java: 50)
The at org. Springframework. Boot. Loader. JarLauncher. Main (JarLauncher. Java: 51)
17:57:07 2018-12-27. 491 (main) ERROR - O.S.B.D.L oggingFailureAnalysisReporter -

* * * * * * * * * * * * * * * * * * * * * * * * * * *
The APPLICATION FAILED TO START
* * * * * * * * * * * * * * * * * * * * * * * * * * *

Description:

The Tomcat connector configured to listen on port 443 failed to start. The port may already be in use or The connector may be misconfigured.

Action:

Verify the connector 's configuration, the identify and stop any process that' s listening on port 443, or configure this application to listen on another port.

CodePudding user response:

Just this port being used or occupied all of the port?
Feeling is your service is up, you start again, taking up naturally

CodePudding user response:

All the port may not be able to start the same error

CodePudding user response:

refer to the second floor qq_26865365 response:
all port may not be able to start the same error

Is deployed on Linux server? The port is not open

CodePudding user response:

Port take up is not the wrong, or wrong was swallowed by the springboot?

CodePudding user response:

refer to the second floor qq_26865365 response:
all port may not be able to start the same error


According to this way to see ah port is being used at https://blog.csdn.net/q343509740/article/details/80821409

CodePudding user response:

Port occupy this error should be
Java.net.BindException: Address already in use: bind

https://blog.csdn.net/qq_16307345/article/details/78029295

CodePudding user response:

Change a try other ports

CodePudding user response:

This is a Spring in detail the Boot configuration HTTPS, feel your problem or ports occupied, check whether the IDEA to start the normal, the other for your own system what process takes up your port, and then get rid of,
https://blog.csdn.net/RO_wsy/article/details/51319963

CodePudding user response:

Agree, try a different port, HTTP port, shutdown ports and AJP all want to change,
https://blog.csdn.net/hu_belif/article/details/80260478

CodePudding user response:

Is probably an alias not corresponding, but try to server SSL. KeyAlias=tyzf commented out, then start to see see!

CodePudding user response:

Eldest brother, problem solved? I also met the same problem, a lot of online said netstat ano | findstr searches 443 view port usage, and then kill the process method, I tried it on, switch to other ports, such as 9999, are still the errornullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related