Need Explanation on JDBC drivers

Hi,
I have write classes for database connection & resultset. I plan to make it as library jar so i can use it for future developments.
I develop this on netbeans and have set the classpath for Mysql driver & Ms SQL driver. After i have created the jar file do i need these drivers anymore when i used the jar with other applications.
Is there anyway to incorporate these mysql driver jar & mssql driver jar with my library jar as 1 jar file so that i won't need set classpath for these drivers for other applications.

Yes, you need the class files contained in the driver jar when your code is executed.
Most people simply keep the driver jar seperate and add it to the classpath of the application; however you can unpackage the driver jar and repackage it however you want (as long as you don't violate the terms of the license or present their work as yours, etc. etc.) In business environments, repackaging really is emphatically not recommended unless there's no other way; it makes it a lot harder to upgrade to a newer driver, for example, and it's too easy to get into legal trouble by forgetting that someone else's code is mixed with yours, particularly with staff turnover...

Similar Messages

  • Should i need to install JDBC Drivers?

    Hi,
    I am new to primavera database.
    Now i need to develop RFC's to JDBC Scenario using PI7.1, should i need to install JDBC Driver to up date the data in primavera database.
    thanks,
    snr.

    Hi,
    JDBC drivers are needed to establish the connection to database using JDBC adater but not operations...
    if your database provider classes are not installed in the PI system then you need to install the same...
    check the connection using test if not sure about this but need to install the ear file provided as per note 1085539
    HTH
    Rajesh

  • How can I install JDBC drivers for Oracle?!?....

    i have a program that has this line:
    import oracle.jdbc.pool.OracleDataSource;
    that gives this error when I compile it:
    package oracle.jdbc.pool does not exist
    So I think I need to install JDBC drivers for Oracle. (?)
    I went here: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html]
    and downloaded the files for JDBC Thin.
    Then I followed this: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/111070_readme.html]
    by entering these commands (I'm using Ubuntu):
    export CLASSPATH=$CLASSPATH:/path/to/files/ojdbc6.jar
    export CLASSPATH=$CLASSPATH:/path/to/files/orai18n.jar
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/files
    When I type echo $CLASSPATH I can see that those commands worked, but it hasn't made any difference when I try to compile.
    I still get the same error. Is it because I didn't do anything about the .so files? The readme page didn't mention them in the installation section.
    Please help! I am so stuck...

    I don't think you need the shared libraries (.so files) and given what I saw when I glanced at those pages, I don't think they'd even work for you, although maybe I just didn't read enough of it.
    What happens when you type
    javap oracle.jdbc.pool.OracleDataSourceon the command line?
    How are you invoking javac? Are you perhaps passing a classpath argument?
    Are you sure that the path to the jar files is correct? Are the paths relative?

  • Need information on Weblogic JDBC drivers

    Hi,
    I have been using Weblogic 8.1 sp5 with oracle version -Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production.
    Lately i have observed the below error:-
    <Jun 2, 2009 9:56:58 PM MEST> <Error> <JDBC> <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "WIS03 JDBC Connection Pool" failed with exception: "java.sql.SQLException: OALL8 is in an inconsistent state.".>
    This may be linked to the JDBC drivers used with weblogic.
    At weblogic console i can see the list of drivers as - Oracle Driver (Thin) Versions.9.0.1,9.2.0,10
    Is this driver good for the Oracle version 10 g?
    I am clueless for the above exception. Please suggest.
    Thanks & Regards
    Himanshu Tageja

    Thanks Joe.
    I have found the latest ojdbc.jar, below are the detials mentioned about this jar in the manifest.mf:-
    Oracle Database 10g Release 2 (10.2.0.4) JDBC Drivers
    Specification-Title: Oracle JDBC driver classes for use with JDK14
    Sealed: true
    Created-By: 1.4.2_14 (Sun Microsystems Inc.)
    Implementation-Title: ojdbc14.jar
    Specification-Vendor: Oracle Corporation
    Specification-Version: Oracle JDBC Driver version - "10.2.0.4.0"
    Implementation-Version: Oracle JDBC Driver version - "10.2.0.4.0"
    Implementation-Vendor: Oracle Corporation
    Implementation-Time: Sat Feb 2 11:40:29 2008
    Now the issue is with respect to the Java_version used for this jar which is 1.4.2_14 (Sun Microsystems Inc.)
    but my weblogic server uses jdk142_08.
    I have done quick tests after replacing the jar from the server/lib directory and seems no issue but can the differences in Java version lead to potential issues in future?
    Awaiting your valuable response.

  • Mysql jdbc drivers not found in weblogic server

    I want to create a connection pool in weblogic server,
    and use mysqldatabase.
    My drivers is "org.gjt.mm.mysql.Driver"
    I put the jar in "D:\bea\weblogic700\server\lib" ,but when i apply ,there is
    an error blow:
    Error creating connection pool
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:635)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:419)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)<2003-4-6 ����10��00��34��> <Error> <JDBC> <001060> <Cannot startup connection pool "mssqlserverPool" weblogic.common.ResourceException: Cannot load driver class: org.gjt.mm.mysql.Driver>
    Can anybody tell me why,thanks!

    Weblogic has been designed for nannies...
    I've developed a application which uses internally my own jdbc-driver.
    After months of really hard work on tomcat (the application works fine) I've tried migrate it to weblogic.
    But ...
    In weblogic seems mandatory to put the jdbc drivers out of the war!!!. Brilliant!!!
    If I move the driver out, I need move the 50% of the application out, also!
    If I move part of the application out, nothing works, because... �are the class loaders distinct?. And I'll need to do a lot of extra work because one day one weblogic architect had a great great inspiration.
    In the future I'll suggest to my customers to run and not stop when they listen the WEBLOGIC word.
    Regards,
    Pablo

  • JAR files for SQLJ and JDBC drivers: what is the best practice?

    starting a migration from IAS 10 to WebLogic 11g.
    Apparently the jar files for SQLJ are not on the classpath by default.
    java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContextwhich is the better practice: putting the SQLJ runtime jar into the lib subdirectory of the domain directory, or using a shared library reference? (usage of SQLJ is pretty prevalent in our apps, though we may be getting away from it)
    are the Oracle JDBC drivers on the classpath by default?
    if not, then the same question: put them into the lib subdirectory of the domain directory, or use a shared library reference?

    I'm looking at the setDomainEnv, especially the big note at the top:
    >
    # WARNING: This file is created by the Configuration Wizard.
    # Any changes to this script may be lost when adding extensions to this configuration.
    >
    and am getting squeamish about editing it...
    http://www.bea-weblogic.com/how-do-i-disable-wls-automatically-adding-to-classpath.html looks like the default behaviour is for WebLogic to put $DOMAIN/lib;$WL_HOME/common/lib/ext;$WL_HOME/server/lib/ext on the classpath; there is also a reference to setting weblogic.ext.dirs= when starting weblogic (which means I set the WEBLOGIC_EXTENSION_DIRS environment variable).
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/libraries.html#wp1067450 also refers at the bottom to using the domain /lib subdirectory.
    so am I correct that a good practice is to just put the jars I think I will globally need into $DOMAIN/lib, rather than putting them in $WL_HOME/common/lib/ext, $WL_HOME/server/lib/ext, or fiddling with the WEBLOGIC_EXTENSION_DIRS environment variable?
    Edited by: user8652010 on Feb 10, 2011 1:08 PM

  • JDBC drivers for MSSQL 7.0

    Hi,
    We have installed JDBC drivers for MSSQL by following guide "how to install and configure a JMS and JDBC adapter" and they are "msutil.jar, mssqlserver.jar, msbase.jar". Our platform is NETweaver 2004s PI 7.0 on UNIX and Oracle.
    The interfaces are working fine when we are sending data to MSSQL 2000, but when we are sending data to MSSQL 7.0, we are getting errors incompatible drivers.
    Are there seperate drivers MSSQL 7.0 or we need to have different set of drives. Checked Note 639702 and as per note we should be able to find drivers installed on system at
    - (NetWeaver 2004s:)
    usr\sap\<SAPSID>\SYS\exe\<NUC|UC>\Platform\mssjdbc
    I did not find the 'Platform' in my system at the above mentioned path.
    Can anyone help us with this issue.
    Thank You,
    Praveen

    Hi Praveen,
    As I know, there is no JDBC driver MSSQL 7.0, so there is no direct way to get access to it.
    But there is another way to do it if you have access to a MSSQL 2000 or above server.
    In MSSQL 2000 you can create a linked server to the MSSQL 7.0, and then you can use XI to get access to MSSQL 7.0 tables.
    Regards,
    Hui

  • How to add support for new JDBC Drivers in WebLogic Server?

    Hi!
    I am using WebLogic Server 10.
    As we know,WebLogic Server contains some jdbc drivers itself,but if we want to use another drivers besides them,what can we do?(I am using Oracle 11g,but WebLogic Server 10 doesn't contain JDBC support for it.)
    Just copy the .jar files of the drivers to the directoty "WL_HOME/server/lib" or need to configure something else?
    Thanks!
    Huang

    Hi!
    I am using WebLogic Server 10.
    As we know,WebLogic Server contains some jdbc drivers itself,but if we want to use another drivers besides them,what can we do?(I am using Oracle 11g,but WebLogic Server 10 doesn't contain JDBC support for it.)
    Just copy the .jar files of the drivers to the directoty "WL_HOME/server/lib" or need to configure something else?
    Thanks!
    Huang

  • Installing the jdbc drivers

    Hello Guys:
    I am new to Oracle Application DBA stuff and here is what I have to do now.
    I need to install the jdbc drivers in our oracle financials UAT.
    Here is what I heard from our Oracle support:
    ANSWER
    ======
    The Patch #4159795 status is Deleted, indicates that the patch has been deleted from the patch repository. This usually occurs when the patch has been obsoleted.
    However, this bug (BUG:4159795) has been fixed in version 10.2 which means it's solved in the latest releases.
    The JDBC drivers are certified to work with the currently supported versions of the Oracle Database. For example, the JDBC Thin drivers in Oracle Database 10g a re certified to work with the 9.2.x, 9.0.1.x, and 8.1.7 Oracle Database releases.
    However, they are not certified to work with older, unsupported database releases, such as 8.0.x and 7.x.
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/getsta.htm#i1008205
    Now please tell me what needs to be done. Should i install this on the application server or on the database server. If any one could give me a heads or give me pointers to documents it will be great.
    Regards,
    Bala

    If you are using Oracle 11i, the JDBC drivers are normally upgraded via a patch during a JDK upgrade (1.3.1, or 1.4.2, or 1.5.0). I am pretty sure the note referenced by the analyst has no relevance to Oracle EBS.
    Upgrading JDBC drivers with Oracle Applications 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=164317.1
    Upgrading Oracle Applications 11i to use JDK 1.3
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=130091.1
    Upgrading to J2SE 1.4.2 with Oracle Applications 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=246105.1
    Using J2SE Version 5.0 with Oracle E-Business Suite 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=304099.1

  • Microsoft SQL Server JDBC Drivers 4.0.2206 timeout on first connection to SQL Server Express after it sleeps

    Our builds kick off and run integration tests. They are configured to hit a SQL Server Express server.
    If the builds have been quiet for a while, the first test to connect fails after stalling for 20 minutes.
    Subsequent tests are fine.
    Reversing test order does the same thing, with a different test.
    We noticed in the SQL Server express log the server saying it is waking up after being idle.
    Microsoft SQL Server Express with Microsoft SQL Server JDBC Drivers 4.0.2206.
    Connection times out after 20 minutes.Occurs with the first connection made after the SQL Server Express server wakes up from going to sleep.Connections after the first are just fine, until SQL Server Express sleeps.SSL enabled. Timeout duration for the connection failure is unaffected by setting timeout options for the connection.  Work around:
    cron-like job that runs every minute that makes a simple query on the server keeps the server from going to sleep.
    Has anyone else run into this?

    Hello,
    SQL Server Express will go to sleep if idle, this behavior is not configurable.
    When SQL Express transitions from idle to active some of the memory that was released needs to be reclaimed; this results is a slight lag during "startup time" when you're first connecting to SQL Express.
    The other sort of sleep occurs when a database with AUTO_CLOSE unloading itself after a period of inactivity. This can be resolved by setting AUTO_CLOSE to false.
    You can refer to the following blog about more details about this:
    http://blogs.msdn.com/b/sqlexpress/archive/2008/02/22/sql-express-behaviors-idle-time-resources-usage-auto-close-and-user-instances.aspx
    You can try to upgrade the SQL Server Express to a non-free version to get rid of this.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Configuration of JDBC drivers for ocnnecting from BOE to Oracle

    HI all,
    I am trying to configure jbdc drivers in solaris for connecting BOE 3.1 sP2 to oracle 10g database.
    issue is not able to create connection in universe designer using jdbc drivers
    i couldnt get the exact info on this, please provide me the steps for connecting to oracle through jbdc drivers, Thanks,
    Thanks
    Ram

    I am now up and running.  Several tips were found on both Adobe and Oracle sites that were helpful. Here is a brief summary of the steps:
    Step 1, download* the Oracle Database11G release 2 Client for Microsoft Windows x64. (not the Instant Client). Follow the instructions provided on the download site. Select just the items you need from the custom install form.
    Step 2, add your datasources using the Oracle Net Configuration Assistant**.  Select Local Net Service Name Config. Follow the prompts, answer the questions.
    Step 3, add your datasources on Windows 2008 Server with Administrative Tools Datasources. Similar to step 2.
    Step 4, in CF10 Administrator set up your datasources. The first thing to do is set your Class Path to the location of the jdbc .jar files.  When you configured the Oracle installation you specified the location of the files. Go there and look for the\jdbc\lib folder. It contains the jar files for your drivers. Example:  C:\\Oracle\home\jdbc\lib\.  Now add your datasources. Select Other from the drivers drop-down list. This may be the tricky part. You will need the database information for connecting, such as host name, port, user, password, etc.  The connect url will look like: jdbc:oracle:thin@hostname:portnumber:servicename. Class: oracle.jdbc.OracleDriver  Name: whatever
    * download from:  oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html
    ** This utility should be selected as an item to install from step 1.

  • Oracle 8.0.6 JDBC Drivers download

    We are working with an Oracle 8.0.6 Database installed in a Sun Solaris machine.
    Now we need to execute a batch program in a Windows 2000 PC. We wanted to know if we can use the JDBC Drivers used in the Sun Solaris version or we have to download another class files.
    Thanks a lot.

    Ok i have solved the problem. I tried playing with the URL string, and started getting a Refused error along with the other erros. I noticed that i was not using the oracle user/pwd instead was using unix user/pass. I was also using the wrong tnsname that didnt match the IP.
    I changed that and
    String url = "jdbc:oracle:thin:@<database>";
    where <database> is
    @IP:portno:tnsname
    and wooolllaaaa it worked.

  • How to install + where to get: JDBC-drivers for Oracle8i

    hi,
    i need to install the JDBC drivers (to use oracles XSU).
    where can i get them (for oracle 8i) and how do i install them.
    im not familiar with java so im looking for a step-by-step install-manual.
    thanks in advance

    hi
    Go to Oralce.com....on the top right corner click on downloads and then from the list available choose the driver you need....they come with instructions for installing and downloading......Hope this helps

  • Use of Macromedia JDBC Drivers is restricted

    We are building a new CF9 server. We installed the developer version and things appeared to work OK. When we set our single-server license (single server, not Enterprise) we get this message when trying some of our queries against a SQL Server database (did not try against Oracle, we only use SQL Server for this application).
    Error Executing Database Query.
    Use of Macromedia JDBC Drivers is restricted. Drivers can only be used with Macromedia server products. Please check that your license supports the requested driver.
    One of the other threads here indicates that JDBC drivers are only enabled for the Enterprise version. Another thread however seems to indicate that we would need to reinstall and make sure that the correct drivers were selected during the install process. This part *did* work during the developer period (which I believe enables all Enterprise features).
    Can standard version support JDBC? If not, can we use something else than JDBC? We don't want Enterprise.

    First, yes, CF Standard supports JDBC. All CF database connections, regardless of version or license, use JDBC. The difference between Standard and Enterprise with regard to JDBC drivers is limited to the bundled Oracle driver included with Enterprise, Developer and Trial - this is not available for Standard.
    Second, there's no relevant option for which JDBC drivers you get during the install process, regardless of version. There is an option for the JDBC-ODBC bridge, SequeLink, but that's not relevant to this.
    Now, to fix your problem. First, make absolutely sure you're not using the Oracle driver! I know you said you're not, but better safe than sorry.
    After that, the easiest approach would probably be to just completely uninstall CF and reinstall it with the correct license - at least, that would be the quickest without doing additional digging. However, I'm sure with a bit of tinkering you can fix your problem without uninstalling - I'm just not sure on the direction and amount of time that tinkering would take.
    Alternatively, you could open a support ticket with Adobe, although honestly it would probably take you less time to just uninstall and reinstall CF.
    Dave Watts, CTO, Fig Leaf Software

  • Problem using production version of SQL Server 2005 JDBC drivers

    A production version of the Microsoft SQL Server 2005 JDBC driver became available on 1/20/06, and we are having some issues getting it to work with WLS 9.1. The non-XA driver works fine, but when we attempt to use the XA version, we see the error below in our logs. (Note that in the text "status:0 msg:null", the "null" is actually an unprintable character that I was not able to copy/paste.)
    We have successfully tested WLS 9.1 with the beta JDBC drivers that were released by Microsoft a number of months ago, so this appears to be a problem with the prod version only (although we had no trouble using the prod drivers with JBoss). We have actually opened a support case for this, but the response we have received thus far has been negligible at best and we really need to get this issue resolved, so I am posting the problem here as well to see if anyone else has encountered it.
    Regards,
    Sabrina
         at ourpackage.OurMDB.onMessage(OurMDB.java:184)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:426)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:332)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:288)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4228)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: ourpackage.OurDBUtil.openConnection(OurDBUtil.java:130)     
         ... 11 more
    Caused by: java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XA_OK start() failed on resource 'OurXADataSource': XA_OK
    javax.transaction.xa.XAException: java.sql.SQLException: Failed to create the XA control connection. Error: xp_sqljdbc_xa_init failure, status:0 msg:null.
         at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(Ljavax.transaction.xa.Xid;I)V(Unknown Source)
         at weblogic.jdbc.jta.DataSource.start(DataSource.java:679)
         at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1160)
         at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1093)
         at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:274)
         at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:496)
         at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:428)
         at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1390)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1314)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:436)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:392)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
         at ourpackage.OurDBUtil.openConnection(OurDBUtil.java:125)     
         at ourpackage.OurMDB.onMessage(OurMDB.java:184)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:426)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:332)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:288)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4228)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
         at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1395)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1314)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:436)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:392)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
         at ourpackage.OurDBUtil.openConnection(OurDBUtil.java:125)     
         at ourpackage.OurMDB.onMessage(OurMDB.java:184)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:426)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:332)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:288)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4228)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1327)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:436)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:392)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
         at ourpackage.OurDBUtil.openConnection(OurDBUtil.java:125)
         ... 12 more

    SabrinaL wrote:
    A production version of the Microsoft SQL Server 2005 JDBC driver became available on 1/20/06, and we are having some issues getting it to work with WLS 9.1. The non-XA driver works fine, but when we attempt to use the XA version, we see the error below in our logs. (Note that in the text "status:0 msg:null", the "null" is actually an unprintable character that I was not able to copy/paste.)
    We have successfully tested WLS 9.1 with the beta JDBC drivers that were released by Microsoft a number of months ago, so this appears to be a problem with the prod version only (although we had no trouble using the prod drivers with JBoss). We have actually opened a support case for this, but the response we have received thus far has been negligible at best and we really need to get this issue resolved, so I am posting the problem here as well to see if anyone else has encountered it.
    Regards,
    SabrinaHi. Have you done all the XA-related install for the new MS driver? (put the XA
    dll in the DBMS environment etc)? Is your DBMS on a 32-bit machine or 64-bit machine?
    Does the driver present a dll for each of those? You can also get good JDBC help
    from MS via their microsoft.public.sqlserver.jdbcdriver newsgroup.
    Joe Weinstein at BEA
    >
         at ourpackage.OurMDB.onMessage(OurMDB.java:184)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:426)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:332)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:288)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4228)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: ourpackage.OurDBUtil.openConnection(OurDBUtil.java:130)     
         ... 11 more
    Caused by: java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XA_OK start() failed on resource 'OurXADataSource': XA_OK
    javax.transaction.xa.XAException: java.sql.SQLException: Failed to create the XA control connection. Error: xp_sqljdbc_xa_init failure, status:0 msg:null.
         at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(Ljavax.transaction.xa.Xid;I)V(Unknown Source)
         at weblogic.jdbc.jta.DataSource.start(DataSource.java:679)
         at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1160)
         at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1093)
         at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:274)
         at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:496)
         at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:428)
         at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1390)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1314)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:436)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:392)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
         at ourpackage.OurDBUtil.openConnection(OurDBUtil.java:125)     
         at ourpackage.OurMDB.onMessage(OurMDB.java:184)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:426)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:332)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:288)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4228)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
         at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1395)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1314)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:436)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:392)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
         at ourpackage.OurDBUtil.openConnection(OurDBUtil.java:125)     
         at ourpackage.OurMDB.onMessage(OurMDB.java:184)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:426)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:332)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:288)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4228)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1327)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:436)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:392)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
         at ourpackage.OurDBUtil.openConnection(OurDBUtil.java:125)
         ... 12 more

Maybe you are looking for

  • Installation of CS4 Master Collection Query

    Hello I intend to buy CS4 Master Collection to use on my home laptop for media work. The license agreement for Create Suite software states that users can install and use one copy of the software up to the permitted number of compatible computers as

  • Any ideas on how to create multiple libraries?

    Is it possible for me to create another Library? I have some music on my computer and some more on an external hard drive that is not always connected. I would like to create one library for the music on my computer and another for the music on the h

  • Dvd drive came loose

    My laptop (Satellite U305-S5077) fell off my desk and now I'm unable to play discs in my cd/dvd player.  If I push in the drive a bit, the light next to the eject button goes on and I'm able to open the drive. However, other than that my computer won

  • I can't access some of my songs on iTunes with my Sonos wireless player.

    I can't access some of my songs on iTunes with my Sonos wireless player.  Sonos help says this is due to propriatary rules from iTunes that were eliminated after 2009 and there may be some upgrade possible, but iTunes is singularly unhelpful finding

  • IMac G5 Screen Cracked!

    My iMac G5 screen was cracked when my son threw a toy at it while throwing a fit. Some of the old background is still visible, but most of the screen is dominated by wierd colors and designs. Is it possible to get this fixed? If so, how do I go about