当前位置:首页 > 开发 > 操作系统 > 正文

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

发表于: 2015-03-20   作者:annan211   来源:转载   浏览:
摘要: 错误解决      java.io.FileNotFoundException: /home/tomcatuser1/.keystore (No such file or directory)      需要配置tomcat native      具体步骤如下
错误解决
     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)

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

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号