History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: HBR-34
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Beto Software
Reporter: Beto Software
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibero

Resources in jar files imported with Spring import tag not found

Created: 30 Oct 06 16:53   Updated: 13 Dec 06 15:04
Component/s: Configuration
Affects Version/s: 2.0
Fix Version/s: 2.0.1

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
FileNotFoundException is thrown and Hibernate runtime environment cannot be created when configuring from a Spring configuration file which specifies import tags (e.g., <import resource="someFile"/>) and the specified file is in a jar file (even if the jar file is added to the project classpath).

 All   Comments   Work Log   Change History      Sort Order:
Beto Software - 30 Oct 06 20:38
Using ClassPathResource instead of UrlResource fixes the problem but it requires the Spring configuration file to be under the source root and copied to the project output path in order to be found in the classpath. The jar file containing the imported resource files must be added to the project classpath like other libraries needed by the project (e.g., JDBC libs).