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 Version: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”
configure:创建./config.status
config.status:创建tcnative.pc
config.status:创建Makefile
config.status:执行默认命令
$$:/ U / naskulwa /桌面/ Tomcat8 / Apache的Tomcat的8.0.0-RC3 /斌/ Tomcat的天然-1.1.28-SRC / JNI /天然的GT; ./config.status
config.status:创建tcnative.pc
config.status:创建Makefile
config.status:执行默认命令
答案 0 :(得分:0)
看起来您在没有SSL支持的情况下构建了libtcnative。返回并检查config.nice的内容以确切了解所使用的内容。