Cannot load bean exceptions

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 09:30 AM
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
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
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 03:39 AM
It says you do not have the following class:
org/alfresco/jlan/server/filesys/DiskInterface
Does Eclipse show any errors (parsing of .java files etc)? I followed the tutorial and it works fine.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 09:34 AM
I figured it out. There's another jar (I think alfresco-jlan.jar) which has the right class file. The SDK that I downloaded did not include this JAR, but it was in one of the tomcat subdirectories where I had installed Alfresco. So I found the right jar through the program install rather than the SDK directories, and it appears to work now.
