관리 메뉴

ふたりで

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:04
728x90
반응형
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
Comments