Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6471407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:13:14+00:00 2026-05-25T06:13:14+00:00

I need to deploy datanucleus using JCA. My application is built on ejb3 and

  • 0

I need to deploy datanucleus using JCA. My application is built on ejb3 and CDI.
I am not able to proceed after this error.


21:29:38,789 SEVERE [DataNucleus.Datastore.Schema] (http--10.91.10.49-8080-1) Failed initialising database.: org.datanucleus.exceptions.
NucleusDataStoreException: You cannot commit during a managed transaction!
at org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.close(ConnectionFactoryImpl.java:522) [datanucleus-rdbms-3.0.0-m6.jar:]

I am using LocalTransaction with the datasource managed by Jboss
I have defined

standalone.xml
driver-class oracle.jdbc.driver.OracleDriver

ra.xml

transaction-support LocalTransaction

jdopersistance.xml

datanucleus.jtaLocator custom_jndi

datanucleus.jtaJndiLocation java:jboss/TransactionManager

datanucleus.connection.resourceType JTA

The resource-adapter defined in standalone.xml is properly binding and I am able to access it inside an ejb.
The above exception occurs when I try to access the persistence manager.

Question : Did anyone got managed transactions with managed datasource under JCA working for datnucleus on Jboss as 7

Any clues on Why is datanucleus trying to commit even after I defined datanucleus.connection.resourceType = JTA

Other info

jdbc driver ojdbc6.jar

datanucleus -datanucleus-jca-3.0.0-m6.rar

Jboss as 7 final

jdk 1.6

Ubuntu 8.10

Oracle 11g

Answer

Thanks andy it works after I created two separate datasources 1) with JTA 2) without JTA. datanucleus.ConnectionFactory2Name ==> points to non-JTA. Addtionally i had to add datanucleus.jtaJndiLocation = java:jboss/TransactionManager. Seems like this is specific to oracle, I am yet to try with other databases. Discussion at http://www.datanucleus.org/servlet/forum/viewthread_thread,4663_offset helped.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:13:15+00:00Added an answer on May 25, 2026 at 6:13 am

    Thanks andy it works after I created two separate datasources 1) with JTA 2) without JTA. datanucleus.ConnectionFactory2Name ==> points to non-JTA. Addtionally i had to add datanucleus.jtaJndiLocation = java:jboss/TransactionManager. Seems like this is specific to oracle, I am yet to try with other databases. Discussion at datanucleus.org/servlet/forum/viewthread_thread,4663_offset helped

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to deploy a report using Reporting services but I'm getting this error,
I need to deploy an application on the WAS ND 6.1 and do not
I need to deploy a Windows Forms application using ClickOnce deployment. (VS2008, .NET 3.5)
I have a DLL I need to deploy with my C# application. It's not
I have the war file of my application. I need to deploy this at
We are using Umbraco 4.5 in our Application. We need to deploy same application
I need to deploy a web application on several laptops (although it is a
I have 6 servers that i need to deploy my ASP.NET web application to.
We need to deploy application(developed by Java) WAR file in client place which make
I need to deploy my COM dll as a COM+ application. I used to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.