cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to run FirstWebServiceClient.java of SDK 1.4

zouhair
Champ in-the-making
Champ in-the-making
Hello,
I've deployed Alfresco SDK 1.4 on Eclipse IDE and I try to run the sample : FirstWebServiceClient.java.

Once I repaired all the build errors, I Click on "Run as" -> "Java Application" and I obtain the following errors :

Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.alfresco.webservice.util.WebServiceFactory   at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0)   at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0)   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)   at org.alfresco.webservice.util.AuthenticationUtils.startSession(java.lang.String, java.lang.String) (Unknown Source)   at org.alfresco.sample.FirstWebServiceClient.main(java.lang.String[]) (Unknown Source)   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/samples/FirstWebServiceClient/build/,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/activation.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/axis.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/bcprov-jdk15-129.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/commons-discovery-0.2.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/commons-logging.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/jaxrpc.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/mail.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/opensaml-1.0.1.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/saaj.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/wsdl4j-1.5.1.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/wss4j.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/xalan-2.6.0.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/xmlsec-1.2.1.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/web-service-client.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}   at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)   at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)   at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)   at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)   …6 more‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Does Anyone know where those errors come from and how to deal with it?
Thanks!
2 REPLIES 2

rgauss
Champ in-the-making
Champ in-the-making
Looks like it can't find the project SDK AlfrescoRemote.

Make sure the SDK FirstWebServiceClient references that project.

zouhair
Champ in-the-making
Champ in-the-making
My problem was that My JDK was not the sun's 1.5 one…
The problem is resolved know I have changed it.
However, thank you for the response.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.