`
annan211
  • 浏览: 444675 次
  • 性别: 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)
分享到:
评论

相关推荐

    System.IO.FileNotFoundException报错

    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies....

    eclipse 启动异常

    启动eclipse 时出现错误警告

    文件路径正确,报java.io.FileNotFoundException异常的原因及解决办法

    主要介绍了文件路径正确,报java.io.FileNotFoundException异常的原因及解决办法的相关资料,需要的朋友可以参考下

    大数据hadoop winutils.exe

    支持windows开发hadoop的连接,解决报警Did not find winutils.exe: java.io.FileNotFoundException

    FileNotFoundException: open failed: ENOENT (No such file or directory) 问题解决方案

    这个问题定位了大半天,先坐下记录。可能每个人遇到的问题情况不一样,我先说下我出现的问题解决方案:将mkdir() 改成mkdirs() ,至于为什么,后面介绍。 今天测试找我,说项目中测试录像直接crash了。...

    解决docker日志挂载的问题

    关键是本地服务器没有写入的权限 关键看这里吧(Permission denied), 一直没有看正方,以为是配置... java.io.FileNotFoundException: logs/bandwidth.log.2019-04-25.log (Permission denied) at java.io.FileNotFou

    jdk1.8.131

    java运行环境jdk1.8.0_131,windows下64位操作系统,添加环境变量JAVA_HOME:C:\Program Files\Java\jdk1.8.0_131 classpath:.,C:\Program Files\Java\jdk1.8.0_131jre\lib\rt.jar,C:\Program Files\Java\jdk1.8.0_131\...

    tzdb.dat 高版本jdk15 14 11 缺少 timezone calendar

    java.io.FileNotFoundException 报错解决 高版本jdk 运行 java -jar 时 缺少 jdk1.8中的这个文件

    BaiTinker.zip

    android端初次使用tinker热修复的框架使用,其实官网已经写得很详细了,大家可以参考官网去操作,我这里是为了自己记录一下,方便以后操作有个自己的思路。

    计算机网络实验报告 获取MAC socket通信

    import java.io.FileNotFoundException; import java.io.IOException; public class FileServer { /** * @param args */ public static void main(String[] args) { // 读取本地文件 try { java.io....

    package com.test;package com.test;package com.test;package com.test;

    import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; public class B { public static void main(String[] args) { File file = new ...

    window 本地执行 hadoop 缺失的hadoop.dll 和 winutils.exe 文件

    Caused by: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. at org.apache.hadoop.util.Shell.checkHadoopHomeInner(Shell.java:468) at org.apache.hadoop.util.Shell....

    Java学生成绩管理系统源代码

    import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io....

    java IO 编程实例

    import java.io.FileNotFoundException; import java.io.FileReader; public class TestFileReader { public static void main(String[] args) { int c = 0; FileReader freader = null; try { freader...

    websphere常见问题及解决办法

    websphere常见问题及解决办法 如 Error 404: SRVE0190E JSPG0049E

    hadoop-2.6.0 win工具包 hadoop.dll winutils.exe

    util.Shell (Shell.java:(694)) - Did not find ...java.io.FileNotFoundException: Could not locate Hadoop executable: E:\hadoop-3.0.2\bin\winutils.exe -see https://wiki.apache.org/hadoop/WindowsProblems

    hadoop-3.0.0 win工具包 hadoop.dll winutils.exe

    util.Shell (Shell.java:(694)) - Did not find ...java.io.FileNotFoundException: Could not locate Hadoop executable: E:\hadoop-3.0.2\bin\winutils.exe -see https://wiki.apache.org/hadoop/WindowsProblems

    Java:二进制方式读取文件

    import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class FileOperation { public static void...

    xml2jsonjar包

    import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import ...

Global site tag (gtag.js) - Google Analytics