
Originally Posted by
al0
Is there in your real web application only one context file (no separate contexts for controllers and so on)?
How are you loading that context - with ContextListener configured in the web.xml or in some other way?
Can you put in your test web application the whole piece of code from real application that deals with those prototype beans?
Regards,
Oleksandr
I have one application context file(applicationContext.xml). Since I have 8 datasources I have seperated these bean in a DataSource.xml which application context import.
I load the application context the following way.
Code:
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
I copied my entire web application code(one servlet) into the test web application and it still worked for the test web application. I have tried running in both WebSphere and Jetty with negative result for the real application as I run the test web application in WebSphere.