I have been trying to migrate from 2.2 to 2.4 and suddenly my Oracle8
driver doesn't work anymore.

I kept the same declaration in jboss.jmcl as I used for 2.3, namely;

  <mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
     <attribute
name="Drivers">oracle.jdbc.driver.OracleDriver</attribute>
  </mbean>

  <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=OracleDS">
    <attribute name="PoolName">OracleDS</attribute>
    <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourc
eImpl</attribute>
    <attribute
name="URL">jdbc:oracle:thin:@localhost:1521:jbossb</attribute>
    <attribute name="JDBCUser">SYSTEM</attribute>
    <attribute name="Password">manager</attribute>
  </mbean>

But I got the exception that
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl was not found.
Looking in the jar files that come with JBoss 2.4 I found this was true.
So I changed the attribute to <attribute
name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</
attribute> to use the org.jboss version but I got the following
exception 

[JdbcProvider] Starting
[JdbcProvider] Started
[XADataSourceLoader] Starting
[OracleDS] XA Connection pool OracleDS bound to java:/OracleDS
[XADataSourceLoader] Stopped
java.lang.NullPointerException
        at
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.j
ava:178)
        at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:4
07)
        at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Configu
rationService.java:836)
        at $Proxy0.start(Unknown Source)
        at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at org.jboss.Main.<init>(Main.java:210)
        at org.jboss.Main$1.run(Main.java:116)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.jboss.Main.main(Main.java:112)

So what I did was conclude that the tyrex XADataSourceImpl. This also
has a XADataSourceImpl class. So I changed the attribute to<attribute
name="DataSourceClass">tyrex.resource.jdbc.xa.XADataSourceImpl</attribut
e> concluding that this was the new one to be used with Oracle8i but
this one threw the following exception:

[JdbcProvider] Starting
[JdbcProvider] Started
[XADataSourceLoader] Starting
[XADataSourceLoader] Stopped
java.lang.InstantiationException:
tyrex.resource.jdbc.xa.XADataSourceImpl
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:3
45)
        at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Configu
rationService.java:836)
        at $Proxy0.start(Unknown Source)
        at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at org.jboss.Main.<init>(Main.java:210)
        at org.jboss.Main$1.run(Main.java:116)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.jboss.Main.main(Main.java:112)

My last effort was to copy the old jar that came with JBoss2.2,
minerva-1_0b3.jar, into my JBoss 2.4 lib/ext dir but here I get the same
exception as before:

[OracleDS] XA Connection pool OracleDS bound to java:/OracleDS
[XADataSourceLoader] Stopped
java.lang.NullPointerException
        at
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.j
ava:178)
        at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:4
07)
        at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Configu
rationService.java:836)
        at $Proxy0.start(Unknown Source)
        at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at org.jboss.Main.<init>(Main.java:210)
        at org.jboss.Main$1.run(Main.java:116)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.jboss.Main.main(Main.java:112)

I have looked through the change notes for release 2.4.1 but nothing on
Oracle. So I have run out of ideas. Can anyone help.
Paul.

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

Reply via email to