Added tests for using an @DataSourceDefinition data source with JPA#188
Merged
arun-gupta merged 1 commit intojavaee-samples:masterfrom Jan 8, 2014
arjantijms:master
Merged
Added tests for using an @DataSourceDefinition data source with JPA#188arun-gupta merged 1 commit intojavaee-samples:masterfrom arjantijms:master
arun-gupta merged 1 commit intojavaee-samples:masterfrom
arjantijms:master
Conversation
Contributor
Author
|
Issue for WildFly has been created here: https://issues.jboss.org/browse/WFLY-2727 and GlassFish issue here: https://java.net/jira/browse/GLASSFISH-20944 The WildFly team has already responded and mentioned a workaround. |
arun-gupta
added a commit
that referenced
this pull request
Jan 8, 2014
Added tests for using an @DataSourceDefinition data source with JPA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note that both tests fail on both GlassFish 4 and WildFly 8 cr1.
WildFly already fails at deployment time with:
ERROR [org.jboss.as.controller.management-operation](management-handler-thread - 3) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "dca783dd-b383-4a16-85a4-1331a2f89354.war")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit."dca783dd-b383-4a16-85a4-1331a2f89354.war#testPU".FIRST_PHASE is missing [jboss.naming.context.java.app.dca783dd-b383-4a16-85a4-1331a2f89354.MyApp.MyDS]"]}
ERROR [org.jboss.as.server](management-handler-thread - 3) JBAS015870: Deploy of deployment "dca783dd-b383-4a16-85a4-1331a2f89354.war" was rolled back with the following failure message: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit."dca783dd-b383-4a16-85a4-1331a2f89354.war#testPU".FIRST_PHASE is missing [jboss.naming.context.java.app.dca783dd-b383-4a16-85a4-1331a2f89354.MyApp.MyDS]"]}
17:59:59,156
While GlassFish fails at runtime with:
Caused by: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [rollback] operation. vmcid: 0x0 minor code: 0 completed: No
at com.sun.jts.CosTransactions.RegisteredResources.distributeRollback(RegisteredResources.java:1187)
at com.sun.jts.CosTransactions.TopCoordinator.rollback(TopCoordinator.java:2291)
at com.sun.jts.CosTransactions.CoordinatorTerm.rollback(CoordinatorTerm.java:530)
at com.sun.jts.CosTransactions.TerminatorImpl.rollback(TerminatorImpl.java:286)
at com.sun.jts.jta.TransactionImpl.rollback(TransactionImpl.java:162)
... 126 more
WARNING: RAR5035:Unexpected exception while destroying resource from pool __SYSTEM/pools/__datasource_definition/5f110772-6547-4c6e-9d56-1a437f052bd8/java:app/MyApp/MyDS. Exception message: This web container has not yet been started
Very similar code does run on JBoss EAP 6 and GlassFish 3.