Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-2625

Java agent fails to install on windows docker image with JDK 11

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.6.0.0, 5.6.2.0
    • 6.0.0.0, 5.6.2.1, 5.7.0
    • J2EE Agents
    • Windows docker image: openjdk:11-jdk-windowsservercore
      Tomcat Java Agent 5.6.0

    Description

      Java agent fails to install on windows docker image with JDK 11. It is possible that issue can occurs on non docker windows machine, although I did not reproduce it on Windows 2016: Build 14393.rs1_release.160715-1616

      Steps to reproduce

      1.) Create windows docker image with openjdk:11-jdk-windowsservercore
      2.) Install the agent on docker container

      Expected

      Installation will be successful

      Observed

      After providing all values installation failed with following exception:

      Updating the C:\apache-tomcat-9/bin/setenv.bat script with the Agent
      configuration JVM option ...Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\ContainerAdministrator\AppData\Local\Temp\jna--222008340\jna18206723272300143279.dll: Can't find dependent libraries
              at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
              at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2430)
              at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2487)
              at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2684)
              at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2617)
              at java.base/java.lang.Runtime.load0(Runtime.java:767)
              at java.base/java.lang.System.load(System.java:1831)
              at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
              at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
              at com.sun.jna.Native.<clinit>(Native.java:140)
              at com.sun.jna.Pointer.<clinit>(Pointer.java:41)
              at com.sun.jna.platform.win32.WinReg$HKEY.<init>(WinReg.java:32)
              at com.sun.jna.platform.win32.WinReg.<clinit>(WinReg.java:61)
              at com.sun.identity.agents.tools.tomcat.v6.UpdateServerEnvBase.getWindowsRegistryKey(UpdateServerEnvBase.java:201)
              at com.sun.identity.agents.tools.tomcat.v6.UpdateServerEnvBase.getWindowsRegistryValues(UpdateServerEnvBase.java:176)
              at com.sun.identity.agents.tools.tomcat.v6.UpdateServerEnvTask.updateTomcatInstallation(UpdateServerEnvTask.java:53)
              at com.sun.identity.agents.tools.tomcat.v6.UpdateServerEnvTask.execute(UpdateServerEnvTask.java:40)
              at com.sun.identity.install.tools.configurator.TaskRunner.executeTask(TaskRunner.java:120)
              at com.sun.identity.install.tools.configurator.TaskRunner.runTasks(TaskRunner.java:87)
              at com.sun.identity.install.tools.configurator.InstallDriver.install(InstallDriver.java:108)
              at com.sun.identity.install.tools.configurator.InstallDriver.install(InstallDriver.java:54)
              at com.sun.identity.install.tools.handler.InstallHandler.handleRequest(InstallHandler.java:65)
              at com.sun.identity.install.tools.admin.AdminTool.dispatch(AdminTool.java:265)
              at com.sun.identity.install.tools.admin.AdminTool.run(AdminTool.java:175)
              at com.sun.identity.install.tools.launch.AdminToolLauncher.launchAdminTool(AdminToolLauncher.java:212)
              at com.sun.identity.install.tools.launch.AdminToolLauncher.main(AdminToolLauncher.java:337)
      

      Agent uses JNA(Java Native Access) 4.2.2, updating to newer version should fix the issue.

      Attachments

        Activity

          People

            kamal.sivanandam@forgerock.com Kamal Sivanandam
            richard.hruza Richard Hruza
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: