`
annan211
  • 浏览: 445726 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

java.io.FileNotFoundException: /home/tomcatuser1/.keystore (No such file or dire

 
阅读更多
错误解决
     java.io.FileNotFoundException: /home/tomcatuser1/.keystore (No such file or directory)

     需要配置tomcat native

     具体步骤如下



1,安装apr

cd /home/tomcat/servers/tomcat-7.0.56-test/bin
wget http://www.apache.org/dist/apr/apr-1.5.1.tar.gz
tar zxvf apr-1.5.1.tar.gz
cd apr-1.5.1
./configure
make
make install

2, 安装apr util

wget http://www.apache.org/dist/apr/apr-util-1.5.4.tar.gz
tar zxvf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --with-apr=/usr/local/apr
make
make install

3,安装tomcat native

cd /home/tomcat/servers/tomcat-7.0.56-test/bin

tar zxvf tomcat-native.tar.gz
cd tomcat-native-1.1.31-src/jni/native/
./configure --with-apr=/usr/local/apr --with-java-home=$JAVA_HOME
make
make install

4,更新环境变量
vi /etc/profile
最后一行加入:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib  
source /etc/profile

5,启动tomcat并查看日志
不再出现:
十二月 23, 2014 3:42:42 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 

/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
十二月 23, 2014 3:42:42 下午 org.apache.coyote.AbstractProtocol init

正常:
十二月 23, 2014 4:32:28 下午 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.31 using APR version 1.5.1.
十二月 23, 2014 4:32:28 下午 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
十二月 23, 2014 4:32:29 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics