0 Replies Latest reply on May 12, 2010 3:00 AM by hugbert

    jboss.xml : configuration 'CMP 2.x and Cache' not found

    hugbert

      Hi all,


      I try to optimize EJB's in jboss.xml (4.2.2 GA) and get the following error on startup:

       

      2010-05-11 21:19:10,918 ERROR [org.jboss.metadata.XmlFileLoader] failed to load jboss.xml.  There could be a syntax error.
      org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean HistoryStep: configuration 'CMP 2.x and Cache' not found in standardjboss.xml or jboss.xml
          at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:956)
          at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:200)


      I made the following changes in jboss.xml:

      <jboss>
        <enterprise-beans>


          <container-configurations>
            <container-configuration extends=
              "Standard CMP 2.x EntityBean">
              <container-name>CMP 2.x and Cache</container-name>
              <commit-option>A</commit-option>
            </container-configuration>
          </container-configurations>

          <entity>
            <ejb-name>MyEntity</ejb-name>
            <configuration-name
            CMP 2.x and Cache</configuration-name>
            <method-attributes>
              <method>
                <method-name>get*</method-name>
                <read-only>true</read-only>
              </method>
            <method-attributes>
          </entity>
      </jboss>

       


      I checked it against here:http://www.mastertheboss.com/en/jboss-application-server/130-jboss-performance-tuning-part-2.html

      But I cannot see what I did wrong.

      Could anybody please give me a hint?

      Thank you

      Hubert