Where to put Context.xml in a WAR file?

teoxy

New Member
I'm porting a app that ran in tomcat to Jboss where it will be deployed as a .WAR file. I have a line of code that looks for a configuration .xml file :\[code\]appContext = new ClassPathXmlApplicationContext(cmdAppContext.xml); \[/code\]Now I tried putting it in WEB-INF/classes (After comaring with eclipse generated .WAR file), and WEB-INF folder as it r was refered in that location in the web.xml. However each time I get a NullPointerException. Am I missing anything here? Please note: I've already seen the similar question which was not resolved
 
Back
Top