Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 27th, 2003, 11:45 AM
Registered User
 
Join Date: Jun 2003
Location: Hannover, Low Sachsony, Germany.
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
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 01: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 02:17 AM
IT DOES WORK vb certified Pro VB.NET 2002/2003 6 August 15th, 2005 08:04 PM



All times are GMT -4. The time now is 11:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.