AnsweredAssumed Answered

Cannot load bean exceptions

Question asked by dmallen on Nov 18, 2008
Latest reply on Nov 19, 2008 by dmallen
Hi,

I'm trying to get the SDK examples to run, and I'm running into problems with Spring's bean loader.

I have followed the directions at http://wiki.alfresco.com/wiki/Alfresco_SDK#Reference_libraries_in_SDK_AlfrescoEmbedded_project about including all of the JAR files from the embedded project into the right eclipse project, so spring should be finding things.

The specific error I'm running into is below.  This seems pretty straightforward that some JAR I need isn't there and should be.  Which jar would that be, and where can I find it?

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(ClassLoader.java:620)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
(…)

Any ideas?

Thanks

Outcomes