Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2566

Jar included in a MANIFEST.MF from an ejb jar can not see user defined modules. Results in java.lang.ClassNotFound error.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 7.1.0.CR1
    • 7.1.0.Alpha1
    • EE
    • None
    • Hide

      Not easy to work around except to avoid using static modules.

      Show
      Not easy to work around except to avoid using static modules.

    Description

      In an ear file user defined modules referenced from MANIFEST.MF are available to ejb jars but not to the ejb jars manifested jars. When the jar manifested in tries to access a modules classes a java.lang.ClassNotFoundException is raised. By the java jar spec the manifested jar should be in classpath of the jar manifesting it. I tried putting the modules Dependencies: reference in both the ejb jars MANIFEST.MF as well as the non ejb jars MANIFEST.MF. This is a run time error it deploys fine.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            rkite01 Rodney Kite (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: