cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help on Running SDK FirstFoundationClient Project

ajaiking
Champ in-the-making
Champ in-the-making
Hi,

I have downloaded the alfresco-labs-sdk-3a.1032 and configured that with the eclipse.
And then i have also downloaded the Alfresco-Enterprise-3.1-Full-Setup and installed.
I am able to login through the installed version and do things in it.
Now i am trying to run the SDK FirstFoundationClient configured in the eclipse and trying to access the contents in the Alfresco server.

But i am getting the following exception:

Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.alfresco.filesys.repo.ContentDiskDriver] for bean with name 'contentDiskDriver' defined in class path resource [alfresco/network-protocol-context.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/alfresco/jlan/server/filesys/DiskInterface
Caused by: java.lang.NoClassDefFoundError: org/alfresco/jlan/server/filesys/DiskInterface
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.access$000(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at org.springframework.util.ClassUtils.forName(ClassUtils.java:183)
   at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:317)
   at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1044)
   at org.springframework.beans.factory.support.AbstractBeanFactory.isBeanClassMatch(AbstractBeanFactory.java:1072)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:165)
   at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:691)
   at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:395)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:328)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:69)
Caused by: java.lang.ClassNotFoundException: org.alfresco.jlan.server.filesys.DiskInterface
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   … 23 more

I am new to alfresco. Can someone kindly help me on how to execute this.
This will be a great help to me. Since am struggling with it  :cry:
Thanks in advance.

Regards
Ajai G
1 REPLY 1

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

This error means that the class is not found. You have to import this class in your project (this class is in a jar… I don't know which…) try : http://wiki.alfresco.com/wiki/Alfresco_SDK#Import_the_Alfresco_Eclipse_Projects

I not sure to 100% but I think after that all could be ok…

It is better to use the latest version of the SDK (Stable) : http://wiki.alfresco.com/wiki/Labs_3_Final_download_files

I don't remember if you have to do with the SDK stable or just with the 3a, but perhaps you have to add an external Jars to your project :  C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib\alfresco-jlan-embed.jar

Good luck Smiley Happy