Forum OpenACS Q&A: Response to ns_java / ns_javablend

Collapse
Posted by Dan Wickstrom on
I don't see any error messages. Are you saying that it just hangs? If so, you probably have lib compatiblity problem. Try this:

80 danw@castor:/usr/local/jdk/jdk1.1.8/lib/sparc/native_threads>ldd libjava.so
        libthread.so.1 =>        /usr/lib/libthread.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
81 danw@castor:/usr/local/jdk/jdk1.1.8/lib/sparc/native_threads>cd /usr/local/aolserver/bin
82 danw@castor:/usr/local/aolserver/bin>ldd nsd
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1
83 danw@castor:/usr/local/aolserver/bin>ldd libnsjava.so 
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libthread.so.1 =>        /usr/lib/libthread.so.1
        libjava.so =>    /usr/local/jdk/jdk1.1.8/lib/sparc/native_threads/libjava.so
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libaio.so.1 =>   /usr/lib/libaio.so.1


and check to see, if your thread library versions match up. What jdk, platform, os, etc. are you using? This lib compat problem is huge problem, and I think the fact that java is closed source really blows. I wish Sun would opensource java. C# is going to eventually replace java anyway, so what does Sun have to lose?