Skip to main content

[jpa-spec issues] [JIRA] Created: (JPA_SPEC-66) schemaLocation attribute value referenced throughout specification refers to unresolvable URL

  • From: "ljnelson (JIRA)" < >
  • To:
  • Subject: [jpa-spec issues] [JIRA] Created: (JPA_SPEC-66) schemaLocation attribute value referenced throughout specification refers to unresolvable URL
  • Date: Tue, 29 Oct 2013 15:40:35 +0000 (UTC)
  • Auto-submitted: auto-generated

schemaLocation attribute value referenced throughout specification refers to 
unresolvable URL
---------------------------------------------------------------------------------------------

                 Key: JPA_SPEC-66
                 URL: https://java.net/jira/browse/JPA_SPEC-66
             Project: jpa-spec
          Issue Type: Bug
            Reporter: ljnelson
            Priority: Minor


Iin section 12.3 of the JPA 2.0 specification, an example block of XML occurs 
in the documentation of the {{orm_2_0.xsd}} schema that includes the 
following:

{code:xml}
      <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
          http://java.sun.com/xml/ns/persistence/orm/orm_2_0.xsd";
        version="2.0">
          ...
      </entity-mappings>
{code}

Note the second token in the {{schemaLocation}} attribute, which (here) is:

{code}
http://java.sun.com/xml/ns/persistence/orm/orm_2_0.xsd
{code}

This URL does not resolve.  Removing the last occurrence of {{orm/}} causes 
it to resolve.

In the JPA 2.1 specification, this error seems to have been corrected:

{code:xml}
      <entity-mappings xmlns="http://xmlns.jcp.org/xml/ns/persistence/orm";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence/orm
          http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd";
        version="2.1">
          ...
      </entity-mappings>
{code}

Since this example code is reproduced in lots of places (after all, it's 
included right in the spec!), could the specification either be amended to 
include the proper value, or, alternatively, could the website be changed so 
that http://java.sun.com/xml/ns/persistence/orm/orm_2_0.xsd resolves?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[jpa-spec issues] [JIRA] Created: (JPA_SPEC-66) schemaLocation attribute value referenced throughout specification refers to unresolvable URL

ljnelson (JIRA) 10/29/2013
 
 
Close
loading
Please Confirm
Close