WebLogic 6.0 CMP 1.1

Discussions

EJB programming & troubleshooting: WebLogic 6.0 CMP 1.1

  1. WebLogic 6.0 CMP 1.1 (1 messages)

    Has anyone successfully used WebLogic 6.0 CMP 1.1 -- i.e., using the DTD

    http://www.bea.com/servers/wls600/dtd/weblogic-rdbms11-persistence-600.dtd.

    I have a weblogic-rdbms-jar.xml that uses this DTD, and a weblogic-ejb-jar.xml that has the following persistence type entry:

            <persistence-type>
              <type-identifier>
                WebLogic_CMP_RDBMS
              </type-identifier>
              <type-version>
                6.0
              </type-version>
              <type-storage>
                META-INF/weblogic-rdbms-jar.xml
              </type-storage>
            </persistence-type>

    The persistence use entry matches this.

    When I try to deploy, I get the following error message:

    Error while deploying EJB 'AccountBean'. The bean is using container managed persistence version 1.x, but the bean's persistence type is using version 2.x. The types must be the same.

    Any ideas?

    (I realize I could use 5.1 CMP. BEA support has recommended using the 6.0 CMP 1.1.)

    Laurel
  2. WebLogic 6.0 CMP 1.1[ Go to top ]

    If you're using the example provided by Weblogic (guessing that is where AccountBean comes from) have you made sure you are using the version in the ejb20 sub-directory rather than the ejb sub-directory?