Hi,
I wrote a class JCRManagerMeta class that will write contents to repository, and tried to run the class from command line(after placing all the required jars in classpath).It throws the following error when i load the application-context.xml in classpath :
xception thrown at this code:
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:alfresco/application-context.xml");
Error stack trace:
java.lang.NullPointerException
at org.alfresco.util.RuntimeSystemPropertiesSetter.postProcessBeanFactor
y(RuntimeSystemPropertiesSetter.java:68)
at org.springframework.context.support.AbstractApplicationContext.invoke
BeanFactoryPostProcessors(AbstractApplicationContext.java:416)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:330)
at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:92)
at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:77)
at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:68)
at com.cognizant.digitalmedialab.cms.busines.JCRManagerMeta.getJCRReposi
tory(JCRManagerMeta.java:46)
at com.cognizant.digitalmedialab.cms.busines.Listener$Task.run(Listener.
java:61)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
This error is thrown while loading the application-context.xml in classpath.I added all the jars that are needed for alfresco into my classpath.
What am i missing here? Am i missing any jar that is needed?
Help if anyone knows the solution?
Thanks in advance.
Lakshmi