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)
CSSDK Sample
kirthiraman
I have been attempting to try some basic examples of CSSDK and I am getting the following error. Is there some simple environment setup/variable that I'm missing?
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Exception ocured com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initialization failed)
com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initialization failed)
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Exception.java:42)
at java.lang.RuntimeException.(RuntimeException.java:47)
at com.interwoven.cssdk.common.CSRuntimeException.(CSRuntimeException.java:51)
at com.interwoven.cssdk.common.CSRuntimeException.(CSRuntimeException.java:65)
at com.interwoven.cssdk.factory.CSFactoryInitializationException.(CSFactoryInitializationException.java:50)
at com.interwoven.cssdk.factory.CSFactoryInitializationException.(CSFactoryInitializationException.java:41)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)
at TestTeamSiteConnection.getFactory(TestTeamSiteConnection.java:42)
at TestTeamSiteConnection.init(TestTeamSiteConnection.java:58)
at TestTeamSiteConnection.main(TestTeamSiteConnection.java:160)
Root cause:
java.lang.reflect.InvocationTargetException: java.lang.UnsatisfiedLinkError: no cssdk in java.library.path
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Error.(Error.java:50)
at java.lang.LinkageError.(LinkageError.java:43)
at java.lang.UnsatisfiedLinkError.(UnsatisfiedLinkError.java:42)
at java.lang.ClassLoader.loadLibrary(Compiled Code)
at java.lang.Runtime.loadLibrary0(Runtime.java:473)
at java.lang.System.loadLibrary(System.java:778)
at com.interwoven.cssdk.factory.jni.CSJNILoader.init(CSJNILoader.java:53)
at com.interwoven.cssdk.factory.CSLocalFactory.getFactory(CSLocalFactory.java:222)
at java.lang.reflect.Method.invoke(Native Method)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:128)
at TestTeamSiteConnection.getFactory(TestTeamSiteConnection.java:42)
at TestTeamSiteConnection.init(TestTeamSiteConnection.java:58)
at TestTeamSiteConnection.main(TestTeamSiteConnection.java:160)
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Find more posts tagged with
Comments
Bill Klish
Please provide the TeamSite version, your platform, the code snippet that is throwing this error, etc. It will be much easier to help you.
Nicholas
Have you setup the classpath and windows path properly?
kirthiraman
Teamsite version 6.5, Solaris platform and the sample code in
http://neuron.nlm.nih.gov/docs-local/teamsite/guides/6.5/csts.250.cb.pdf
pagr 27. This was resolved ... the problem was with the classpath, LD_LIBRARY_PATH.
But the SOAP version I am getting this error.
Testing via JNI.
Factory of type com.interwoven.cssdk.factory.CSLocalFactory created
Running on ContentServices SDK version 2.1
Logged in as tsmaster
Testing via SOAP.
Exception in thread "main" com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initialization failed)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)
at CSHelloWorld.testLogin(CSHelloWorld.java:40)
at CSHelloWorld.main(CSHelloWorld.java:30)
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 CSHelloWorld.testLogin(CSHelloWorld.java:40)
at CSHelloWorld.main(CSHelloWorld.java:30)
Caused by: java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.interwoven.cssdk.factory.CSSOAPFactory.getFactory(CSSOAPFactory.java:160)
... 7 more
Bill Klish
Have you installed the SOAP server license in cssdk.cfg and specified the path to your TeamSite server in there?
agiaccone
I am having the same kinds of problems. Classes that throw exceptions and no information about why. Factory methods that fail with little diagnostic information. Examples that don't work. Configurations that are unclear and rely on ancient software. This product leaves a lot to be desired, actually I have no idea if the product is good or bad, I can't get it to work. So at a minimum the installation instructions are weak and unintelligible..
Tony
Migrateduser
I know this can be non-trivial. There are 2 places to check here on DevNet for more information, maybe they will help you out:
CS Practical Tips webcast recording:
kirthiraman
That or I should do a google search