I am using WebSphere 5.1 as an application server, and therefore (as it says in the api), I need to use a ContextLoaderServlet instead of a listener in order to load my applicationContext.
My problem is that my applicationContext.xml is located in a shared resource (jar) which is in the classpath. Therefore, I would like to use something like ClassPathXmlApplicationContext to load the config.
However, ClassPathXmlApplicationContext is not of type ConfigurableWebApplicationContext and therefore I get an initialization failure when trying to use it together with the ContextLoaderServlet (given as a context parameter)
How can I load a applicationContext.xml into a web environment when the file is NOT placed in Web-Inf, but rather in a shared jar-file?
Any help is greately appreciated! Thanks.