You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Johan Huylebroeck (JIRA)" <ji...@apache.org> on 2012/07/10 16:38:35 UTC

[jira] [Created] (ARIES-872) PersistenceDescriptorParserImpl doesn't accept namespace prefixed tags

Johan Huylebroeck created ARIES-872:
---------------------------------------

             Summary: PersistenceDescriptorParserImpl doesn't accept namespace prefixed tags
                 Key: ARIES-872
                 URL: https://issues.apache.org/jira/browse/ARIES-872
             Project: Aries
          Issue Type: Bug
          Components: JPA
    Affects Versions: 0.3
         Environment: aries-jpa 0.3
            Reporter: Johan Huylebroeck


Hello,
I'm using aries-jpa 0.3 with service mix. If I use a persistence.xml where =
the elements are prefixed by a namespace as in:
<pers:persistence xmlns:pers=3D"http://java.sun.com/xml/ns/persistence"
   xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation=3D"http://java.sun.com/xml/ns/persistence http://java=
.sun.com/xml/ns/persistence/persistence_1_0.xsd<http://java.sun.com/xml/ns/=
persistence%20http:/java.sun.com/xml/ns/persistence/persistence_1_0.xsd>"
   version=3D"1.0">

  <pers:persistence-unit name=3D"alpha">
    <pers:properties>
      <pers:property name=3D"javax.persistence.jdbc.driver" value=3D"alpha.=
db.class"/>
      <pers:property name=3D"javax.persistence.jdbc.url" value=3D"jdbc:alph=
a:url"/>
      <pers:property name=3D"javax.persistence.jdbc.user" value=3D"alan"/>
      <pers:property name=3D"javax.persistence.jdbc.password" value=3D"4l4n=
"/>
    </pers:properties>
  </pers:persistence-unit>

</pers:persistence>

It is rejected by the PersistenceDescriptorParser, AFAIK using a prefix is =
valid and should be accepted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (ARIES-872) PersistenceDescriptorParserImpl doesn't accept namespace prefixed tags

Posted by "Timothy Ward (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Ward reassigned ARIES-872:
----------------------------------

    Assignee: Timothy Ward
    
> PersistenceDescriptorParserImpl doesn't accept namespace prefixed tags
> ----------------------------------------------------------------------
>
>                 Key: ARIES-872
>                 URL: https://issues.apache.org/jira/browse/ARIES-872
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.3
>         Environment: aries-jpa 0.3
>            Reporter: Johan Huylebroeck
>            Assignee: Timothy Ward
>         Attachments: parser.patch.gz
>
>
> Hello,
> I'm using aries-jpa 0.3 with service mix. If I use a persistence.xml where =
> the elements are prefixed by a namespace as in:
> <pers:persistence xmlns:pers=3D"http://java.sun.com/xml/ns/persistence"
>    xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation=3D"http://java.sun.com/xml/ns/persistence http://java=
> .sun.com/xml/ns/persistence/persistence_1_0.xsd<http://java.sun.com/xml/ns/=
> persistence%20http:/java.sun.com/xml/ns/persistence/persistence_1_0.xsd>"
>    version=3D"1.0">
>   <pers:persistence-unit name=3D"alpha">
>     <pers:properties>
>       <pers:property name=3D"javax.persistence.jdbc.driver" value=3D"alpha.=
> db.class"/>
>       <pers:property name=3D"javax.persistence.jdbc.url" value=3D"jdbc:alph=
> a:url"/>
>       <pers:property name=3D"javax.persistence.jdbc.user" value=3D"alan"/>
>       <pers:property name=3D"javax.persistence.jdbc.password" value=3D"4l4n=
> "/>
>     </pers:properties>
>   </pers:persistence-unit>
> </pers:persistence>
> It is rejected by the PersistenceDescriptorParser, AFAIK using a prefix is =
> valid and should be accepted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (ARIES-872) PersistenceDescriptorParserImpl doesn't accept namespace prefixed tags

