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)
UnsatisfiedLinkError using ContentServicesTM SDK
System
I´m trying make a programa that uses ContentServicesTM SDK to obtain a CSClient. The code for do this is:
public class Test{
public static void main(String[] args) throws Exception {
Properties properties = new Properties();
properties.setProperty("com.interwoven.cssdk.factory.CSFactory", "com.interwoven.cssdk.factory.CSLocalFactory");
properties.setProperty("cssdk.cfg.path", "/opt/iw-home/cssdk/cssdk.cfg");
CSFactory factory = CSFactory.getFactory(properties);
CSClient client = factory.getClient("tsuser1", "master", "tsuser1", Locale.getDefault(), "appContext", null);
}
}
but when I execute de program with:
java -classpath .:/opt/iw-home/cssdk/cssdkiface.jar:/opt/iw-home/cssdk/cssdkjni.jar -Djava.library.path=/opt/iw-home/lib:/usr/lib com.ejie.r01d.process.R01DPublicationProcess
I obtain the next Exception:
Exception in thread "main" com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initialization failed)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)
at com.ejie.r01d.process.R01DPublicationProcess.main(R01DPublicationProcess.java:26)
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:324)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:128)
at com.ejie.r01d.process.R01DPublicationProcess.main(R01DPublicationProcess.java:26)
Caused by: java.lang.UnsatisfiedLinkError: no cssdk in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.interwoven.cssdk.factory.jni.CSJNILoader.init(CSJNILoader.java:53)
at com.interwoven.cssdk.factory.CSLocalFactory.getFactory(CSLocalFactory.java:171)
... 6 more
If I execute the program with:
java -classpath .:/opt/iw-home/cssdk/cssdkiface.jar:/opt/iw-home/cssdk/cssdkjni.jar -Djava.library.path=/opt/iw-home/cssdk:/opt/iw-home/lib:/usr/lib com.ejie.r01d.process.R01DPublicationProcess
I obtain:
Exception in thread "main" com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initialization failed)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)
at com.ejie.r01d.process.R01DPublicationProcess.main(R01DPublicationProcess.java:26)
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:324)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:128)
at com.ejie.r01d.process.R01DPublicationProcess.main(R01DPublicationProcess.java:26)
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:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.interwoven.cssdk.factory.jni.CSJNILoader.init(CSJNILoader.java:53)
at com.interwoven.cssdk.factory.CSLocalFactory.getFactory(CSLocalFactory.java:171)
... 6 more
I think that I need find some native library but I don´t know what and how use it.
Some sugestion????
Thanks (and excuse my bad english)
D.
Find more posts tagged with
Comments
chandraiw
I'm facing the same issue, anyone able to solve this?
Thanks,
Chandra
Migrateduser
Hi,
The root cause of the failure is -
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
I see that you have /opt/iw-home/lib in the java.library.path. Could you please check to see if the file libldapssl41.so actually exists in the /opt/iw-home/lib folder? If so, you could try playing around with the order of the folders in the java.library.path. If not, the file could be missing due to an upgrade issue or something like that.
Best Regards,
Narendra