Why do you want to do this? Why not simply inject the service you're looking 
for into your WebService class?

On Mar 23, 2010, at 3:20 AM, mlounnaci wrote:

> 
> 
> Hello friends
> 
> I tried to use the following  inside my webservice method :
> 
> BeanFactory factory = new XmlBeanFactory(new
> ClassPathResource("/WEB-INF/applicationContext.xml"));
> 
> The exception resulted:
> 
> .....org.springframework.beans.factory.BeanDefinitionStoreException:
> IOException pars
> ing XML document from class path resource [/WEB-INF/applicationContext.xml];
> nested excep
> tion is java.io.FileNotFoundException: class path resource
> [/WEB-INF/applicationContext.xml] cannot be opened because it does not exist
> 
> How can i locate my applicationContext.xml file?
> 
> Thanks for help.
> -- 
> View this message in context: 
> http://n4.nabble.com/applicationContext-xml-not-found-tp1678836p1678836.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to