0 Replies Latest reply on Mar 20, 2003 10:10 PM by Rong Xing

    CMP deploy error:  expected one true-mapping tag

    Rong Xing Newbie

      I'm using mysql database to implement a CMP, the following error was thrown when the bean was deployed. Does any body know what "expected one true-mapping tag" means basically?

      Thanks in advance,

      Rong

      ----------------------
      The exceptions:

      19:04:19,513 WARN [ServiceController] Problem starting service jboss.j2ee:jndi
      ame=ejb.CustomerEJB,service=EJB
      org.jboss.deployment.DeploymentException: expected one true-mapping tag
      at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:101)
      at org.jboss.metadata.MetaData.getUniqueChildContent(MetaData.java:208)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCTypeMappingMetaData.(JDBCTypeMappingMetaData.java:136)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:202)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCX
      lFileLoader.java:67)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDa
      a(JDBCStoreManager.java:677)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDB
      StoreManager.java:389)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManag
      r.java:339)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceMana
      er.java:198)