Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Content Services/JNI Factory initialization failed
chandraiw
I've used the -D option for the CSServices/JNI and I still see an error:
# java -classpath /opt/iw-home/cssdk/cssdkiface.jar:/opt/iw-home/cssdk/cssdkjni.jar:/usr/jdk/jdk1.5.0_01/lib/tools.jar:/opt/iw-home/lib:.: -Djava.library.path=/opt/iw-home/cssdk:/opt/iw-home/lib TestWorkflow
com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initialization failed)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)
at TestWorkflow.main(TestWorkflow.java:121)
Root cause:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:128)
at TestWorkflow.main(TestWorkflow.java:121)
Caused by: java.lang.UnsatisfiedLinkError: /opt/iw-home/cssdk/libcssdk.so: ld.so.1:
java: fatal: libldapssl41.so: open failed: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.interwoven.cssdk.factory.jni.CSJNILoader.init(CSJNILoader.java:53)
at com.interwoven.cssdk.factory.CSLocalFactory.getFactory(CSLocalFactory.java:171)
... 6 more
I actually found the libldapssl41.so module in iw-home/lib and tried to include it in the path/classpath, but to no use.
any ideas to get this demo working?
Find more posts tagged with
Comments
Valentine
Looks like libcssdk.so is linked to the ldap libraries and during runtime they are missing, try following:
# ldd /opt/iw-home/cssdk/libcssdk.so
you can also try adjusting LD_LIBRARY_PATH environment.
chandraiw
could get the factory initilaized by exporting LD_LIBRARY_PATH.
Thanks Val!
Chandra