Jun 9th, 2011, 06:03 AM
File not Found Exception when trying to load beans.xml i.e resided in a jar file
i have configured beans in a beans.xml file which is resided in a jar and i made this jar file as a dependent to my web project, when i am trying to load this xml file from my web.xml file using context loader classpath:/com/corp/beans.xml returning an exception saying "file not found".Even though i used classpath application context the exception is same.
note: my classpath application context and my beans.xml are not in the same jar
if any body knows or faced these kind of problems , please share your experience with me
thanks in advance
using spring 3.0.5
Jun 10th, 2011, 06:32 AM
Try using FileSystemXmlApplicationContext. You can provide file system location for file.