Announcement Announcement Module
Collapse
No announcement yet.
FileNotFound: spring-hibernate-config.xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • FileNotFound: spring-hibernate-config.xml

    Hi,

    We are using Spring without a web container other than the normal JDK. Our code is able to successfully use spring and spring is finding the spring-hibernate-config.xml file in our application's jar file without any problem.

    Here is the problem. When we try to execute our code which uses Spring from within the IBM WMB product (i.e. container) Spring can't seem to find the spring-hibernate-config.xml file even though our code can find spring-hibernate-config.xml via the classpath since it is embedded in our jar file.

    Here is the error which is reported:

    Failed to start DB Transaction: ; errorSource=class com.bnymellon.bds.bdc.arch.dao.DBHTransaction; rootCause=org.springframework.beans.factory.BeanDe finitionStoreException: IOException parsing XML document from class path resource [spring-hibernate-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring-hibernate-config.xml] cannot be opened because it does not exist

    we tried putting the spring-hibernate-config.xml in other location (which are in the classpath) without any luck.

    Thanks,

    Rob
Working...
X