XADataSource want get me Connection

Hallo Everybody,
I develop my application on J2EE RI Server. My application works with 4 Oracle databases. So I need for it a XADataSource. I use the new driver from Oracle(ojdbc14.jar package). I have till them 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\:@129.247.127.3\:1526\:estat
I try to get my connection by dataSource.getConnection(user, pass).
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(OracleXAResource.java:1157)
     At oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:295)
     At.com.sun.jtx.jtaTransactionState.startAssociation(TransactionState.java:232)
javax.transaction.SystemException
     at com.sun.jts.jta.TransactionImpl.enlistResource(TransactionImpl.java:157)
     at com.sun.enterprise.distributedtx.J2EETransaction.enlistResource(J2EETransaction.java:252)
     at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.enlistResource(J2EETransactionManagerImpl.java:131)
     at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:87)
     at com.sun.enterprise.resource.PoolManagerImpl.registerResource(PoolManagerImpl.java:147)
     at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:128)
     at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:137)
     at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:111)
     at comp.databrowser.dao.GenericDataBrowserDAO.getConnection(Unknown Source)
I have tried both a application control of creatring a ressource and container control. Bot doesn't work.
I have absolutely no idea what I�m making wrong. Could any help me please!!!!!!!!!!!
Nadja

I found the solution to my problem... The Oracle server was not configured properly to accept JDBC XA connections. The JAVA_XA function package was missing and it could be created by using the initxa.sql script.
Cheers,
John.