Posted by "Timothy Ward (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Ward resolved ARIES-872.
--------------------------------

    Resolution: Fixed

Patch applied. This should get included in the upcoming 1.0 release of the JPA container
                
> PersistenceDescriptorParserImpl doesn't accept namespace prefixed tags
> ----------------------------------------------------------------------
>
>                 Key: ARIES-872
>                 URL: https://issues.apache.org/jira/browse/ARIES-872
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.3
>         Environment: aries-jpa 0.3
>            Reporter: Johan Huylebroeck
>            Assignee: Timothy Ward
>         Attachments: parser.patch.gz
>
>
> Hello,
> I'm using aries-jpa 0.3 with service mix. If I use a persistence.xml where =
> the elements are prefixed by a namespace as in:
> <pers:persistence xmlns:pers=3D"http://java.sun.com/xml/ns/persistence"
>    xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation=3D"http://java.sun.com/xml/ns/persistence http://java=
> .sun.com/xml/ns/persistence/persistence_1_0.xsd<http://java.sun.com/xml/ns/=
> persistence%20http:/java.sun.com/xml/ns/persistence/persistence_1_0.xsd>"
>    version=3D"1.0">
>   <pers:persistence-unit name=3D"alpha">
>     <pers:properties>
>       <pers:property name=3D"javax.persistence.jdbc.driver" value=3D"alpha.=
> db.class"/>
>       <pers:property name=3D"javax.persistence.jdbc.url" value=3D"jdbc:alph=
> a:url"/>
>       <pers:property name=3D"javax.persistence.jdbc.user" value=3D"alan"/>
>       <pers:property name=3D"javax.persistence.jdbc.password" value=3D"4l4n=
> "/>
>     </pers:properties>
>   </pers:persistence-unit>
> </pers:persistence>
> It is rejected by the PersistenceDescriptorParser, AFAIK using a prefix is =
> valid and should be accepted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ARIES-872) PersistenceDescriptorParserImpl doesn't accept namespace prefixed tags

Posted by "Johan Huylebroeck (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Huylebroeck updated ARIES-872:
------------------------------------

    Attachment: parser.patch.gz

I added a patch against the latest sources on github. I added 2 unit tests, all tests in the jpa-container project pass.
                
> PersistenceDescriptorParserImpl doesn't accept namespace prefixed tags
> ----------------------------------------------------------------------
>
>                 Key: ARIES-872
>                 URL: https://issues.apache.org/jira/browse/ARIES-872
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.3
>         Environment: aries-jpa 0.3
>            Reporter: Johan Huylebroeck
>         Attachments: parser.patch.gz
>
>
> Hello,
> I'm using aries-jpa 0.3 with service mix. If I use a persistence.xml where =
> the elements are prefixed by a namespace as in:
> <pers:persistence xmlns:pers=3D"http://java.sun.com/xml/ns/persistence"
>    xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation=3D"http://java.sun.com/xml/ns/persistence http://java=
> .sun.com/xml/ns/persistence/persistence_1_0.xsd<http://java.sun.com/xml/ns/=
> persistence%20http:/java.sun.com/xml/ns/persistence/persistence_1_0.xsd>"
>    version=3D"1.0">
>   <pers:persistence-unit name=3D"alpha">
>     <pers:properties>
>       <pers:property name=3D"javax.persistence.jdbc.driver" value=3D"alpha.=
> db.class"/>
>       <pers:property name=3D"javax.persistence.jdbc.url" value=3D"jdbc:alph=
> a:url"/>
>       <pers:property name=3D"javax.persistence.jdbc.user" value=3D"alan"/>
>       <pers:property name=3D"javax.persistence.jdbc.password" value=3D"4l4n=
> "/>
>     </pers:properties>
>   </pers:persistence-unit>
> </pers:persistence>
> It is rejected by the PersistenceDescriptorParser, AFAIK using a prefix is =
> valid and should be accepted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira