Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-1649

Invalid deployment descriptor error when deploying an EJB 2.0 MDB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.0
    • 1.1, 1.2
    • deployment, OpenEJB
    • Security Level: public (Regular issues)
    • None

    Description

      There is a bug in org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..) for a EJB 2.0 MDB where the security-identity element is not moved to after the JNDIEnvironmentRefsGroup causing an error such as:

      org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4b: Element not allowed: reso
      urce-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b: El
      ement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cv
      c-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com
      /xml/ns/j2ee, error: cvc-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-dri
      ven@http://java.sun.com/xml/ns/j2ee]

      I will attach a test case to reproduce the problem tomorrow.

      Attachments

        Activity

          People

            johnrsisson John Sisson
            johnrsisson John Sisson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: