I completed the basic setup of Tomcat 8 on SUSE, but now I want to move to production setup which uses APR, so I installed the following packages in the same order
1) OpenSSL lib. --[/usr/local/ssl/]
2) APR lib --[/usr/local/apr/]
3) compiled and installed libtcnative using the above packages.
The installation did not show any error report, but when i start tomcat using startup.sh, this error is generated in log file
"Failed to initialize the SSLEngine. org.apache.tomcat.jni.Error: 70023: This function
has not been implemented on this platform at org.apache.tomcat.jni.SSL.initialize(Native Method) "
and also this error goes away when i modify the aprlifecycle listener in server.xml like
"Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off" />"
but then tomcat wont start with https://____:port no
Can somebody please let me know what am i doing wrong or are there any steps that i am missing.
Thanks in advance.
Regards,
Rohit
这是 ./config.nice 的输出
检查构建系统类型... x86_64-unknown-linux-gnu
检查主机系统类型... x86_64-unknown-linux-gnu 检查目标系统类型... x86_64-unknown-linux-gnu 检查 BSD 兼容安装... /usr/bin/install -c 检查工作 mkdir -p... 是 Tomcat 原生版本:1.1.28 检查所选布局... tcnative 检查 APR... 是 将 CC 设置为“gcc”,将 CPP 设置为“gcc -E”,检查与 BSD 兼容的安装。 .. /usr/bin/install -c 检查 JDK 位置(请稍候)... /usr/lib64/jvm/jdk1.7.0_40 检查 Java 平台... 检查 Java 平台... 检查 sablevm... NONE 添加“-I/usr/lib64/jvm/jdk1.7.0_40/include”到 TCNATIVE_PRIV_INCLUDES 检查 os_type 目录... linux 添加“-I/usr/lib64/jvm/jdk1.7.0_40/include/linux”到 TCNATIVE_PRIV_INCLUDES 检查 gcc... gcc 检查 C 编译器默认输出文件名... a.out 检查 C 编译器是否工作... 是检查我们是否在交叉编译... 不检查可执行文件的后缀.. . 检查目标文件的后缀... o 检查我们是否使用 GNU C 编译器... 是 检查 gcc 是否接受 -g... 是 检查 gcc 选项以接受 ANSI C... 不需要检查 OpenSSL库...使用 /usr/local/ssl/lib 和 /usr/local/ssl/include 中的 openssl 检查 OpenSSL 库版本...确定检查 OpenSSL DSA 支持...是的,添加“-I/usr/local/ ssl/include" 到 TCNATIVE_PRIV_INCLUDES 设置 TCNATIVE_LDFLAGS 到 "-L/usr/local/ssl/lib -Wl,-rpath,/usr/local/ssl/lib -lssl -lcrypto"将“-DHAVE_OPENSSL”添加到 CFLAGS 将 TCNATIVE_LIBS 设置为“”将 TCNATIVE_LIBS 设置为“/usr/local/apr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl” 配置:创建 ./config.status 配置.status:创建 tcnative.pc config.status:创建 Makefile config.status:执行默认命令 $$:/u/naskulwa/Desktop/Tomcat8/apache-tomcat-8.0.0-RC3/bin/tomcat-native-1.1。 28-src/jni/native> ./config.status config.status: 创建tcnative.pc config.status: 创建Makefile config.status: 执行默认命令创建 tcnative.pc config.status: 创建 Makefile config.status: 执行默认命令 $$:/u/naskulwa/Desktop/Tomcat8/apache-tomcat-8.0.0-RC3/bin/tomcat-native-1.1.28-src /jni/native> ./config.status config.status: 创建 tcnative.pc config.status: 创建 Makefile config.status: 执行默认命令创建 tcnative.pc config.status: 创建 Makefile config.status: 执行默认命令 $$:/u/naskulwa/Desktop/Tomcat8/apache-tomcat-8.0.0-RC3/bin/tomcat-native-1.1.28-src /jni/native> ./config.status config.status: 创建 tcnative.pc config.status: 创建 Makefile config.status: 执行默认命令