Hello,
I want to follow the Introducing_the_Alfresco_Java_Content_Repository_API tutorial but I got stuck on the following line of code:
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:alfresco/jcr-context.xml");
This is the stacktrace that is printed out:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:127)
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:159)
at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:66)
at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:49)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56)
at Remote_Test.main(Remote_Test.java:49)
Can anyone tell what's going wrong here and which path I should enter for retrieving my jcr-context.xml file?
Thank you,
Steven