1 Reply Latest reply on Sep 4, 2002 12:08 PM by Dain Sundstrom

    expected one strategy tag

    Jonathan Ekwempu Newbie

      Hi All,

      I got the error above while deploying my CMP bean. Any suggestions? Part of the error trace is listed below.

      05:40:22,858 ERROR [EjbModule] Initialization failed
      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:198)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCReadAheadMetaData.
      JDBCReadAheadMetaData.java:109)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.(JD
      CEntityMetaData.java:512)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:237)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCX
      lFileLoader.java:75)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDa
      a(JDBCStoreManager.java:601)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreMana
      er.java:321)
      at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceMan
      ger.java:155)
      at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)

      Here is my query tag:



      Find Products by Name

      <query-method>
      <method-name>findByName</method-name>
      <method-params><method-param>java.lang.String</method-param></method-params>
      </query-method>
      <result-type-mapping>Remote</result-type-mapping>
      <ejb-ql>
      SELECT OBJECT(p)
      FROM MyProduct p
      WHERE p.name = ?1
      </ejb-ql>



      Thanks.
      Jonathan