yunjae830
72
2021-03-08 20:54:34 작성 2021-03-08 20:55:09 수정됨
5
200

spring boot 서버 배포 테스트 중인데 하루동안 해봐도 안풀려서 도움좀 부탁드립니다..


계속 나오는 에러인데 무슨 에러인지 감이 안잡히네요 ㅜㅜ 도와주세요.


org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.springframework.bo                                                                  ot.web.server.WebServerException: Unable to start embedded Tomcat server

        at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:181) ~[spring-context-5.3.4.ja                                                                  r!/:5.3.4]

        at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) ~[spring-context-5.3.4.                                                                  jar!/:5.3.4]

        at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356) ~[spring-con                                                                  text-5.3.4.jar!/:5.3.4]

        at java.lang.Iterable.forEach(Iterable.java:75) ~[na:1.8.0_282]

        at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155) ~[spring-context-5.3.4                                                                  .jar!/:5.3.4]

        at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123) ~[spring-context-5.3.4.                                                                  jar!/:5.3.4]

        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:934) ~[spring-context-                                                                  5.3.4.jar!/:5.3.4]

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:585) ~[spring-context-5.3.4.                                                                  jar!/:5.3.4]

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144                                                                  ) ~[spring-boot-2.4.3.jar!/:2.4.3]

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) [spring-boot-2.4.3.jar!/:2.4.3]

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.4.3.jar!/:2.4.3]

        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) [spring-boot-2.4.3.jar!/:2.4.3]

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) [spring-boot-2.4.3.jar!/:2.4.3]

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1311) [spring-boot-2.4.3.jar!/:2.4.3]

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) [spring-boot-2.4.3.jar!/:2.4.3]

        at kr.co.misa.MisaApplication.main(MisaApplication.java:10) [classes!/:0.0.1-SNAPSHOT]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_282]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_282]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_282]

        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_282]

        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [misa-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:107) [misa-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [misa-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]

        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) [misa-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]

Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat server

        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:229) ~[spring-boot-2.4.3.jar!/:2.4.3]

        at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:43) ~[spring-boot-2                                                                  .4.3.jar!/:2.4.3]

        at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178) ~[spring-context-5.3.4.ja                                                                  r!/:5.3.4]

        ... 23 common frames omitted

Caused by: java.lang.IllegalArgumentException: standardService.connector.startFailed

        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:244) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:282) ~[spring-boot                                                                  -2.4.3.jar!/:2.4.3]

        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:213) ~[spring-boot-2.4.3.jar!/:2.4.3]

        ... 25 common frames omitted

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

        at org.apache.catalina.connector.Connector.startInternal(Connector.java:1074) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:240) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        ... 27 common frames omitted

Caused by: java.lang.IllegalArgumentException: /home/ubuntu/misa/target/misa.p12 (No such file or directory)

        at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:99) ~[tomcat-embed-core-9.0.43.jar!/:9.0                                                                  .43]

        at org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:71) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43                                                                  ]

        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:246) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1193) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1279) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:608) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.catalina.connector.Connector.startInternal(Connector.java:1071) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        ... 29 common frames omitted

Caused by: java.io.FileNotFoundException: /home/ubuntu/misa/target/misa.p12 (No such file or directory)

        at java.io.FileInputStream.open0(Native Method) ~[na:1.8.0_282]

        at java.io.FileInputStream.open(FileInputStream.java:195) ~[na:1.8.0_282]

        at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[na:1.8.0_282]

        at java.io.FileInputStream.<init>(FileInputStream.java:93) ~[na:1.8.0_282]

        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) ~[na:1.8.0_282]

        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) ~[na:1.8.0_282]

        at org.apache.catalina.startup.CatalinaBaseConfigurationSource.getResource(CatalinaBaseConfigurationSource.java:118) ~[tomcat-embed-co                                                                  re-9.0.43.jar!/:9.0.43]

        at org.apache.tomcat.util.net.SSLUtilBase.getStore(SSLUtilBase.java:197) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.tomcat.util.net.SSLHostConfigCertificate.getCertificateKeystore(SSLHostConfigCertificate.java:207) ~[tomcat-embed-core-9                                                                  .0.43.jar!/:9.0.43]

        at org.apache.tomcat.util.net.SSLUtilBase.getKeyManagers(SSLUtilBase.java:282) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.tomcat.util.net.SSLUtilBase.createSSLContext(SSLUtilBase.java:246) ~[tomcat-embed-core-9.0.43.jar!/:9.0.43]

        at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:97) ~[tomcat-embed-core-9.0.43.jar!/:9.0                                                                  .43]

        ... 35 common frames omitted



--------------------------------------[ pom.xml ]--------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.3</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>kr.co.misa</groupId>
<artifactId>misa</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>misa</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.4</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<!-- aws 연동 -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.11.327</version>
</dependency>
<!-- Json 자료형 사용가능 -->
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1</version>
</dependency>
<!-- MVC resolve -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- 화면 레이아웃 합쳐주는 기능 -->
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>3.0.7</version>
</dependency>
<!-- thymeleaf 사용 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client -->
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<!-- defaultGoal 목표설정을 해주지 않으면 배포시 에러가 남 -->
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

</project>


0
  • 답변 5

  • 준호
    563
    2021-03-08 20:58:24

    /home/ubuntu/misa/target/misa.p12 가 없다네요

  • yunjae830
    72
    2021-03-08 21:02:24 작성 2021-03-08 21:04:02 수정됨

    준호 

    답변 감사합니다.

    확인해본 결과 정말로 target 밑에 없습니다. 정말감사합니다.




  • yunjae830
    72
    2021-03-08 21:15:07

    준호 

    아 해결되었습니다. 기분이 너무 좋네요 ~~ 

    제가 꼼꼼하지 못한것도 있지만 에러 로그 보는 것도 경험에서 나오는건가요? 

    감사합니다.

  • Mambo
    5k
    2021-03-08 21:19:43
  • yunjae830
    72
    2021-03-08 21:25:13

    Mambo 

    좋은글 감사합니다. 

    블로그에 저장해뒀다가 자주 꺼내 읽어야겠습니다.

    에러로그는 이제부턴 끝까지 참고 다보기..

  • 로그인을 하시면 답변을 등록할 수 있습니다.