1 Reply Latest reply on Apr 8, 2002 4:05 PM by pazu

    JBoss3-beta  - CMP2 - deployment problem

    axelm

      On my way to solve the 'expected one strategy tag' error I came across a message about a new 'jbosscmp-jdbc_3_0.dtd'.
      1.) Don't I need to reference this file in the '<!DOCTYPE' element in my 'jbosscmp-jdbc.xml'?

      I'm getting this error when using the CMP2 workbook example. ( The docs say the example was written for JBoss 3 Alpha...) Any ideas?

      Thanks.


      2002-04-09 11:03:31,393 ERROR [org.jboss.ejb.EntityContainer] Exception in service lifecyle operation: create
      org.jboss.deployment.DeploymentException: expected one strategy tag
      at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:95)
      at org.jboss.metadata.MetaData.getUniqueChildContent(MetaData.java:202)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCReadAheadMetaData.(JDBCReadAheadMetaData.java:91)

        • 1. Re: JBoss3-beta  - CMP2 - deployment problem
          pazu

          The jbosscmp-jdbc.xml DTD has changed quite a bit from 3.0.0 alpha to the current CVS version. I advise you to take a look on the new DTD and correct your deployment descriptors.

          (for this case: <read-ahead> requires a content, which should be one of "none", "on-load" or "on-find")