7 Replies Latest reply on Mar 14, 2003 5:42 PM by Dan Ciarniello

    JBoss 3.0.5 XATxConnectionManager Deploy Failed

    Christian Kebekus Newbie

      When trying to use the MS SQL Server XA driver I always get an error message from JBoss that it expects one config-property-value tag (see message below). This worked fine in 3.0.4. Did something change in the RARDeployment? All I did is copy the jar files to the lib folder and the (distributed) mssql-xa-service.xml file into the deploy folder.

      Any help is appreciated.

      Console Message:
      ------------------------------------
      15:56:36,914 ERROR [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 java.lang.reflect.Method.invoke(Native Method)
      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 java.lang.reflect.Method.invoke(Native Method)
      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)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at org.jboss.system.ServiceController.start(ServiceController.java:433)
      at org.jboss.system.ServiceController.start(ServiceController.java:433)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy10.start(Unknown Source)
      at org.jboss.resource.RARDeployer.start(RARDeployer.java:212)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at java.lang.reflect.Method.invoke(Native Method)
      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 $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:229)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:479)
      15:56:37,866 WARN [ServiceController] Problem starting service jboss.jca:service=XATxCM,name=MSSQLXaDS
      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 java.lang.reflect.Method.invoke(Native Method)
      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 java.lang.reflect.Method.invoke(Native Method)
      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)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at org.jboss.system.ServiceController.start(ServiceController.java:433)
      at org.jboss.system.ServiceController.start(ServiceController.java:433)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy10.start(Unknown Source)
      at org.jboss.resource.RARDeployer.start(RARDeployer.java:212)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at java.lang.reflect.Method.invoke(Native Method)
      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 $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:229)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:479)

      ------------------------------------------

        • 1. Re: JBoss 3.0.5 XATxConnectionManager Deploy Failed
          AzUr Newbie

          Did U use the .xml for THIS dist? You did not copy the prev. version's .xml file? It might have changed See under examples/jca/... /AzUr

          • 2. Re: JBoss 3.0.5 XATxConnectionManager Deploy Failed
            Christian Kebekus Newbie

            I used the xml file that was part of the distribution under the docs\examples\jca folder (see below).

            Does it work on your machine? Any ideas? Thanks!

            -----------------------------------------

            <?xml version="1.0" encoding="UTF-8"?>

            <!-- ===================================================================== -->
            <!-- -->
            <!-- JBoss Server Configuration -->
            <!-- -->
            <!-- ===================================================================== -->




            <!-- ==================================================================== -->
            <!-- ConnectionManager setup for xa Microsoft SQL Server 2000, using -->
            <!-- Microsoft's JDBC driver. -->
            <!-- Thanks to Benjamin Geer <benjamin.geer@misys.com> -->
            <!-- Be sure to set the JndiName property to the name you want to look up -->
            <!-- the datasource under and set the location of your database in -->
            <!-- the ManagedConnectionFactoryProperties. -->
            <!-- ==================================================================== -->




            <!-- For optional container managed security, include a login module
            configuration named MSSQLXaDbRealm in conf/login-conf.xml.
            Here is an example login module configuration for a ConfiguredIdentityLoginModule:

            <application-policy name = "MSSQLXaDbRealm">

            <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag ="required">
            <module-option name = "principal">yourprincipal</module-option>
            <module-option name = "userName">yourusername</module-option>
            <module-option name = "password">yourpassword</module-option>
            <module-option name = "managedConnectionFactoryName">jboss.jca:service=XATxCM,name=MSSQLXaDS</module-option>
            </login-module>

            </application-policy>

            NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the
            module-option name = "managedConnectionFactoryName"
            must match the object name of the ConnectionManager you are configuring here.
            -->
            <!--uncomment this line if you are using the MSSQLXaDbRealm above
            MSSQLXaDbRealm
            -->

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


            MSSQLXaDS

            <!--real attributes-->


            <config-property name="XADataSourceProperties" type="java.lang.String">ServerName=yourserver;DatabaseName=yourdatabasename;SelectMethod=cursor</config-property>

            <config-property name="XADataSourceClass" type="java.lang.String">com.microsoft.jdbcx.sqlserver.SQLServerDataSource</config-property>


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



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


            0
            50
            5000
            15
            <!--criteria indicates if Subject (from security domain) or app supplied
            parameters (such as from getConnection(user, pw)) are used to distinguish
            connections in the pool. Choices are
            ByContainerAndApplication (use both),
            ByContainer (use Subject),
            ByApplication (use app supplied params only),
            ByNothing (all connections are equivalent, usually if adapter supports
            reauthentication)-->
            ByContainer


            <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager


            <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager

            java:/TransactionManager

            <!--make the rar deploy! hack till better deployment-->
            jboss.jca:service=RARDeployer



            • 3. Re: JBoss 3.0.5 XATxConnectionManager Deploy Failed
              AzUr Newbie

              You have changed the file to your specific connection details??? This is the generic file without any changes you have posted. /AzUr

              • 4. Re: JBoss 3.0.5 XATxConnectionManager Deploy Failed
                Christian Kebekus Newbie

                Yes, I filled in the settings. Again, the configuration file works under 3.0.4, but not under 3.0.5. Did you get it working with 3.0.5?

                • 5. Re: JBoss 3.0.5 XATxConnectionManager Deploy Failed
                  Zeev Bubis Newbie

                  I am having a similar problem with Oracle XA service. Again, worked fine in 3.0.4 but in 3.0.5 I get this exception:
                  17:50:36,855 ERROR [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(R
                  ARDeployment.java:787)
                  at org.jboss.resource.connectionmanager.RARDeployment.startManagedConnec
                  tionFactory(RARDeployment.java:560)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
                  nDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.resource.connectionmanager.BaseConnectionManager2.startServ
                  ice(BaseConnectionManager2.java:382)
                  at org.jboss.resource.connectionmanager.XATxConnectionManager.startServi
                  ce(XATxConnectionManager.java:162)
                  at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
                  65)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
                  nDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
                  ler.java:1003)
                  at $Proxy4.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:413)
                  at org.jboss.system.ServiceController.start(ServiceController.java:433)
                  at org.jboss.system.ServiceController.start(ServiceController.java:433)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
                  nDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                  at $Proxy8.start(Unknown Source)
                  at org.jboss.resource.RARDeployer.start(RARDeployer.java:212)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
                  nDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                  at $Proxy3.deploy(Unknown Source)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
                  tScanner.java:435)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
                  ploymentScanner.java:656)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
                  canner.java:507)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
                  bstractDeploymentScanner.java:261)
                  at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
                  65)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
                  nDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
                  ler.java:1003)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:413)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
                  nDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                  at $Proxy2.start(Unknown Source)
                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:229)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
                  nDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
                  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
                  at org.jboss.Main.boot(Main.java:148)
                  at org.jboss.Main$1.run(Main.java:381)
                  at java.lang.Thread.run(Thread.java:479)

                  • 6. Re: JBoss 3.0.5 XATxConnectionManager Deploy Failed
                    David Jencks Master

                    I think fixing one bug exposed another. I think this is fixed in cvs and perhaps the latest binary. Previously the default values in ra.xml had been ignored: this version incorrectly expected a config-property-value tag with them, now I think the default value is applied if given.

                    • 7. Re: JBoss 3.0.5 XATxConnectionManager Deploy Failed
                      Dan Ciarniello Newbie

                      Unfortunately, the problem is still present in the 3.0.6 binary.

                      Dan.