java容器的启动不了_java - Docker容器无法启动tomcat_java_酷徒编程知识库

商昂然
2023-12-01

我要从Docker启动tomcat web服务器容器。

构建成功,但无法启动tomcat,端口正在使用中,我尝试了几个不同的端口,但仍然不能工作。

Successfully built 63c9707dcd62 Successfully tagged heads-ov-acu/ov-adv-act-updater:latest [INFO] Built heads-ov-acu/ov-adv-act-updater [INFO] Tagging heads-ov-acu/ov-adv-act-updater with 1.2.4 -local [INFO] Tagging heads-ov-acu/ov-adv-act-updater with latest [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time : 20.618 s [INFO] Finished at : 2020-01-29 T12:58:11-08:00 [INFO] ------------------------------------------------------------------------ docker-compose -f src/main/docker/compose/common-services.yml -f src/main/docker/compose/dev-services.yml up -d ov-acu-ov-adv-act-updater Creating network "compose_ov-acu-ov-adv-act-updater" with the default driver

应用程序启动失败

描述:

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

动作:

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

| loglevel="ERROR" | thread="main" | logger="o.apache.catalina.core.StandardService" Failed to start connector [Connector[HTTP/1.1-8449]]

org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8449]]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)

at org.apache.catalina.core.StandardService.addConnector(StandardService.java:225)

at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:256)

at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:203)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:289)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:123)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:666)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:353)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:300)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1082)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1071)

at com.att.eg.heads.ov_acu.ov_adv_act_updater.Application.main(Application.java:22)

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.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)

at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)

at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)

at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)

Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed

at org.apache.catalina.connector.Connector.startInternal(Connector.java:1020)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

... 21 common frames omitted

Caused by: java.lang.IllegalArgumentException: Short read of DER length

at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:100)

at org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:72)

at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:244)

at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1191)

at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:591)

at org.apache.catalina.connector.Connector.startInternal(Connector.java:1018)

... 22 common frames omitted

Caused by: java.io.IOException: Short read of DER length

at sun.security.util.DerInputStream.getLength(DerInputStream.java:582)

at sun.security.util.DerValue.init(DerValue.java:391)

at sun.security.util.DerValue.(DerValue.java:332)

at sun.security.util.DerValue.(DerValue.java:345)

at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1938)

at java.security.KeyStore.load(KeyStore.java:1445)

at org.apache.tomcat.util.security.KeyStoreUtil.load(KeyStoreUtil.java:67)

at org.apache.tomcat.util.net.SSLUtilBase.getStore(SSLUtilBase.java:216)

at org.apache.tomcat.util.net.SSLHostConfigCertificate.getCertificateKeystore(SSLHostConfigCertificate.java:206)

at org.apache.tomcat.util.net.SSLUtilBase.getKeyManagers(SSLUtilBase.java:279)

at org.apache.tomcat.util.net.SSLUtilBase.createSSLContext(SSLUtilBase.java:246)

at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:98)

... 27 common frames omitted

| loglevel="INFO" | thread="main" | logger="o.a.coyote.http11.Http11NioProtocol" Pausing ProtocolHandler ["https-jsse-nio-8449"]

| loglevel="INFO" | thread="main" | logger="o.apache.catalina.core.StandardService" Stopping service [Tomcat]

| loglevel="INFO" | thread="main" | logger="org.apache.catalina.util.LifecycleBase" The stop() method was called on component [StandardServer[-1]] after stop() had already been called. The second call will be ignored.

| loglevel="INFO" | thread="main" | logger="o.a.coyote.http11.Http11NioProtocol" Stopping ProtocolHandler ["https-jsse-nio-8449"]

| loglevel="INFO" | thread="main" | logger="o.a.coyote.http11.Http11NioProtocol" Destroying ProtocolHandler ["https-jsse-nio-8449"]

| loglevel="INFO" | thread="main" | logger="utoConfigurationReportLoggingInitializer"

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.

| loglevel="ERROR" | thread="main" | logger="o.s.b.d.LoggingFailureAnalysisReporter"

 类似资料: