Home
TeamSite
CSSDK problem
cari
Hi,
I am trying to execute the sample code provided with the cssdk. The example is CSMoreHelloWorld.java. On compiling and trying to execute the program I get the following exception:
Exception in thread "main" com.interwoven.cssdk.factory.CSFactoryInitializationE
xception: (Factory initialization failed)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)
at CSMoreHelloWorld.main(CSMoreHelloWorld.java:24)
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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:128)
at CSMoreHelloWorld.main(CSMoreHelloWorld.java:24)
Caused by: java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at com.interwoven.cssdk.factory.CSSOAPFactory.getFactory(CSSOAPFactory.j
ava:157)
... 6 more
Any Inputs on the reason for this error.
Thanks,
Find more posts tagged with
Comments
cari
Hi,
I could run the program now. I had not included some jar files in the classpath.
bgopalan
Hi ,
I'm getting the same error message. Could you please let me know the list of jar files to be included? I would really appreciate your help.
Thanks
-BG
kirthiraman
The list of jar files are
log4j.jar
xalan.jar
cssdkiface.jar
cssdkjni.jar (If using JNI interface)
If you are running on some flavor of UNIX (Solaris/Linux/HP-UX or such) use
set CLASSPATH to paths of these jar files and then
javac -classpath $CLASSPATH CSMoreHelloWorld.java
Example
javac -classpath $CLASSPATH:.:lib/log4j.jar:lib/xalan.jar:lib/cssdiface.jar:lib/cssdkjni.jar CSMoreHelloWorld.java
bgopalan
Thanks for your reply. I'm using eclipse to compile the sample and have included all the 4 jar files. But still getting the same error. I'm trying to connect to the teamsite from my desktop (Windows XP). Please let me know whether i'm missing something here.
Thanks a lot in advance.
-BG
bgopalan
Please check this thread and let me know how to run the CSSDK sample.
Thanks in advance.
-BG