Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8166544

ANT issues in Mac developer build

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: deploy
    • Environment:
    • Subcomponent:
    • Introduced In Version:
      9
    • OS:
      os_x
    • Verification:
      Verified

      Description

      Steps to reproduce.
      1. please find the attachment for ant files.
      2. try to execute attached ant files as per SCENARIO's mentioned below.

      /export/home/gtee/ramesh/jdk9developerbuild/bin/java -version
      java version "9-internal"
      Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-09-21-113038.cbensen.jdk9udev)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-09-21-113038.cbensen.jdk9udev, mixed mode)

      TEST CASE SCENARIOS

      SCENARIO 1.
      ant -verbose -f normalJarPKG.xml
      Apache Ant(TM) version 1.9.7 compiled on April 9 2016
      Buildfile: /export/home/gtee/ramesh/antfiles/normalJarPKG.xml
      Detected Java version: 1.9 in: /export/home/gtee/ramesh/jdk9developerbuild
      Detected OS: Mac OS X
      parsing buildfile /export/home/gtee/ramesh/antfiles/normalJarPKG.xml with URI = file:/export/home/gtee/ramesh/antfiles/normalJarPKG.xml
      Project base dir set to: /export/home/gtee/ramesh/antfiles
      parsing buildfile jar:file:/export/home/gtee/ramesh/apache-ant-1.9.7/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/export/home/gtee/ramesh/apache-ant-1.9.7/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
      parsing buildfile jar:file:/export/home/gtee/ramesh/jdk9developerbuild/lib/ant-javafx.jar!/com/sun/javafx/tools/ant/antlib.xml with URI = jar:file:/export/home/gtee/ramesh/jdk9developerbuild/lib/ant-javafx.jar!/com/sun/javafx/tools/ant/antlib.xml from a zip file
       [macrodef] creating macro javafx:com.sun.javafx.tools.ant:init-ant
      Build sequence for target(s) `fx-deploy' is [fx-deploy]
      Complete build sequence is [fx-deploy, ]

      fx-deploy:
      Building PKG package for SwingHello
      "Adding modules: [] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: Module not found

      BUILD FAILED
      /export/home/gtee/ramesh/antfiles/normalJarPKG.xml:5: Error: Bundler "PKG Installer" (pkg) failed to produce a bundle.
              at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:345)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base/Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base/NativeMethodAccessorImpl.java:62)
              at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base/DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(java.base/Method.java:535)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.Target.execute(Target.java:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
              at org.apache.tools.ant.Main.runBuild(Main.java:854)
              at org.apache.tools.ant.Main.startAnt(Main.java:236)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
      Caused by: com.sun.javafx.tools.packager.PackagerException: Error: Bundler "PKG Installer" (pkg) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:348)
              at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:339)
              ... 17 more

      Total time: 3 seconds


      SCENARIO 2.
      ant -verbose -f normalJardmg.xml
      Apache Ant(TM) version 1.9.7 compiled on April 9 2016
      Buildfile: /export/home/gtee/ramesh/antfiles/normalJardmg.xml
      Detected Java version: 1.9 in: /export/home/gtee/ramesh/jdk9developerbuild
      Detected OS: Mac OS X
      parsing buildfile /export/home/gtee/ramesh/antfiles/normalJardmg.xml with URI = file:/export/home/gtee/ramesh/antfiles/normalJardmg.xml
      Project base dir set to: /export/home/gtee/ramesh/antfiles
      parsing buildfile jar:file:/export/home/gtee/ramesh/apache-ant-1.9.7/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/export/home/gtee/ramesh/apache-ant-1.9.7/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
      parsing buildfile jar:file:/export/home/gtee/ramesh/jdk9developerbuild/lib/ant-javafx.jar!/com/sun/javafx/tools/ant/antlib.xml with URI = jar:file:/export/home/gtee/ramesh/jdk9developerbuild/lib/ant-javafx.jar!/com/sun/javafx/tools/ant/antlib.xml from a zip file
       [macrodef] creating macro javafx:com.sun.javafx.tools.ant:init-ant
      Build sequence for target(s) `fx-deploy' is [fx-deploy]
      Complete build sequence is [fx-deploy, ]

      fx-deploy:
      Building DMG package for SwingHello
      "Adding modules: [] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: Module not found

      BUILD FAILED
      /export/home/gtee/ramesh/antfiles/normalJardmg.xml:5: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.
              at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:345)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base/Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base/NativeMethodAccessorImpl.java:62)
              at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base/DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(java.base/Method.java:535)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.Target.execute(Target.java:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
              at org.apache.tools.ant.Main.runBuild(Main.java:854)
              at org.apache.tools.ant.Main.startAnt(Main.java:236)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
      Caused by: com.sun.javafx.tools.packager.PackagerException: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:348)
              at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:339)
              ... 17 more

      Total time: 3 seconds


      SCENARIO 3.
      ant -verbose -f normalJarimage.xml
      Apache Ant(TM) version 1.9.7 compiled on April 9 2016
      Buildfile: /export/home/gtee/ramesh/antfiles/normalJarimage.xml
      Detected Java version: 1.9 in: /export/home/gtee/ramesh/jdk9developerbuild
      Detected OS: Mac OS X
      parsing buildfile /export/home/gtee/ramesh/antfiles/normalJarimage.xml with URI = file:/export/home/gtee/ramesh/antfiles/normalJarimage.xml
      Project base dir set to: /export/home/gtee/ramesh/antfiles
      parsing buildfile jar:file:/export/home/gtee/ramesh/apache-ant-1.9.7/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/export/home/gtee/ramesh/apache-ant-1.9.7/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
      parsing buildfile jar:file:/export/home/gtee/ramesh/jdk9developerbuild/lib/ant-javafx.jar!/com/sun/javafx/tools/ant/antlib.xml with URI = jar:file:/export/home/gtee/ramesh/jdk9developerbuild/lib/ant-javafx.jar!/com/sun/javafx/tools/ant/antlib.xml from a zip file
       [macrodef] creating macro javafx:com.sun.javafx.tools.ant:init-ant
      Build sequence for target(s) `fx-deploy' is [fx-deploy]
      Complete build sequence is [fx-deploy, ]

      fx-deploy:
      Creating app bundle: /export/home/gtee/ramesh/outdir123image/SwingHello.app
      "Adding modules: [] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: Module not found

      BUILD FAILED
      /export/home/gtee/ramesh/antfiles/normalJarimage.xml:5: Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
              at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:345)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base/Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base/NativeMethodAccessorImpl.java:62)
              at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base/DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(java.base/Method.java:535)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.Target.execute(Target.java:435)
              at org.apache.tools.ant.Target.performTasks(Target.java:456)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
              at org.apache.tools.ant.Main.runBuild(Main.java:854)
              at org.apache.tools.ant.Main.startAnt(Main.java:236)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
      Caused by: com.sun.javafx.tools.packager.PackagerException: Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:348)
              at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:339)
              ... 17 more

      Total time: 3 seconds

        Attachments

          Activity

            People

            • Assignee:
              cbensen Chris Bensen (Inactive)
              Reporter:
              rgangadhar Ramesh Gangadhar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: