File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes [Error] Cannot enlist resource, transaction not active Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "[Error] Cannot enlist resource, transaction not active" Watch "[Error] Cannot enlist resource, transaction not active" New topic

[Error] Cannot enlist resource, transaction not active

Phods Lg

Joined: Sep 27, 2005
Posts: 1
Hi All,

I try to execute sql with oracle database and i found some error.
For more detail. I used datasource with Oracle XA Thin.

org.apache.beehive.controls.api.ControlException: SQL Exception while attempting to connect to database.[java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Unexpected exception: Cannot enlist resource, transaction not active. BEA1-410E2913EA2E856E2B7B. xid=BEA1-410E2913EA2E856E2B7B, status=Committed
at weblogic.jdbc.jta.DataSource.enlist(
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(
at weblogic.jdbc.jta.DataSource.getConnection(
at weblogic.jdbc.jta.DataSource.connect(
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(
at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.getConnectionFromDataSource(
at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.getConnection(
at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.onAquire(
at org.apache.beehive.controls.system.jdbc.JdbcControlImplInitializer$_resourceContextResourceEventsEventAdaptor.onAcquire(
at org.apache.beehive.controls.runtime.bean.ResourceContextImpl.acquire(
at org.apache.beehive.controls.runtime.bean.ResourceContextImpl.preInvoke(
at org.apache.beehive.controls.runtime.bean.ControlBean.preInvoke(
at org.apache.beehive.controls.runtime.bean.ControlBean.preInvoke(
at controls.CtrlJDBCConCSSyncCommonBean.countCCBMessageId(

Please help me investigate this problem as soon as possible. Thank you.
Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

Is XA enabled for the oracle DB ?

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
I agree. Here's the link:
subject: [Error] Cannot enlist resource, transaction not active
It's not a secret anymore!