2 Replies Latest reply on Apr 2, 2003 12:16 AM by David Jencks

    XAOracleDS on JBoss 3.0.6

    Tim Tye Newbie

      I have configured oracle_xa_service.xml in default configuration, and it fails to start the data source.
      ----- oracle_xa_service.xml -------------
      <?xml version="1.0" encoding="UTF-8"?>

      <!-- This is done in conf/jboss-service.xml

      true

      -->

      <!--make the rar deploy! hack till better deployment-->
      jboss.jca:service=RARDeployer
      <depends optional-attribute-name="ManagedConnectionFactoryName">
      <!--embedded mbean-->

      <!--hack-->
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Minerva JDBC XATransaction ResourceAdapter

      <!--real attributes-->


      <config-property name="XADataSourceProperties"
      type="java.lang.String">URL=jdbc:oracle:thin:@ttt1:1521:sample</config-property>
      <config-property name="XADataSourceClass"
      type="java.lang.String">oracle.jdbc.xa.client.OracleXADataSource</config-property>
      <config-property name="UserName"
      type="java.lang.String">tyeti01</config-property>
      <config-property name="Password"
      type="java.lang.String">zdeadrat</config-property>


      XAOracleDS



      <depends optional-attribute-name="ManagedConnectionPool">
      <!--embedded mbean-->


      0
      50
      5000
      15
      ByContainer


      <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
      <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager
      java:/TransactionManager



      ------ ------
      I get the following error when attempting to start the XA service:
      2003-03-20 11:58:40,741 INFO [org.jboss.resource.connectionmanager.XATxConnectionManager] Creating
      2003-03-20 11:58:40,785 INFO [org.jboss.resource.connectionmanager.XATxConnectionManager] Created
      2003-03-20 11:58:40,852 INFO [org.jboss.resource.connectionmanager.XATxConnectionManager] Starting
      2003-03-20 11:58:40,934 ERROR [org.jboss.resource.connectionmanager.XATxConnectionManager] Starting failed
      org.jboss.deployment.DeploymentException: expected one config-property-value tag
      at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:101)
      at org.jboss.resource.connectionmanager.RARDeployment.setMcfProperties(RARDeployment.java:787)
      at org.jboss.resource.connectionmanager.RARDeployment.startManagedConnectionFactory(RARDeployment.java:560)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.startService(BaseConnectionManager2.java:382)
      at org.jboss.resource.connectionmanager.XATxConnectionManager.startService(XATxConnectionManager.java:162)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
      at $Proxy4.start(Unknown Source)
      ......
      Followed by:

      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.jca:service=XATxCM,name=XAOracleDS
      state: FAILED
      I Depend On: jboss.jca:service=RARDeployer
      jboss.jca:service=XATxDS,name=XAOracleDS
      jboss.jca:service=XATxPool,name=XAOracleDS
      jboss.jca:service=CachedConnectionManager
      jboss.security:service=JaasSecurityManager

      Depends On Me: org.jboss.deployment.DeploymentException: expected one config-property-value tag]

        • 1. Re: XAOracleDS on JBoss 3.0.6
          duda Newbie

          You have to change RAR descriptor in the file jboss-xa.rar from your deploy folder.

          There is the file ra.xml in subdirectory META-INF in the RAR-file. In this file in every config-property tag you have to add <config-property-value></config-property-value> with empty conent.

          In the same way it was made in similar RAR descriptor in jboss-local-jdbc.rar.

          It will fix the bug, but I do not know if it don't cause another. I didn't have time yet to test it.

          Sorry for my english

          duda

          • 2. Re: XAOracleDS on JBoss 3.0.6
            David Jencks Master

            This is fixed in cvs. I recommend using 3.2 anyway due to the simpler *-ds.xml config files.