Hi,
better not try that, you will run in all sorts of trouble, better just
include your oracle driver into the JDBC-Provider section.
Burkhard
----- Original Message -----
From: "Heiko Dittrich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 12:16 PM
Subject: AW: [JBoss-user] 2.4BETA Oracle JDBC Problem


Hello,
you might try
<attribute
name="DataSourceClass">oracle.jdbc.xa.client.OracleXADataSource</attribute>

  -----Urspr�ngliche Nachricht-----
  Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Luke Studley
  Gesendet: Donnerstag, 19. Juli 2001 11:37
  An: '[EMAIL PROTECTED]'
  Betreff: [JBoss-user] 2.4BETA Oracle JDBC Problem


  Hi all



  I am attempting to get my application working on 2.4 BETA, initially this
involves setting up my JDBC connection.

  For 2.2.2 my mbean entry looks like



    <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=OracleDB">

      <attribute name="PoolName">MyDS</attribute>

      <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l</attribute>

      <attribute
name="URL">jdbc:oracle:thin:@158.234.62.18:1521:webc</attribute>

      <attribute name="GCMinIdleTime">1200000</attribute>

      <attribute name="JDBCUser">user</attribute>

      <attribute name="Password">password</attribute>

    </mbean>



  And this works fine. SO I have copied the Oracle drivers to the 2.4Beta
lib/ext directory and added an entry similar to the above, only with the new
DataSourceClass ->



    <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=OracleDB">

      <attribute name="PoolName">MyDS</attribute>

      <attribute
name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attr
ibute>

      <attribute
name="URL">jdbc:oracle:thin:@158.234.62.18:1521:webc</attribute>

      <attribute name="GCMinIdleTime">1200000</attribute>

      <attribute name="JDBCUser">user</attribute>

      <attribute name="Password">password</attribute>

    </mbean>



  And I get the following error during start up:



  java.lang.NullPointerException

          at
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSourc

  e.java:165)

          at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.jav

  a:330)

          at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:106

  )

          at java.lang.reflect.Method.invoke(Native Method)

          at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16

  28)

          at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15

  23)

          at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf

  igurationService.java:831)

          at $Proxy0.start(Unknown Source)

          at org.jboss.util.ServiceControl.start(ServiceControl.java:81)

  ......



  Does anybody know if there is there some extra configuration I am missing
for 2.4?



  Thanks



  Luke












_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to