반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- mysql
- git
- Maven
- Tomcat
- jquery
- nodejs
- popup
- MariaDB
- PM2
- Push
- FCM
- centos7
- ajax
- spring3
- docker
- rocky9
- SpringBoot
- mybatis
- yona
- config
- jenkins
- javascript
- node.js
- Java
- MSsql
- Eclipse
- NextJS
- Next.js
- security
- pwa
Archives
- Today
- Total
ふたりで
springboot starting WARN o.a.t.util.scan.StandardJarScanner - Failed to scan java.io.FileNotFoundException "*.jar" 본문
Spring
springboot starting WARN o.a.t.util.scan.StandardJarScanner - Failed to scan java.io.FileNotFoundException "*.jar"
graykang 2021. 10. 15. 14:04728x90
반응형
SMALL
음... Firebase push 서비스를 개발하기 위해 springboot 프로젝트에
아래와 같이 dependency를 추가 했다.
<dependency>
<groupId>com.google.firebase</groupId>
<artifactId>firebase-admin</artifactId>
<version>7.1.0</version>
</dependency>
근데 프로젝트를 실행하니 아래와 같은 경고 로그가 쫙 올라온다;;;;짜증 난다.... 경고라 무시해도 될까?
13:49 WARN o.a.t.util.scan.StandardJarScanner - Failed to scan [file:/C:/Users/graykang/.m2/repository/io/grpc/grpc-alts/1.30.0/httpcore-4.4.12.jar] from classloader hierarchy
java.io.FileNotFoundException: C:\Users\graykang\.m2\repository\io\grpc\grpc-alts\1.30.0\httpcore-4.4.12.jar (지정된 파일을 찾을 수 없습니다)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.jar.JarFile.(JarFile.java:166)
at java.util.jar.JarFile.(JarFile.java:130)
at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:221)
암튼 관련 경고 로그에 대해 구글링 해보니 다음과 같이 해당 경고 로그를 찍지 않게 하는 방법이 있었다.
- springboot의 임베디드 tomcat를 사용할 경우 application.properties 에 다음과 같이 설정.
server.tomcat.additional-tld-skip-patterns=*.jar
- springboot프로젝트이지만 war형태로 tomcat에 배포하여 사용할 경우 tomcat의 /conf/context.xml에 다음과 같이 설정.
<Context>
.
.
.
<JarScanner scanManifest="false"/>
</Context>
728x90
반응형
LIST
'Spring' 카테고리의 다른 글
springboot+sitemesh 설정. (0) | 2021.12.20 |
---|---|
JWT 토큰 유효기간 설정. (0) | 2021.10.29 |
VO 모델을 json으로 response시 특정 멤버 변수 숨기기 (0) | 2021.10.08 |
springboot @Transactional not working... (0) | 2021.07.27 |
springboot+security+csrf 설정 및 예외처리 설정. (0) | 2021.04.05 |
Comments