Home
Web CMS (TeamSite)
CSSDK - Example - Factory initialization failure
Bowker
Win2k
TS 6.5
CSS 2.5 (or what ever comes with TS 6.5)
Just trying to get the examples to work and I'm receiving the error "Factory initialization failure".
I looked through this forum and someone suggested adding -D(other stuff I forget) which didn't correct the problem.
This is a snipit of the error (with verbose turned on, showing the cssdk files are being loaded)
[Loaded com.interwoven.cssdk.factory.CSFactory]
[Loaded com.interwoven.cssdk.common.CSVersion]
[Loaded com.interwoven.cssdk.common.CSRuntimeException]
[Loaded com.interwoven.cssdk.factory.CSFactoryInitializationException]
[Loaded com.interwoven.cssdk.factory.CSLocalFactory]
[Loaded com.interwoven.cssdk.adapter.access.AccessServiceAdapter]
[Loaded com.interwoven.cssdk.adapter.filesys.FileServiceAdapter]
[Loaded com.interwoven.cssdk.adapter.common.CommonServiceAdapter]
[Loaded com.interwoven.cssdk.adapter.workflow.WorkflowServiceAdapter]
[Loaded com.interwoven.cssdk.adapter.util.UtilServiceAdapter]
[Loaded com.interwoven.cssdk.common.CSClient]
[Loaded com.interwoven.cssdk.access.jni.AccessServiceAdapterImpl]
[Loaded sun.misc.Cleaner from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
[Loaded com.interwoven.cssdk.filesys.jni.FileServiceAdapterImpl]
[Loaded com.interwoven.cssdk.filesys.CSInvalidVPathException]
[Loaded com.interwoven.cssdk.common.jni.CommonServiceAdapterImpl]
[Loaded com.interwoven.cssdk.workflow.jni.WorkflowServiceAdapterImpl]
[Loaded com.interwoven.cssdk.util.jni.UtilServiceAdapterImpl]
[Loaded com.interwoven.cssdk.access.CSAuthenticationException]
[Loaded com.interwoven.cssdk.access.CSInvalidSessionStringException]
[Loaded com.interwoven.cssdk.access.CSExpiredSessionException]
[Loaded com.interwoven.cssdk.access.CSInvalidRoleException]
[Loaded com.interwoven.cssdk.common.CSRemoteException]
[Loaded sun.reflect.NativeMethodAccessorImpl from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
[Loaded sun.reflect.DelegatingMethodAccessorImpl from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
[Loaded com.interwoven.cssdk.common.CSCacheableObject]
[Loaded com.interwoven.cssdk.common.impl.CSObject]
[Loaded java.lang.IllegalArgumentException from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
[Loaded java.lang.NumberFormatException from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
[Loaded com.interwoven.cssdk.factory.jni.CSJNILoader]
[Loaded java.lang.UnsatisfiedLinkError from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
[Loaded java.lang.reflect.InvocationTargetException from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
Exception in thread "main" com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initialization failed)
[Loaded java.lang.StackTraceElement from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)
at CSHelloWorld.main(CSHelloWorld.java:52)
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 CSHelloWorld.main(CSHelloWorld.java:52)
Caused by: java.lang.UnsatisfiedLinkError: no cssdk in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
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:218)
... 6 more
[Loaded java.lang.Shutdown from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
[Loaded java.lang.Shutdown$Lock from C:\apps\interwoven\AdminServer\servletd\java1.4\jre\lib\rt.jar]
Dan Bowker
Northern Trust
Web Publishing Technology
Find more posts tagged with
Comments
brandon1
Looks like the Java Run Time Environment can not find the your cssdk jar files. Are they in the PATH? Are they there if you run 'echo %PATH%' from the command line? If not either add them to the PATH environment variable or create a batch script to set the path prior to execution.
Current Project: TS 6.1
Environment: Solaris
Keizo
Did you manage to solve it?
I have the same problem...
Phil
Bowker
This problem was caused by a typo in the classpath while trying to use JNI.
However, I'm now trying to get this to work with SOAP but I can't find the CSSOAPFactory.
(Being a factory - I'm sure it's a big building with lots of smoke stacks, but I still can't find it
Dan Bowker
Northern Trust
Web Publishing Technology
Migrateduser
Hello,
I replied with the location of the CSSDK client package in your earlier post. Here it is again -
https://support.interwoven.com/esd2/UI_ESDSelImage.asp?ProdID=110578
Best Regards,
Narendra