From: <leg...@at...> - 2003-12-23 15:09:26
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-576 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-576 Summary: problem to find hibernate.cfg.xml Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.0.1 Assignee: Reporter: belcore walter Created: Tue, 23 Dec 2003 9:08 AM Updated: Tue, 23 Dec 2003 9:08 AM Environment: hibernate 2.01, oc4j applciation server, oracle database Description: the getConfigurationInputStream method (Configuration class) load hibernate.cfg.xml with Environment.class.getResourceAsStream(nameresource). This can cause any problem with class loader (specially if you have call hibernate from a library shared for many web application) . I think that the correct code is : InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource); --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |