[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-284) Scanning for META-INF/orm.xml does not work in Windows environment due to different in path-separator
Christian Bauer (JIRA)
noreply at atlassian.com
Mon Apr 9 12:20:05 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26660 ]
Christian Bauer commented on EJB-284:
-------------------------------------
Please attach a standalone testcase without Spring, WAR, etc.
> 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.z01, 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