Closed
Bug 208958
Opened 22 years ago
Closed 18 years ago
Java program doesn't load native library libjss3.sl on HPUX
Categories
(JSS Graveyard :: Library, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: ckonaje, Assigned: glenbeasley)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.1); .NET CLR 1.0.3705)
Build Identifier:
We are using JSS libs to query the certificate database. i.e jss34.jar and
libjss3.sl
I have downloaded NSPR and NSS libs also from the http://mozilla.org site.
On HPUX the problem is the call CryptoManager.Initialize fails with
unsatisfiedlinkerror as it fails to load the native libraries (libjss3.sl).
chetan@phoenix[168]:java -classpath ./jss34.jar
org.mozilla.jss.tests.ListCerts /home/chetan/LDAP doc
Exception in thread "main"
java.lang.UnsatisfiedLinkError: /export/phoenix3/chetan/dm52/product/5.2/bin/lib
jss3.sl: Exec format error
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.mozilla.jss.CryptoManager.loadNativeLibraries
(CryptoManager.java:1324)
at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:821)
at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:794)
at org.mozilla.jss.tests.ListCerts.main(ListCerts.java:51)
JSS version 3.4
NSPR version 4.2.2
NSS version 3.7.3
HPUX version
uname -a
HP-UX phoenix B.11.11 U 9000/800 977017816 unlimited-user license
All the required libraries can be found in directories which are in SHLIB_PATH.
I found out one more problem that the SHLIB_PATH is disabled.
chetan@phoenix[173]:chatr libjss3.sl
chatr(error): dl_header_ext.size != sizeof(dl_header_ext). Please update your
version of the linker.
libjss3.sl:
shared library
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
internal name:
libjss3.sl
shared library list:
dynamic ../../../dist/HP-UXB.11.00_OPT.OBJ/lib/libnss3.sl
dynamic ../../../dist/HP-UXB.11.00_OPT.OBJ/lib/libsmime3.sl
dynamic ../../../dist/HP-UXB.11.00_OPT.OBJ/lib/libssl3.sl
dynamic ../../../dist/HP-UXB.11.00_OPT.OBJ/lib/libplc4.sl
dynamic ../../../dist/HP-UXB.11.00_OPT.OBJ/lib/libplds4.sl
dynamic ../../../dist/HP-UXB.11.00_OPT.OBJ/lib/libnspr4.sl
dynamic /share/builds/components/cms_jdk/HP-
UX/1.2.2.04/jre/lib/PA_RISC/native_threads/libhpi.sl
dynamic /share/builds/components/cms_jdk/HP-
UX/1.2.2.04/jre/lib/PA_RISC/classic/libjvm.sl
dynamic /share/builds/components/cms_jdk/HP-
UX/1.2.2.04/jre/lib/PA_RISC/libjava.sl
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
data page size: D (default)
instruction page size: D (default)
chetan@phoenix[174]:
Are there any requirements like java version, hp patch requirement etc to make
this work.
Any help on this will be greatly appreciated.
Thanks,
Chetan
Reproducible: Always
Steps to Reproduce:
1.Copy the NSPR,NSS, JSS libs in directory which is in $SHLIB_PATH
2.Use the ListCerts.class and add the directory to the classpath.
3.Run the command as explained in the bug description
Actual Results:
java.lang.UnsatisfiedLinkError: /export/phoenix3/chetan/dm52/product/5.2/bin/lib
jss3.sl: Exec format error
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.mozilla.jss.CryptoManager.loadNativeLibraries
(CryptoManager.java:1324)
at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:821)
at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:794)
at org.mozilla.jss.tests.ListCerts.main(ListCerts.java:51)
Expected Results:
Loaded the native library libjss3.sl
Assignee | ||
Updated•19 years ago
|
Assignee: jamie-bugzilla → Sandeep.Konchady
Assignee | ||
Updated•19 years ago
|
Assignee: Sandeep.Konchady → glen.beasley
Assignee | ||
Comment 1•18 years ago
|
||
closing this old bug. our nightly qa builds and tests on HPUX 11i.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•