Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1444

Incorrect warning about undefined query method with CMP1.x

    XMLWordPrintable

Details

    Description

      When deploying an EJB 1.1 bean using CMP, the following warning is issued for each finder:
      17:02:33,989 WARN [JDBCQueryMetaDataFactory] The query method is not defined in ejb-jar.xml: <method-signature>
      This warning is invalid as query methods can not be defined in an EJB 1.1 ejb-jar.xml.

      The fix is trivial, as all necessary information is available: the warning is issued by the method createJDBCQueryMetaData(Element, Map, JDBCReadAheadMetaData readAhead) in the class JDBCQueryMetaDataFactory; the test whether the query is defined (if (defaultValue == null)) should be extended with "&& ! entity.isCMP1x()"

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            petertje_jira Peter Doornbosch (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: