]
Emmanuel Bernard commented on EJB-284:
--------------------------------------
Can you provide a runnable test case? The path should be normalized before so such problem
should not appear
Scanning for META-INF/orm.xml does not work in Windows environment
due to different in path-separator
-----------------------------------------------------------------------------------------------------
Key: EJB-284
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-284
Project: Hibernate Entity Manager
Issue Type: Bug
Components: EntityManager
Affects Versions: 3.3.1.GA
Environment: Windows XP SP2
Tomcat 5.2.23
Spring 2.0.3
Hibernate Core 3.2.2.GA
Hibernate Annotations 3.3.0.GA
Hibernate EntityManager 3.3.1.GA
Reporter: Gary Ip
In
org.hibernate.ejb.Ejb3Configuration: line: 606, method scanForXmlFiles(...),
Iterator it = ArchiveBrowser.getBrowser(
jar, new ArchiveBrowser.Filter() {
public boolean accept(String filename) {
return (searchforHBMFiles && filename.endsWith( ".hbm.xml" ) )
|| (searchforORMFiles && filename.endsWith( META_INF_ORM_XML ) )
;
}
}
filename passed in use "/" in *NIX environment, while "\" is used in
Win32 environment. So orm.xml will be ignored in Win32 environment, as it will end with
META-INF\orm.xml and won't be matched.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: