AnsweredAssumed Answered

Alfresco SDK Samples - FirstFoundationClient not able to run

Question asked by heyitsaakash on Feb 11, 2009
Latest reply on Mar 25, 2011 by carolanna
I have installed War file of alfresco 2.9 on jboss server 4.2.3GA. After that I am trying to run some sample examples
I am trying to execute the after following the steps given in the link.

However, I am not able to run the program. Everytime i try i get an error  given below:

Exception in thread "main" java.lang.NullPointerException
   at org.alfresco.util.RuntimeSystemPropertiesSetter.postProcessBeanFactory(
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(
   at org.alfresco.sample.FirstFoundationClient.main(


I have changed customrepository.xml as follows of the firstfoundationclient as follows:



# MySQL connection (This is default and requires mysql-connector-java-3.1.12-bin.jar, which ships with the Alfresco server)

Earlier i was getting some issues while trying to build the project after that I added all the jars present in the exploded war file of alfresco (e.g \alfresco\WEB-INF\lib). THus it was able to recognize the spring related classes like org.springframework.context.ApplicationContext

Can someone please help me out. I am not able to find any proper help on how to proceed and not able to trace where I am going wrong.

Any help is appreciated.

Best Regards,
Aakash Sharma