Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2003, 11:45 AM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default XADataSource doesn't want work

Hallo to everybody,

Could anybody help me please

I develop my application on J2EE RI Server. My application works with 4 Oracle databases. So I need for it to declare 4 XADataSources. I use the new driver from Oracle(ojdbc14.jar package). I have declare a XADataSource in resource.config file which looks like:
jdbcXADataSource.5.name=jdbc/EstatDB
jdbcXADataSource.5.classname=oracle.jdbc.xa.client .OracleXADataSource
jdbcXADataSource.5.dbpassword=pass
jdbcXADataSource.5.dbuser=user
jdbcXADataSource.5.prop.URL=jdbc\:oracle\:thin\:@1 29.247.127.3\:1526\:estat

I get exeption using dataSource.getConnection(user, pass). I've tried both application control of dataSource and container controll from dataSource. :(

But each time when trying to get a connection from this datasource I get this exception:

Oracle.jdbc.xa.OracleXAException
    At oracle.jdbc.xaOracleXAResource.checkError(OracleXA Resource.java:1157)
    At oracle.jdbc.xa.client.OracleXAResource.start(Oracl eXAResource.java:295)
    At.com.sun.jtx.jtaTransactionState.startAssociatio n(TransactionState.java:232)
javax.transaction.SystemException
    at com.sun.jts.jta.TransactionImpl.enlistResource(Tra nsactionImpl.java:157)
    at com.sun.enterprise.distributedtx.J2EETransaction.e nlistResource(J2EETransaction.java:252)
    at com.sun.enterprise.distributedtx.J2EETransactionMa nagerImpl.enlistResource(J2EETransactionManagerImp l.java:131)
    at com.sun.enterprise.distributedtx.J2EETransactionMa nagerOpt.enlistResource(J2EETransactionManagerOpt. java:87)
    at com.sun.enterprise.resource.PoolManagerImpl.regist erResource(PoolManagerImpl.java:147)
    at com.sun.enterprise.resource.PoolManagerImpl.getRes ource(PoolManagerImpl.java:128)
    at com.sun.enterprise.resource.JdbcDataSource.interna lGetConnection(JdbcDataSource.java:137)
    at com.sun.enterprise.resource.JdbcDataSource.getConn ection(JdbcDataSource.java:111)
    at comp.databrowser.dao.GenericDataBrowserDAO.getConn ection(Unknown Source)

I have absolutely no idea what I’m making wrong. I would be really very very graceful for any hint given me.

Greetz

Nadja Kesel





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 Ctrl+F5 don't work, F5 does work? jimboak BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 June 29th, 2008 03:46 AM
why it doesn't work sangfroid C# 2005 2 January 21st, 2008 02:38 PM
why does it not work pauljames BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 January 16th, 2008 03:17 AM
IT DOES WORK vb certified Pro VB.NET 2002/2003 6 August 15th, 2005 08:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.