Getting FileNotFoundException for context file
Hi,
Stacktrace:
Code:
Caused by: javax.ejb.EJBException: Error in ejbCreate:: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [beanRefContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [beanRefContext.xml] cannot be opened because it does not exist
java.io.FileNotFoundException: class path resource [beanRefContext.xml] cannot be opened because it does not exist
Here is my ejb-jar.xml entries
Code:
<env-entry>
<env-entry-name>ejb/BeanFactoryPath</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>beanRefContext.xml</env-entry-value>
</env-entry>
beanRefContext.xml is present my EJBModule.jar when i do a build. While one applicationContext.xml is in WEB-INF folder.
I understand that beanRefContext.xml is not in Classpath so it is giving FileNotFoundException. So what are the ways to resolve this issue.
thanks
Chintan