Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8277

clientToolBox uses the ext dir, which no longer exists in Java 11

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Try to run clientToolBox on Java 11:

      user@machine:~/ejbca-trunk/dist/clientToolBox$ ./ejbcaClientToolBox.sh
      Can not find the ext directory

      The shellscript tries to find the "ext" directory of the JRE and bails out if it does not exist.

      Not sure why we try to set the ext directory, but it should be removed. Simply remove the whole block handling "ext", and the whole setting of JAVA_OPT (removing JAVA_EXT makes that line do nothing):

      -Djava.ext.dirs=${JAVA_EXT}"

      I suspect that the ext library usage was there for the "jdbc" and "DBManager" commands, that need a jdbc driver. The (potential) jdbc driver should be added in the same way as for the ejbca-db-cli command, where we solved this for java 11.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Henrik Sunmark
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Time Spent - 15 minutes Remaining Estimate - 15 minutes
                  15m
                  Logged:
                  Time Spent - 15 minutes Remaining Estimate - 15 minutes
                  15m