Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsatisfiedLinkError org.apache.tomcat.jni.SSLExt.sslCtxSetMode(JJ)J #81

Closed
sunng87 opened this issue Nov 24, 2015 · 2 comments
Closed
Assignees

Comments

@sunng87
Copy link

sunng87 commented Nov 24, 2015

I was trying to enable SSL_MODE_RELEASE_BUFFERS mode on my context pointer, in order to reduce memory usage of my application.

This is done by:

(SSLExt/sslCtxSetMode (.sslCtxPointer context) SSLExt/SSL_MODE_RELEASE_BUFFERS)

However, I am always getting error:

UnsatisfiedLinkError org.apache.tomcat.jni.SSLExt.sslCtxSetMode(JJ)J  org.apache.tomcat.jni.SSLExt.sslCtxSetMode (SSLExt.java:-2)

This has been tested on Ubuntu with self-compiled openssl 1.0.1p and 1.0.2d, and ArchLinux with latest 1.0.2d.

The ldd result on my ubuntu box:

    linux-vdso.so.1 =>  (0x00007fffc8ebf000)
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fa17e5c2000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fa17e1e7000)
    libapr-1.so.0 => /usr/lib/x86_64-linux-gnu/libapr-1.so.0 (0x00007fa17dfb5000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa17dd98000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa17d9d8000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa17d7d3000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fa17d5bc000)
    libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fa17d3b7000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fa17ea56000)

and my archlinux

    linux-vdso.so.1 (0x00007ffc2e9dd000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007fc6c5291000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007fc6c4e1a000)
    libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x00007fc6c4be5000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fc6c49c7000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007fc6c4623000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fc6c441f000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007fc6c4208000)
    libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007fc6c4003000)
    librt.so.1 => /usr/lib/librt.so.1 (0x00007fc6c3dfb000)
    libcrypt.so.1 => /usr/lib/libcrypt.so.1 (0x00007fc6c3bc2000)
    /usr/lib64/ld-linux-x86-64.so.2 (0x0000555797123000)

Just got no idea about this issue, so any question/help is welcomed. Thanks!

@normanmaurer
Copy link
Member

Let me have a look

@normanmaurer normanmaurer self-assigned this Dec 21, 2015
@normanmaurer
Copy link
Member

Actually I think we should remove SSLExt as we not support it anyway. You can do this kind of stuff via SSLContext. That said this is done by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants