You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Dmitry Gusev (Created) (JIRA)" <ji...@apache.org> on 2012/02/14 11:55:59 UTC

[jira] [Created] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

tapestry-jpa ignores persistence provider from persistence.xml
--------------------------------------------------------------

                 Key: TAP5-1848
                 URL: https://issues.apache.org/jira/browse/TAP5-1848
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-jpa
    Affects Versions: 5.3.2
            Reporter: Dmitry Gusev


If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch

The fix
                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch

The fix
                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Closed] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

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

Igor Drobiazko closed TAP5-1848.
--------------------------------

    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>             Fix For: 5.3.4, 5.4
>
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment:     (was: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch)
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Closed] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

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

Igor Drobiazko closed TAP5-1848.
--------------------------------

    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>             Fix For: 5.3.4, 5.4
>
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment:     (was: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch)
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259462#comment-13259462 ] 

Hudson commented on TAP5-1848:
------------------------------

Integrated in tapestry-trunk-freestyle #705 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/705/])
    TAP5-1848: Persistence providers defined for a unit is not ignored anymore (Revision 1329111)

     Result = SUCCESS
drobiazko : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1329111
Files : 
* /tapestry/tapestry5/trunk/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/EntityManagerSourceImpl.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/app5
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/app5/Index.tml
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/app5/WEB-INF
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/app5/WEB-INF/web.xml
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/conf/testng.xml
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyEntityManager.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyEntityManagerFactory.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyPersistenceProvider.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/ExplicitPersistenceProviderClassTest.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5/pages
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5/pages/Index.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5/services
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5/services/AppModule.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/resources/explicit-persistence-provider-class-persistence-unit.xml

                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment: TAP5-1848.patch
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259480#comment-13259480 ] 

Hudson commented on TAP5-1848:
------------------------------

Integrated in tapestry-5.3-freestyle #25 (See [https://builds.apache.org/job/tapestry-5.3-freestyle/25/])
    TAP5-1848: Backporting into 5.3 branch (Revision 1329126)

     Result = FAILURE
drobiazko : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1329126
Files : 
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/EntityManagerSourceImpl.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/app5
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/app5/Index.tml
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/app5/WEB-INF
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/app5/WEB-INF/web.xml
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/conf/testng.xml
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyEntityManager.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyEntityManagerFactory.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyPersistenceProvider.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/ExplicitPersistenceProviderClassTest.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5/pages
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5/pages/Index.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5/services
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5/services/AppModule.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/resources/explicit-persistence-provider-class-persistence-unit.xml

                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>             Fix For: 5.3.4, 5.4
>
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

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

Igor Drobiazko reassigned TAP5-1848:
------------------------------------

    Assignee: Igor Drobiazko
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258262#comment-13258262 ] 

Dmitry Gusev commented on TAP5-1848:
------------------------------------

Forget to mention, the patch is against the trunk.
But I guess it should be easy to back port it to 5.3.2.
                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259462#comment-13259462 ] 

Hudson commented on TAP5-1848:
------------------------------

Integrated in tapestry-trunk-freestyle #705 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/705/])
    TAP5-1848: Persistence providers defined for a unit is not ignored anymore (Revision 1329111)

     Result = SUCCESS
drobiazko : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1329111
Files : 
* /tapestry/tapestry5/trunk/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/EntityManagerSourceImpl.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/app5
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/app5/Index.tml
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/app5/WEB-INF
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/app5/WEB-INF/web.xml
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/conf/testng.xml
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyEntityManager.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyEntityManagerFactory.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyPersistenceProvider.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/ExplicitPersistenceProviderClassTest.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5/pages
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5/pages/Index.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5/services
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app5/services/AppModule.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/resources/explicit-persistence-provider-class-persistence-unit.xml

                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment:     (was: TAP5-1848.patch)
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207633#comment-13207633 ] 

Dmitry Gusev commented on TAP5-1848:
------------------------------------

This blocks deployment Tap5 apps to GAE.
                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207820#comment-13207820 ] 

Dmitry Gusev commented on TAP5-1848:
------------------------------------

Here's a workaround until the patch applied (add to AppModule):

    public static EntityManagerSource decorateEntityManagerSource(final Logger logger,
            @Symbol(JpaSymbols.PERSISTENCE_DESCRIPTOR) final Resource persistenceDescriptor,
            PersistenceUnitConfigurer packageNamePersistenceUnitConfigurer)
    {
        //  XXX Waiting for https://issues.apache.org/jira/browse/TAP5-1848
        return new EntityManagerSourceImpl(logger, persistenceDescriptor, packageNamePersistenceUnitConfigurer, 
                                           new HashMap<String, PersistenceUnitConfigurer>())
        {
            private Map<String, EntityManagerFactory> entityManagerFactories = getEntityManagerFactories();
            
            @SuppressWarnings("unchecked")
            private Map<String, EntityManagerFactory> getEntityManagerFactories()
            {
                Field field = null;
                try
                {
                    field = this.getClass().getSuperclass().getDeclaredField("entityManagerFactories");
                    field.setAccessible(true);
                    return (Map<String, EntityManagerFactory>) field.get(this);
                    
                } catch (Exception e)
                {
                    throw new RuntimeException("Error accessing private field", e);
                } finally
                {
                    if (field != null) field.setAccessible(false);
                }
            }
            
            @Override
            public EntityManagerFactory getEntityManagerFactory(String persistenceUnitName)
            {
                EntityManagerFactory emf = entityManagerFactories.get(persistenceUnitName);
                
                if (emf == null)
                {
                    emf = Persistence.createEntityManagerFactory(persistenceUnitName);
                    
                    entityManagerFactories.put(persistenceUnitName, emf);
                }
                
                return emf;
            }
        };
    }
    


                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

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

Igor Drobiazko resolved TAP5-1848.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4
                   5.3.4
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>             Fix For: 5.3.4, 5.4
>
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment: TAP5-1848.patch
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment:     (was: TAP5-1848.patch)
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

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

Igor Drobiazko reassigned TAP5-1848:
------------------------------------

    Assignee: Igor Drobiazko
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258262#comment-13258262 ] 

Dmitry Gusev commented on TAP5-1848:
------------------------------------

Forget to mention, the patch is against the trunk.
But I guess it should be easy to back port it to 5.3.2.
                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259480#comment-13259480 ] 

Hudson commented on TAP5-1848:
------------------------------

Integrated in tapestry-5.3-freestyle #25 (See [https://builds.apache.org/job/tapestry-5.3-freestyle/25/])
    TAP5-1848: Backporting into 5.3 branch (Revision 1329126)

     Result = FAILURE
drobiazko : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1329126
Files : 
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/EntityManagerSourceImpl.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/app5
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/app5/Index.tml
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/app5/WEB-INF
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/app5/WEB-INF/web.xml
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/conf/testng.xml
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyEntityManager.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyEntityManagerFactory.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/DummyPersistenceProvider.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app5/ExplicitPersistenceProviderClassTest.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5/pages
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5/pages/Index.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5/services
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/java/org/example/app5/services/AppModule.java
* /tapestry/tapestry5/branches/5.3/tapestry-jpa/src/test/resources/explicit-persistence-provider-class-persistence-unit.xml

                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>             Fix For: 5.3.4, 5.4
>
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207820#comment-13207820 ] 

Dmitry Gusev commented on TAP5-1848:
------------------------------------

Here's a workaround until the patch applied (add to AppModule):

    public static EntityManagerSource decorateEntityManagerSource(final Logger logger,
            @Symbol(JpaSymbols.PERSISTENCE_DESCRIPTOR) final Resource persistenceDescriptor,
            PersistenceUnitConfigurer packageNamePersistenceUnitConfigurer)
    {
        //  XXX Waiting for https://issues.apache.org/jira/browse/TAP5-1848
        return new EntityManagerSourceImpl(logger, persistenceDescriptor, packageNamePersistenceUnitConfigurer, 
                                           new HashMap<String, PersistenceUnitConfigurer>())
        {
            private Map<String, EntityManagerFactory> entityManagerFactories = getEntityManagerFactories();
            
            @SuppressWarnings("unchecked")
            private Map<String, EntityManagerFactory> getEntityManagerFactories()
            {
                Field field = null;
                try
                {
                    field = this.getClass().getSuperclass().getDeclaredField("entityManagerFactories");
                    field.setAccessible(true);
                    return (Map<String, EntityManagerFactory>) field.get(this);
                    
                } catch (Exception e)
                {
                    throw new RuntimeException("Error accessing private field", e);
                } finally
                {
                    if (field != null) field.setAccessible(false);
                }
            }
            
            @Override
            public EntityManagerFactory getEntityManagerFactory(String persistenceUnitName)
            {
                EntityManagerFactory emf = entityManagerFactories.get(persistenceUnitName);
                
                if (emf == null)
                {
                    emf = Persistence.createEntityManagerFactory(persistenceUnitName);
                    
                    entityManagerFactories.put(persistenceUnitName, emf);
                }
                
                return emf;
            }
        };
    }
    


                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] [Commented] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207633#comment-13207633 ] 

Dmitry Gusev commented on TAP5-1848:
------------------------------------

This blocks deployment Tap5 apps to GAE.
                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch

Fix with a test case
                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

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

Igor Drobiazko resolved TAP5-1848.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4
                   5.3.4
    
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>            Assignee: Igor Drobiazko
>              Labels: jpa, tapestry5
>             Fix For: 5.3.4, 5.4
>
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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] (TAP5-1848) tapestry-jpa ignores persistence provider from persistence.xml

Posted by "Dmitry Gusev (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Gusev updated TAP5-1848:
-------------------------------

    Attachment: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch

Fix with a test case
                
> tapestry-jpa ignores persistence provider from persistence.xml
> --------------------------------------------------------------
>
>                 Key: TAP5-1848
>                 URL: https://issues.apache.org/jira/browse/TAP5-1848
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-jpa
>    Affects Versions: 5.3.2
>            Reporter: Dmitry Gusev
>              Labels: jpa, tapestry5
>         Attachments: TAP5-1848-patch-with-test-and-svn-ignore-fixes-for-eclipse.patch
>
>
> If I specify persistence provider class name in persistence.xml it might not be used by tapestry-jpa.

--
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