spring boot

the apache tomcat native library could not be found using names [tcnative-2, libtcnative-2, tcnative-1, libtcnative-1]

원코드 2023. 2. 28. 16:45

대충 내장 톰캣이 라이브러리를 못 찾는다는 내용인데,

https://tomcat.apache.org/download-native.cgi

1. 여기 주소로 들어가서 화면 젤 아랫단에 Standard zip - recommended(PGP, SHA512)를 다운받고

 

Apache Tomcat® - Tomcat Native Downloads

Welcome to the Apache Tomcat® Native software download page. This page provides download links for obtaining the latest version of Tomcat Native software, as well as links to the archives of older releases. Only current recommended releases are available

tomcat.apache.org

2. 압축해제 해서 실행 환경에 맞는 tcnative-1.dll을 찾아서

(32bit는 \tomcat-native-1.2.36-openssl-1.1.1t-win32-bin\bin)

(64bit는 \tomcat-native-1.2.36-openssl-1.1.1t-win32-bin\bin\x64)

 

2. jdk의 bin 폴더에 넣어주면 된다

 

해결은 했는데 왜 안나던 오류가 나는지도 모르겠고 이거 외에도 다른 오류들이 떠서 정신 나갈거같다