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

PearMerger unit test failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • Tools
    • None

    Description

      PearMergerTest fails with error message:
      java.lang.NoClassDefFoundError: org/apache/uima/tutorial/DateAnnot
      at org.apache.uima.example.DateTime.<clinit>(DateTime.java:131)
      ...
      at org.apache.uima.tools.pear.merger.PearMergerTest.testPearMerger(PearMergerTest.java:138)

      A look into the pear files that are being merged shows that JCAS classes (including DateTime) are located in the directory org/apache/uima/example/types, which doesn't match the package name. So this is a bad PEAR file and the PearMergerTest is correctly reporting an error.

      Previously this issue was masked because the classpath for the tests incorrectly included the uimaj-examples project, which does contain the correct JCAS types.

      Attachments

        1. uima.example.DateTime.pear
          22 kB
          Lev Kozakov
        2. uima.example.RoomNumber.pear
          7 kB
          Lev Kozakov

        Activity

          People

            alally Adam P. Lally
            alally Adam P. Lally
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: