linux - SUSE linux 中的 Tomcat 8 安装

标签 linux tomcat ssl

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 native 版本: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 ... 无 添加“-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 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: 执行默认命令

最佳答案

看起来您构建的 libtcnative 没有 SSL 支持。返回并检查 config.nice 的内容以查看到底使用了什么。

关于linux - SUSE linux 中的 Tomcat 8 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19342338/

相关文章:

Linux 终端(Vim)无法粘贴整个代码?

java - 使用 JTATransactionManager 处理事务?

maven - 跳过聚合 Maven POM 中某些模块的部署

amazon-web-services - 将证书上传到 IAM

ruby-on-rails - 在 Rails 中实现 session

ssl - curl:(60)SSL证书问题:在代理后面上传时

java - 所需的库位于/natives/linux-arm/libconnect.so

c - BlueZ 的替代品?

linux - 在 Linux 上编写 SOAP 服务 - 需要工具和帮助

postgresql - Postgres 的 Jasper 服务器社区版安装问题