AnsweredAssumed Answered

ClassNotFoundException: org.alfresco.repo.audit.AuditableAsp

Question asked by leonardo on Jan 28, 2009
Hi all,

I have some problems when I run the SimpleExample.java from JCRSamples project…
I want to know where I find the jar which contains the following Class :org.alfresco.repo.audit.AuditableAspect
This is the Exception.
Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.alfresco.repo.audit.AuditableAspect] for bean with name 'auditableAspect' defined in class path resource [alfresco/core-services-context.xml]; nested exception is java.lang.ClassNotFoundException: org.alfresco.repo.audit.AuditableAspect
Caused by: java.lang.ClassNotFoundException: org.alfresco.repo.audit.AuditableAspect
   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.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:447)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
   at org.alfresco.sample.jcr.SimpleExample.main(SimpleExample.java:53)

Thanks!

Outcomes