JAVA/Tomcat
[Tomcat] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:에러
minimaxs
2009. 11. 13. 17:22
위와 같은 에러가 나올때의 대처법.
참고 : http://tomcat.apache.org/tomcat-6.0-doc/apr.html
윈도우의 경우..
http://tomcat.heanet.ie/native/1.1.6/binaries/ 에서 tcnative-1.dll 라는 파일을 받은 다음에, 저장.
저장한 디렉토리를 환경변수 path 에 설정한다.
리눅스의 경우..
http://tomcat.heanet.ie/native/1.1.6/binaries/ 에서 소스 받아서 설치.
Most Linux distributions will ship packages for APR and OpenSSL. The JNI wrapper (libtcnative) will then have to be compiled. It depends on APR, OpenSSL, and the Java headers.
Requirements:
- APR 1.2+ development headers (libapr1-dev package)
- OpenSSL 0.9.7+ development headers (libssl-dev package)
- JNI headers from Java compatible JDK 1.4+
- GNU development environment (gcc, make)
The wrapper library sources are located in the Tomcat binary bundle, in the
bin/tomcat-native.tar.gz
archive. Once the build environment is installed and the source archive is extracted, the wrapper library can be compiled using (from the folder containing the configure script):
./configure && make & make install