Forum OpenACS Q&A: Missing libnsjava.so file during server start.

Good Morning All,

Just got through installation of OpenACS, PG and AOLServer. Compiled
and loaded the postgres driver from here and cleared up the postgres
driver failing to load. I've got the data models loaded in PG.
Everything is ready! But! My aolserver is failing when trying to load
the libnsjava.so file. It's looking in my /home/aolserver/bin
directory and it's right, the file isn't there! In fact the file is
nowhere on my system. I'm using the aolserver version 3.3.1 Any
suggestions? AOLserver does load and I can connect withit when using
the sample .tcl file included with the distro. Oh, I'm on a Redhat 7
system with 512 meg of RAM.

Thanks,

Gil Price

Maybe I've just gotten my answer. I'm downloading the Java j2sdk rpm for Redhat from Sun. I'll install it, I'm guessing this will clear things up a bit. If it doesn't then I'll create a link in the /home/aolserver/bin directory to where the missing .so is...

If I'm not on the right track, please let me know...

Gil

Collapse
Posted by S. Y. on

If you look at the sample nsd.tcl file that's mentioned in the OpenACS Documentation, you'll see the following:

    #
    # nsjava - aolserver module that embeds a java virtual machine.  Needed to 
    #          support webmail.  See http://nsjava.sourceforge.net for further 
    #          details.
    #
    
    ns_section "ns/server/acs-pg/module/nsjava"
            ns_param   EnableJava          "off"  ;# Set to on to enable nsjava.
            ns_param   VerboseJvm          "off"  ;# Same as command line -debug.
            ns_param   LogLevel            "Notice"
            ns_param   DestroyJvm          "off"  ;# Destroy jvm on shutdown.
            ns_param   DisableJITCompiler  "off"  
            ns_param   ClassPath "/usr/local/jdk/jdk118_v1/lib/classes.zip:/usr/local/aolserver/bin/nsjava.jar:/home/nsadmin/mirror/acs3-pg/www/webmail/java/activation.jar:/home/nsadmin/mirror/acs3-pg/www/webmail/java/mail.jar:/home/nsadmin/mirror/acs3-pg/www/webmail/java" 
    

Although I have never configured webmail in either ACS Classic or OpenACS, my guess is that you might be better off downloading the nsjava module first and reading any accompanying documentation to figure out how to compile it properly.

Thanks, I hadn't realized that. But after #commenting out the line that loads the java module everything loaded fine, the inital login screen has come up. Now to get the configurations tweaked and everything nailed down.

Thanks,

Gil