cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot create ApplicationContext object

doblek
Champ in-the-making
Champ in-the-making
Hi all,

I've posted this same question in another forum discussion, but I've not received any answer in few days so I'm going to try in this one (that maybe it's more suitable).

My problem (as you can see in the other post) is that I cannot create the ApplicationContext object since I get an exception from Spring framework because it says it's unable to find "application-context.xml". Do I have to do anything special about Spring?
I've also  tried to access the file with an absolute path:

String paths[] = {"C:/apache-tomcat-5.5.17/webapps/alfresco/WEB-INF/classes/alfresco/application-context.xml"};
ApplicationContext app_ctx = new ClassPathXmlApplicationContext(paths);
but I'm getting the same exception.

I apologize for duplicating the post but I do need help… 😃

Thanks again,
Enrique
1 REPLY 1

doblek
Champ in-the-making
Champ in-the-making
I think I was in a mistake since I invoked those commands from a portlet application that cannot see Alfresco's context in Tomcat…

I will try with Web Services 😃

Thanks.