4 Replies Latest reply on Oct 15, 2002 2:58 AM by aloubyansky

    DeploymentException: expected one true-mapping tag

    jlruizr

      Hi. I am getting this error when deploying the CMP Beans under JBoss 3.0.3, I recently upgraded from 3.0.0. The DB is MySQL and I am generating the classes using XDoclet.

      I have verified that all the files needed to use MySql were correct. The login-config for the MySQLDBRealm, standardjbosscmp-jdbc to have MySql as the default DB, the build.xml to tell XDoclet to use MySql, and mysql-service.xml in the deploy folder. Also, the mm.mysql-2.0.14-bin in the lib folder.

      Below is the full description of the error:

      11:27:17,452 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=XRP/TemplateEjercicio,service=EJB
      org.jboss.deployment.DeploymentException: expected one true-mapping tag

      Also, I am getting an MBeanException with the following:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.jca:service=LocalTxCM,name=MySqlDS
      state: CONFIGURED
      I Depend On: jboss.jca:service=LocalTxDS,name=MySqlDS
      jboss.jca:service=LocalTxPool,name=MySqlDS
      jboss.jca:service=CachedConnectionManager
      jboss.security:name=JaasSecurityManager
      jboss.jca:service=RARDeployer

      Thanks.

        • 1. Re: DeploymentException: expected one true-mapping tag
          aloubyansky

          The DeploymentException says that in standardjbosscmp-jdbc.xml for MySql or in your jbosscmp-jdbc.xml type-mapping element has two true-mapping elements while must have only one. Check it and post your findings.

          That MBeanException says that connection factory wasn't deployed correctly. Probably, you used the configuration from the previous version. Try to use the template from the version you are upgrading to.

          • 2. Re: DeploymentException: expected one true-mapping tag
            jlruizr

            I couldn't find the two true-mapping elements in the standardjbosscmp-jdbc.xml.

            Instead, I refreshed the standardjbosscmp-jdbc.xml from my downloaded jboss-3.0.3xxx.zip file and copied it down to the conf folder and modified this one to use MySQL. This worked.

            I did the same thing for the mysql-service.xml, which was giving the MBean error and it worked.

            Thanks.


            PS. If you want a copy of the standardjbosscmp-jdbc.xml that is not working, let me know.

            • 3. Re: DeploymentException: expected one true-mapping tag
              jlruizr

              I couldn't find the two true-mapping elements in the standardjbosscmp-jdbc.xml.

              Instead, I refreshed the standardjbosscmp-jdbc.xml from my downloaded jboss-3.0.3xxx.zip file and copied it down to the conf folder and modified this one to use MySQL. This worked.

              I did the same thing for the mysql-service.xml, which was giving the MBean error and it worked.

              Thanks.


              PS. If you want a copy of the standardjbosscmp-jdbc.xml that is not working, let me know.

              • 4. Re: DeploymentException: expected one true-mapping tag
                aloubyansky

                Did come with JBoss? Didn't you modify it? Post it, please.