Similar Messages

  • My browser keeps closing unexpectedly. I only know about it when I get a request from AT&T asking if I want to stay connected. How do I fix this?

    Firefox is not exactly crashing. I can be online reading e-mail, surfing the net, or just reading information. Suddenly I may receive a notice from AT&T that my browser is closed and asking if I want to remain connected to the internet. This has been happening for the last several weeks. I called AT&T & they advised that it was not their problem, but my browser server...Firefox.
    I have been running a belated copy of AVG Free while waiting to get a new DVD part installed. (AT&T tech suggested that might be a contributing factor.) Today I installed a new 2011 version of AVG, but the browser is still closing although perhaps not as often.
    HELP! I am a total computer idiot. I just need someone to walk me through a solution.
    Thanks,
    K. Henson
    [email protected]

    I am syncing my iphone to my iTunes account and then I do a backup and also making sure all updates are current.  Then by going to the my phone and then going to the right and selecting the restore my iphone.
    Here is a picture of what I get

  • When I want to create a pdf from a webpage I get:"cannot connect to server" why?

    when I want to create a pdf from a webpage I get:"cannot connect to server" why?

    Did you set you Preference im the right way? See
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS533B928E-576F-4dc3-AA14-73D08EEE8F20.w.h tml
    the newer link leeds to https://helpx.adobe.com/acrobat/topics.html .
    You could use the German link too:
    http://help.adobe.com/de_DE/acrobat/using/WSa65464b4e07c3e0a781ee72f1298fed479c-7ffe.html
    Hans-Günter

  • Why does not connect properly macpro my motorola bluetooth headphones S10? I get a connection error message and there is no sound. (I want to use headphones to listen to music via bluetooth from my macpro)

    Why does not connect properly macpro my motorola bluetooth headphones S10?     I get a connection error message and there is no sound.                         (I want to use headphones to listen to music via bluetooth from my macpro)   
    the s10 works perfectly on my ipod touch 4g. 

    this is   
    ERROR HAS OCCURRED Bluetooth audio.
    It failed to establish connection with their
    audio device. make sure it is on and
    in the range. you may need to restart the
      audio section of the program you were using
    STOP USING THE HEADSET WITH MICROPHONE.
    ALSO HAVE A MOTOROLA BLUETOOTH SPEAKERS WHICH EQ5 work seamlessly with the Mac

  • Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello. I can say that you have a quite strange „huge question”… It’s non-sense to stay connected with your car which is hundreds miles away. Unless…
    I have a theory. You don’t want to controll your car, you want to controll somebody who is driving the car. Volvo XC 60 is a nice family car, usually used by married men between age of 35-45, probably with small children, so it’s very unlikely that you want to controll your teanage kid, mainly because probably even if you would give him/her to drive the car in the neighborhoud, I don’t think that he/she would be „several hundred miles away”…  If your child is not young teneage anymore, and he/she has his/her own life, but you want to control him/her, that is sick… So I am convinced that you want to controll your husband who probably travelling often! Am I wright?
    Isnt’t nice at all! Would you like if you would be monitorized in such way? I bet you don’t!
    Anyway, iPhone is smart, you can use for many things, but come on, you really were thinking that there is such kind of application???
    What could you do it's to put in the car a GPS survelling system, however I don't think that you could do it without your husband knowledge, otherwise he won't be able to start the engine...

  • I just updated to ios7 and my phone wants me to connect to iTunes before I can do anything.  My computer is broken and I'm borrowing someone else's.  Will it try to sync with their computer? Can I get around using iTunes somehow?

    I just updated my iPhone 4S to iOS7 and it wants me to connect to iTunes before I can do anything. But my computer is broken and I'm borrowing someone else's. Will it try to sync with their computer? Can I get around using iTunes somehow?  I'm new to this; any help would be appreciated!

    If the device is indicating to connect to iTunes, then it is in recovery mode. You will need the computer and iTunes to recover it. You can fix the iTunes to not sync to your device, but just let it recover the phone. I hope you would have a backup of your data in iCloud, since it is no longer available to you on the phone.

  • I get "The connection was reset" at times. I want this fixed for a future version of Firefox.

    I am getting "The connection was reset" on certain sites, like totaljerkface.com at times. I really hope Mozilla employees get rid of this message and every website loads properly. I have never gotten this error on major websites like YouTube and Google. Can someone on this forum report this to Mozilla staff? Thanks.

    Can someone help me with this report? I hate getting this error.

  • I keep getting a "connection was reset error" before step 1 can finish.

    I signed up for iTunes match today but everytime I try to match my library it gets to the very end of step 1 and I get this error message "We could not complete your iTunes store request. The network connection was reset. Make sure your network connection is active and try again. " My connection is fine, I tried restarting iTunes and my computer to no avail. Any suggestions?

    Just wanted to document my own issues -- started getting this about a week back (Verizion FIOS user).  One system I was getting the connection reset as mentioned here, and another I was getting no errors but some downloads were showing up as either cut off or completely blank.  This was for downloads btw and not the actual Matching process.
    I made two changes to these systems (both Windows 7):
    1- Turned off iP6 (since I don't even use it right now)
    2- Changed the DNS servers to something other than the FIOS defaults.
    So far this has corrected the problem on both systems.  The DNS suggestion I found from a search so that seems to have fixed both systems.  Woot!

  • How to get a connection which does not participate in the main usertransaction

              Hi All I am on WLS 6.1 sp2 on win2k. I have a requirement which is like this: I
              use connection pools/txdatasources/JTA in my application. Now when a JTA transaction
              (UserTransaction) is active - I want to take a connection from the pool and do
              some operation and commit it independently of the UserTransction commit/rollback.
              Its pretty much like this - 3 components A , B, C (none of them are EJBs) are
              involved in a UserTransactions and all of them access database via a TxDataSource
              (say TD) which points to a connectionpool (say CP). Now I want B to get a connection
              handle which is not participating in the main transaction - so that the operation
              that B does is independent of what happens to the main transaction. Now I know
              I can use TransactionManager api to suspend a UserTransaction and then let B take
              a connection from the pool and commit it and then resume the transaction. But
              is there any easier way out of it? Like if B uses a DataSource instead of a TXDataSource
              - will that give B a connection which is not part of the main transaction? if
              not then whats the difference between DataSource and TXDataSource? Any help is
              appreciated.
              thanks
              Anamitra
              

    I would recommend that you mark the method as NotSupported or
              RequiresNew rather than using DataSource or suspending/resuming
              transactions on your own.
              If anything, it will be much clearer to the next person who maintains
              your code.
              -- Rob
              Anamitra wrote:
              > Hi All I am on WLS 6.1 sp2 on win2k. I have a requirement which is like this: I
              > use connection pools/txdatasources/JTA in my application. Now when a JTA transaction
              > (UserTransaction) is active - I want to take a connection from the pool and do
              > some operation and commit it independently of the UserTransction commit/rollback.
              >
              >
              >
              > Its pretty much like this - 3 components A , B, C (none of them are EJBs) are
              > involved in a UserTransactions and all of them access database via a TxDataSource
              > (say TD) which points to a connectionpool (say CP). Now I want B to get a connection
              > handle which is not participating in the main transaction - so that the operation
              > that B does is independent of what happens to the main transaction. Now I know
              > I can use TransactionManager api to suspend a UserTransaction and then let B take
              > a connection from the pool and commit it and then resume the transaction. But
              > is there any easier way out of it? Like if B uses a DataSource instead of a TXDataSource
              > - will that give B a connection which is not part of the main transaction? if
              > not then whats the difference between DataSource and TXDataSource? Any help is
              > appreciated.
              > thanks
              > Anamitra
              

  • Most efficient way to get a  connection from a defined connection -pool [whole message]

    Having recently load-tested the application we are developing I noticed that
    one of the most expensive (time-wise) calls was my fetch of a db-connection
    from the defined db-pool. At present I fetch my connections using :
    private Connection getConnection() throws SQLException {
    try {
    Context jndiCntx = new InitialContext();
    DataSource ds =
    (DataSource)
    jndiCntx.lookup("java:comp/env/jdbc/txDatasource");
    return ds.getConnection();
    } catch (NamingException ne) {
    myLog.error(this.makeSQLInsertable("getConnection - could not
    find connection"));
    throw new EJBException(ne);
    In other parts of the code, not developed by the same team, I've seen the
    same task accomplished by :
    private Connection getConnection() throws SQLException {
    return DriverManager.getConnection("jdbc:weblogic:jts:FTPool");
    From the performance-measurements I made the latter seems to be much more
    efficient (time-wise). To give you some metrics:
    The first version took a total of 75724ms for a total of 7224 calls which
    gives ~ 11ms/call
    The second version took a total of 8127ms for 11662 calls which gives
    ~0,7ms/call
    I'm no JDBC guru som i'm probably missing something vital here. One
    suspicion I have is that the second call first find the jdbc-pool and after
    that makes the very same (DataSource)
    jndiCntx.lookup("java:comp/env/jdbc/txDatasource") in order to fetch the
    actual connection anyway. If that is true then my comparison is plain wrong
    since one call is part of the second. If not, then the second version sure
    seems a lot faster.
    Apart from the obvious performance-differences in the two above approaches,
    is there any other difference one should be aware of (transaction-context
    for instance) between the two ? Basically I'm working in an EJB-environment
    on weblogic 7.0 and looking for the most efficient way to get hold of a
    db-connection in code. Comments anyone ?
    //Linus Nikander - [email protected]

    Linus Nikander wrote:
    Thank you for both your replies. As per your suggestions I've improved my
    connectionhandling (I ended up implementing the Service Locator pattern as a
    matter of fact).
    One thing still puzzles me though. Which (and why) is the "proper" way to
    fetch the actual dataSource. As I stated before in the code I've seen two
    approaches within the code I've got.
    1. myDs = myServiceLocator.getDataSource("jdbc:weblogic:jts:FTPool");
    2. myDs = myServiceLocator.getDataSource("java:comp/env/jdbc/tgsDB");
    where getDataSource does a dataSource = (DataSource)
    initialContext.lookup(dataSourceName); dataSourceName being the input-string
    obviously.
    tgsDB is defined as
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/tgsDB</res-ref-name>
    <jndi-name>tgs-dataSource</jndi-name>
    </resource-description>
    </reference-descriptor>
    in weblogic-ejb-jar.xml
    From what I can understand by your answer, you don't recommend using the
    JNDI-lookup way of getting the connection at all ?Correct.
    The service locator that
    I implemented will still perform a JNDI lookup, but only once. Will the fact
    that I'm talking to an RMI-object anyway significantly impact performance
    (when compared to you non-jndi-method) ?In some cases, for earlier 7.0s, maybe yes. For the very latest, it shouldn't
    hurt.
    >
    >
    In my two examples above. If i use version 1. How will the server know
    whether to give me a TX-bound connection and when not to ? In version 1
    FTPool maps to a pool with both TX and non-TX datasources. In version 2.
    tgsDB maps directly to a TX-dataSource.
    I might be asking a lot of strange questions, probably because I'm just
    getting the hang of all the resource-reference issues that EJBs are
    associated with.Bear with me ;)
    //Linus
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi. As Jon said, the lookups are redundant. Because you showed that otherway,
    I will infer that this code is always being run in serverside code. Good.I will give you
    a third way which is much better than either of the ones you showed. Thefirst method
    you showed has a problem for all but the latest sps, your jdbc objectswill all be
    going through an unnecessary level of indirection because you are gettingan rmi jdbc
    object which talks to the jts driver object.
    The second, faster method you showed also has a serious problem! Oneshould
    never call DriverManager methods in multithreaded JDBC programs becauseall
    DriverManager calls are class-synchronized, including some small internalones like
    DriverManager.println(), which all JDBC drivers and even the constructorfor
    SQLException call, so one slow getConnection() call can inadvertantly haltall other
    JDBC being done in the whole JVM! Also, for JVMs that have lots of jdbcdrivers
    registered, DriverManager is inefficient because it simply sends your URLand
    properties to every driver it has registered until it finds one thatdoesn't throw an
    exception and returns a connection.
    Here's the fastest way:
    // do once and reuse driver object everywhere. Can be used by multiplethreads
    Driver d =(Driver)Class.forName("weblogic.jdbc.jts.Driver").newInstance();
    Then, whenever you want a connection:
    public myJDBCMethod()
    Connection c = null; // always a method level object
    try {
    c = d.connect("jdbc:weblogic:jts:FTPool", null);
    ... do all the jdbc for the method...
    c.close();
    c = null;
    catch (Exception e) {
    ... do whatever, if needed...
    finally {
    // close connection regardless of failure or exit path
    if (c != null) try {c.close();}catch (Exception ignore){}
    Joe
    Linus Nikander wrote:
    Having recently load-tested the application we are developing I noticed
    that
    one of the most expensive (time-wise) calls was my fetch of adb-connection
    from the defined db-pool. At present I fetch my connections using :
    private Connection getConnection() throws SQLException {
    try {
    Context jndiCntx = new InitialContext();
    DataSource ds =
    (DataSource)
    jndiCntx.lookup("java:comp/env/jdbc/txDatasource");
    return ds.getConnection();
    } catch (NamingException ne) {
    myLog.error(this.makeSQLInsertable("getConnection - couldnot
    find connection"));
    throw new EJBException(ne);
    In other parts of the code, not developed by the same team, I've seenthe
    same task accomplished by :
    private Connection getConnection() throws SQLException {
    return DriverManager.getConnection("jdbc:weblogic:jts:FTPool");
    From the performance-measurements I made the latter seems to be muchmore
    efficient (time-wise). To give you some metrics:
    The first version took a total of 75724ms for a total of 7224 callswhich
    gives ~ 11ms/call
    The second version took a total of 8127ms for 11662 calls which gives
    ~0,7ms/call
    I'm no JDBC guru som i'm probably missing something vital here. One
    suspicion I have is that the second call first find the jdbc-pool andafter
    that makes the very same (DataSource)
    jndiCntx.lookup("java:comp/env/jdbc/txDatasource") in order to fetch the
    actual connection anyway. If that is true then my comparison is plainwrong
    since one call is part of the second. If not, then the second versionsure
    seems a lot faster.
    Apart from the obvious performance-differences in the two aboveapproaches,
    is there any other difference one should be aware of(transaction-context
    for instance) between the two ? Basically I'm working in anEJB-environment
    on weblogic 7.0 and looking for the most efficient way to get hold of a
    db-connection in code. Comments anyone ?
    //Linus Nikander - [email protected]

  • Getting the connection object in graph

    As part of Denormalizer component's Denormalize property where we have the logic of collapsing/denormalising the records we want to execute a sql query using PreparedStatement which requires Connection object.how do I get the connection object and execute a query.Can some one please share the java doc of the classes I can use.
    Do I get any class under org.jetel package which can be useful to get the Connection object.

    As part of Denormalizer component's Denormalize property where we have the logic of collapsing/denormalising the records we want to execute a sql query using PreparedStatement which requires Connection object.how do I get the connection object and execute a query.Can some one please share the java doc of the classes I can use.
    Do I get any class under org.jetel package which can be useful to get the Connection object.

  • Get the connected users count from sql server using powershell

    Hi,
    I am working on SharePoint 2013,I am having SQL server 2012.
    I want to get the Connected Users count from  sql server using power shell.
    Can any one please let me know how to implement.
    Thanks in advance.
    Regards,
    Phani Kumar R

    Sorry Tom, I dont like to hear "There is no way" :-(
    There is always a way in computer to get what you need (at least it is good as Rule of thumb). I am not sure we will find it here (in a voluntary supporting forum).
    Now we (or better the architect of their system) should think of the way :-)
    Of course doing so in the forum, while we do know the system and only got a glimpse on what is needed, is not the best idea. I will point some issues which can be related to a solution. Those are not a solotions as it is but something we can use for a solution
    once something look in the right way.
    * A web connects counter is one of the easier thing to do. The basic idea is just to use the connect event and the disconnect event an adding 1 or removing 1 from the counter. This is best to do in the application using static variable as any way the second
    the application is down the counter can be go to hell as we know there is no one connect (there for a counter do not use database usually). Using a web dot-net (or asp 3) application this is done most of the time using the global.asa/global.asax file, which
    include the application and session events. for example using the method Session_Start
    protected void Session_Start(object sender, EventArgs e) {
    // Code that runs when a new session is started
    * IIS have a build-in loging system where we can log each and every request/response or only logins users. There is lot we can do with this log files including data mining. Using small bulk insert script we can use the SQL agent to insert those logs to the
    database and get the information we need.
    * any web developer i want to believe know about the Fiddler application which we use to monitor traffic. A proxy is not the only way to to monitor traffic (it is not good for our case as this is in the client side), there are several option in the server
    side.
    * SQL trigger on logon can be use to get information on who is loging on and can be logging only specific source (like our sharepoint IP or any sharepoint application). This information (what is the application which connect to the server can be retrive
    in several solution without using a trigger as well)
    *** (I'll be brief ... I'm getting bored... probably the reader feel the same)
    * using extended events and/or profiler we can monitor any connection and save the data or just remember it in shared (static) variable (this
    blog show how to do it by the way). Again we can monitor specific application or use any filter in order to get only the sharepoint users
    .... and i can continue for several days more :-) ...
    "If there is a willing, then there's a way"
    "If you can't do it, Then someone else probably can"
    "Never say never"
    I hope this help somehow :-)
    [Personal Site] [Blog] [Facebook]

  • I keep getting network connections error when downloading update for iPhone 4. Any suggestions?

    I keep getting network connections error when downloading update for iPhone 4. Any suggestions?

    I think I solved the problem by initiating the update in a different way, from the itunes panel where I can click to start the update, instead of saying yes when asked if I want to update when itunes launches in response to the iphone being plugged into the computer.

  • I can't get the connect to work after base installion.

    Hello, everyone, I am new to Arch Linux.
    I follow the installation guide install Arch Linux, Everything run pretty smooth, except at the part when I need to choose the package, I am not so sure what I am doing. So I choose everything except for the thing that I am sure I would never need.
    When the installation is complete, I try to go to the next setup which update my system, but some how, I can't get the connection working, switch mean, I couldn't do anything beyond that. (both wireless and wired network, BTW I am using DSL and I do try the adsl thing)
    Every thing seem make sense to me during the installation, but I just can't get the network connection working.
    BTW: my laptop is a Toshiba portege M100.
    Any idea?
    Thanks
    Last edited by ioky (2008-06-25 06:18:58)

    Try typing in:
    dhcpcd eth0 (or whatever interface you are using)
    and hit enter, I had the same type of problem and this woke up my network connection.
    Edit: Also, once you gain your connection up and running, you might want to install ifplugd.  It is a daemon which will automatically configure your Ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled, which is good for laptops.  Once installed make sure you put it in /etc/rc.conf under the DAEMONS section.
    Here is some info in the wiki http://wiki.archlinux.org/index.php/Configuring_network
    Last edited by ArchGentoo (2008-06-26 01:22:45)

  • Getting a "Connection Error" when uploading

    Im trying to post my training program on the web but getting a "Connection error". Seems only the video portion is not working but all the rest works. In one instance I posted to Weebly server and in a second case I posted to a folder on another server. The second one could not upload the XML files and Im wondering if that is the issue? Not sure about Weebly but it could be the same issue. Im wanting to post my training program to my personal web site. Does anyone know precisely how to do this to eliminate the connection error? Thanks

    Hi Sandy,
    Based on my research, the error always caused by the package runs with 64bitruntime.
    To fix this issue, there are two scenarios:
    If you execute the package in SQL Server Data Tool, we should change the Run64BitRuntime property of project that contains the package from True to False.
    If you execute the package in SQL Agent Job, as Visakh and Pradyothana suggest, we should enable Use 32 bit runtime option under Execution options pane.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Choose for Selection option in ALV report

    Hi SAP experts, There is a requirement of using the functionality of Settings->Field for selection functionality in our ALV report. Please suggest some way to implement it. I am attaching the screenshot. This functionality i need to use in alv report

  • How to add a mm-dd-yyyy date field type in a Planning Data Form

    Hi John, pls, I have one question regarding the possibility of adding a date field type for example 03-03-2009 in a cell of Planning Data Form application. for example, I created: - 2 members in Period dimension: StartProject and EndProject and I nee

  • Creative Zen Microphoto is messing

    i have a creative zen microphoto firmware version .20.0_0.00.65 and it is giving me some problems. i can get it to turn on and play but it will only play the song i had it on yesterday when it was working fine. now it is like none of the buttons will

  • STSADM Restore error : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Hi all, I've been struggling figuring out what permission I need to make this restore work. I've successfully restored site collection on the same web app with the following restore command from the same DAT file before. stsadm -o restore -url http:/

  • Billing no range

    Hi, If I will define  one billing document type (ZVF2) to all 4 company codes then for differentiate number ranges for invoice can I create user Exit . Please give me the solution how Billing number range should be differentiate according to all 4 co