I changed the AS_NSS="/usr/lib64" but am still getting the same error message. Looks like NSS libraries are still being found in the /opt/glassfish/glassfish-v2=b58g/lib folder inspite of me specifying /usr/lib64.
Here is the error message:
/opt/glassfish/glassfish-v2-b58g/lib/libasnss.so: /opt/glassfish/glassfish-v2-b58g/lib/libasnss.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
And here is my asenv.conf:
AS_ANT="/opt/glassfish/glassfish-v2-b58g/lib/ant"
AS_ANT_LIB="/opt/glassfish/glassfish-v2-b58g/lib/ant/lib"
AS_WEBSERVICES_LIB="/opt/glassfish/glassfish-v2-b58g/lib"
AS_PERL="%PERL_HOME%"
AS_NSS="/usr/lib64"
AS_NSS_BIN="/opt/glassfish/glassfish-v2-b58g/lib/upgrade"
AS_IMQ_LIB="/opt/glassfish/glassfish-v2-b58g/imq/lib"
AS_IMQ_BIN="/opt/glassfish/glassfish-v2-b58g/imq/bin"
AS_CONFIG="/opt/glassfish/glassfish-v2-b58g/config"
AS_INSTALL="/opt/glassfish/glassfish-v2-b58g"
AS_JAVA="/opt/java/jdk/jdk1.6.0_02/jre/.."
AS_ACC_CONFIG="/opt/glassfish/glassfish-v2-b58g/domains/domain1/config/sun-acc.xml"
AS_JHELP="/opt/glassfish/glassfish-v2-b58g/lib"
AS_ICU_LIB="/opt/glassfish/glassfish-v2-b58g/lib"
AS_DEF_DOMAINS_PATH="/opt/glassfish/glassfish-v2-b58g/domains"
AS_JDMK_HOME="/opt/glassfish/glassfish-v2-b58g/lib/SUNWjdmk/5.1"
AS_NATIVE_LAUNCHER="false"
AS_NATIVE_LAUNCHER_LIB_PREFIX="/jre/lib/i386/client"
AS_WEBCONSOLE_LIB="/opt/glassfish/glassfish-v2-b58g/lib"
AS_JATO_LIB="/opt/glassfish/glassfish-v2-b58g/lib"
AS_HADB=" "
AS_DERBY_INSTALL="/opt/glassfish/glassfish-v2-b58g/javadb"
AS_MFWK_HOME=" "
[Message sent by forum member 'r_sudh' (r_sudh)]
http://forums.java.net/jive/thread.jspa?messageID=237058