I have not done anychanges to the SDK sample FirstFoundationClient that I downloaded from alfreso.com So to answer your question I am not sure what it does - uses or does not use alddata-directory or database without the other one.
there are 3 files in alfresco.extension folder in the FirstFoundationClient project that I imported in eclipse.
custom-alfresco-shared.properties
custom-repository-context.xml
custom-repository.properties.
I have kept the values/setting in them as it is.because I dont know what changes should be made to those.
I had shut down the Alfresco server when I got the second error. When I looked at the code FirstFoundationClient.java I found that it is trying to get the ApplicationContext.
ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
This is the line that throws error in both cases (Alfresco ON and OFF).ApplicationContext in facts tried to load the Alfresco's Spring alfresco/application-context.xml.
Now I am puzzled. Since I am running the FirstFoundationClient from within eclipse, and Alfresco is shut down, then it is not possible to load the application-context.xml.
The documentation says that it in-process API. So does this mean that FirstFoundationClient should be run from within the Alfresco Webapp?? I am guessing it should be. But even if it is deployed in the same alfresco.war then how am I going to run the FirstFoundationClient.java. In eclipse I am just invoking the main() method. Again I am guessing, I should write a simple html page and on a button click I could invoke this method from the backend servlet.
But if there is a simple procedure to invoke the FirstFoundationClient from within eclipse , please let me know.
thanks for all your replies guys.