Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-7950

Cannot build uber-jar on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.31.1.Final
    • 1.27.0.Final
    • Core Engine
    • None
    • 2022 Week 41-43 (from Oct 10)

      While trying to build Kogito project to uber-jar on Windows (10, 11, OpenJDK 11, OpenJDK 17, GraalVM) build fails on one of last steps. The same build works just fine on Linux.

      In case of bpmn projects there'a an error produced:

      [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.12.0.Final:build (default) on project process-usertasks-quarkus: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      [ERROR] 	[error]: Build step io.quarkus.deployment.pkg.steps.JarResultBuildStep#buildRunnerJar threw an exception: java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /META-INF/jsonSchema
      [ERROR] 	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:918)
      [ERROR] 	at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
      [ERROR] 	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
      [ERROR] 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
      [ERROR] 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
      [ERROR] 	at java.base/java.lang.Thread.run(Thread.java:833)
      [ERROR] 	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
      [ERROR] Caused by: java.nio.file.NoSuchFileException: /META-INF/jsonSchema
      [ERROR] 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.checkParents(ZipFileSystem.java:1162)
      [ERROR] 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:843)
      [ERROR] 	at jdk.zipfs/jdk.nio.zipfs.ZipPath.newOutputStream(ZipPath.java:905)
      [ERROR] 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:268)
      [ERROR] 	at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
      [ERROR] 	at io.quarkus.deployment.pkg.steps.JarResultBuildStep.copyCommonContent(JarResultBuildStep.java:1158)
      [ERROR] 	at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildUberJar0(JarResultBuildStep.java:386)
      [ERROR] 	at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildUberJar(JarResultBuildStep.java:270)
      [ERROR] 	at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildRunnerJar(JarResultBuildStep.java:208)
      [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      [ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      [ERROR] 	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
      [ERROR] 	... 6 more
      [ERROR] -> [Help 1]
      

      For drools projects:

      [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.12.0.Final:build (default) on project ruleunit-quarkus-example: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      [ERROR] 	[error]: Build step io.quarkus.deployment.pkg.steps.JarResultBuildStep#buildRunnerJar threw an exception: java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /META-INF/resources/monitoring/dashboards
      [ERROR] 	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:918)
      [ERROR] 	at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
      [ERROR] 	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
      [ERROR] 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
      [ERROR] 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
      [ERROR] 	at java.base/java.lang.Thread.run(Thread.java:833)
      [ERROR] 	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
      [ERROR] Caused by: java.nio.file.NoSuchFileException: /META-INF/resources/monitoring/dashboards
      [ERROR] 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.checkParents(ZipFileSystem.java:1162)
      [ERROR] 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:843)
      [ERROR] 	at jdk.zipfs/jdk.nio.zipfs.ZipPath.newOutputStream(ZipPath.java:905)
      [ERROR] 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:268)
      [ERROR] 	at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
      [ERROR] 	at io.quarkus.deployment.pkg.steps.JarResultBuildStep.copyCommonContent(JarResultBuildStep.java:1158)
      [ERROR] 	at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildUberJar0(JarResultBuildStep.java:386)
      [ERROR] 	at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildUberJar(JarResultBuildStep.java:270)
      [ERROR] 	at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildRunnerJar(JarResultBuildStep.java:208)
      [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      [ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      [ERROR] 	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
      [ERROR] 	... 6 more
      [ERROR] -> [Help 1]
      

              ftirados Francisco Javier Tirado Sarti
              jakubgrabowski Jakub Grabowski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: