[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6668) JaxbProcessor can't resolve hibernate-configuration-4.0.xsd

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Sep 20 13:10:39 EDT 2011


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

Emmanuel Bernard updated HHH-6668:
----------------------------------

    Fix Version/s: 4.0.0.next

> JaxbProcessor can't resolve hibernate-configuration-4.0.xsd
> -----------------------------------------------------------
>
>                 Key: HHH-6668
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6668
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 4.0.0.CR3
>            Reporter: Christian Bauer
>            Assignee: Emmanuel Bernard
>            Priority: Trivial
>             Fix For: 4.0.0.next
>
>
> This code in JaxbProcessor.java
> schema = resolveLocalSchema( "/org/hibernate/hibernate-configuration-4.0.xsd" );
> should not use a leading slash, the result will always be null. I'm not sure if the schema-ified version of the config file should be used at all though, doesn't seem to be tested or documented.
> Or the ClassLoaderServiceImpl#locateResource(name) et al. methods should remove leading slashes of names.
> http://download.oracle.com/javase/1.5.0/docs/guide/lang/resources.html
> 'The methods in ClassLoader use the given String as the name of the resource without applying any absolute/relative transformation (see the methods in Class). The name should not have a leading "/".'

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list