6 Replies Latest reply on Aug 11, 2003 4:41 AM by jonlee

    Multiple postgres-service.xml files in 3.0.8?

    normann

      I need two postgresql datasources so I thought I'd just have two copies of the postgres-service.xml file in my deploy directory. I change the datasource name but JBoss won't deploy the extra file. It says:

      11:16:45,905 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@eac66188 { url=file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml
      lastDeployed: 1060073098733
      lastModified: 1060073098000
      mbeans:

      My postgresql-service.xml and postgresql-service2.xml are attached.

        • 1. Re: Multiple postgres-service.xml files in 3.0.8?

          The MBean object names must be unique. The real ERROR (exception stack trace) should show up earlier in your server.log, what you posted just tells that the service didn't start.

          • 2. Re: Multiple postgres-service.xml files in 3.0.8?
            normann

            There is no exception (or stacktrace). The complete server log for the deployment is:

            10:44:58,652 INFO [MainDeployer] Starting deployment of package: file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml
            10:44:58,732 INFO [MainDeployer] deployment waiting for deployer: file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml
            10:44:58,733 INFO [MainDeployer] Deployment of package: file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml is waiting for an appropriate deployer.
            10:44:58,735 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
            Cause: Incomplete Deployment listing:
            Packages waiting for a deployer:
            [org.jboss.deployment.DeploymentInfo@eac66188 { url=file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml }
            deployer: null
            status: null
            state: INIT_WAITING_DEPLOYER
            watch: file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml
            lastDeployed: 1060073098733
            lastModified: 1060073098000
            mbeans:
            ]Incompletely deployed packages:
            [org.jboss.deployment.DeploymentInfo@eac66188 { url=file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml }
            deployer: null
            status: null
            state: INIT_WAITING_DEPLOYER
            watch: file:/home/jboss/jboss-3.0.8/server/default/deploy/postgres-service2.xml
            lastDeployed: 1060073098733
            lastModified: 1060073098000
            mbeans:
            ]MBeans waiting for classes:

            MBeans waiting for other MBeans:


            • 3. Re: Multiple postgres-service.xml files in 3.0.8?
              normann

              I tried changing the name of the MBean that is defined in the postgres-service2.xml but it didn't help a thing -- Jboss still gives the samme error as mentioned above.

              Maybe I need to change someting else, I'm not sure what I'm doing but I need the extra data source.

              The new XML file is attached.

              • 4. Re: Multiple postgres-service.xml files in 3.0.8?

                Hmm, looks ok, shouldn't conflict with object names now. I don't know what else it could be, especially if you're sure there are no exceptions in your server.log

                -- Juha

                • 5. Re: Multiple postgres-service.xml files in 3.0.8?
                  normann

                  Is there noone who can solve this problem for me?

                  • 6. Re: Multiple postgres-service.xml files in 3.0.8?
                    jonlee

                    Your new XML looks fine except for this line:
                    <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=PostgresDS</module-option>

                    The name should be Postgres2DS, following the nomenclature you have used throughout I think, otherwise you point at the managed connection factory from the first postgres service.

                    Also the naming is wrong for the file so JBoss doesn't have any idea about what it is configuring. You must name it postgres2-service.xml, not postgres-service2.xml.

                    Hope that solves your current issues.