[hibernate-issues] [Hibernate-JIRA] Updated: (EJB-284) Scanning for META-INF/orm.xml does not work in Windows environment due to different in path-separator

Gary Ip (JIRA) noreply at atlassian.com
Mon Apr 9 11:11:05 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Ip updated EJB-284:
------------------------

    Attachment: petclinic.zip

You may need Spring 2.0.4 latest snapshot, as I tested with the hsqldb comes with Spring petclinic example.

Test environment:
Windows XP SP2
Tomcat 5.2.23


P.S. I have split the war file into two zip files, as JIRA restrict the upload size to 10MB.

> 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
>         Attachments: petclinic.zip
>
>
> 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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list