Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-1273

Pear runtime pulls in all jar files in pear lib directory, no matter if they're on the classpath or not

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.3
    • Core Java Framework
    • None

    Description

      The pear runtime will not only use the classpath as defined in metadata/install.xml, it will also pick up any jar in the lib directory. It even recurses down into subdirectories. This is undocumented, and most unexpected.

      I chatted with Michael about this. He thinks it may be because the same code that creates the classpath in the pear packager is used in the runtime. The packager does collect all jar files it can find and puts them in the classpath, and the pear file. That's fine for the packager, but not the runtime. We should either have an explicit classpath, or use all jar files in the lib dir, but not both.

      Attachments

        Activity

          People

            Unassigned Unassigned
            twgoetz Thilo Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: