spring-boot:build-image gets stuck - spring

I want to test the new native-build feature of the spring boot 3.0 release. I am following this tutorial [here][1].
I installed jdk java 22.3.r17-nik via sdkman.
I ran $ mvn -Pnative spring-boot:build-image. The process starts but then always get stuck.
This is the log:
[INFO]
[INFO] -----------------------< com.example:myproject >------------------------
[INFO] Building myproject 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:3.0.0:build-image (default-cli) > package # myproject >>>
[INFO]
[INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) # myproject ---
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) # myproject ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.3.0:testResources (default-testResources) # myproject ---
[INFO] skip non existing resourceDirectory /Users/klaaspelzer/Projects/boot3/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) # myproject ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) # myproject ---
[INFO]
[INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) # myproject ---
[INFO] Building jar: /Users/klaaspelzer/Projects/boot3/target/myproject-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] <<< spring-boot-maven-plugin:3.0.0:build-image (default-cli) < package # myproject <<<
[INFO]
[INFO]
[INFO] --- spring-boot-maven-plugin:3.0.0:build-image (default-cli) # myproject ---
[INFO] Building image 'docker.io/library/myproject:0.0.1-SNAPSHOT'
[INFO]
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 100%
[INFO] > Pulled builder image 'paketobuildpacks/builder#sha256:850b2b3dd3eab7bacfe33839712c67c3cb50431aff4ff36c435b3d97ea927268'
[INFO] > Pulling run image 'docker.io/paketobuildpacks/run:tiny-cnb' 100%
[INFO] > Pulled run image 'paketobuildpacks/run#sha256:c6b81e85b32036dab113dc33454eaa29c006c252bb48a87bf623a635c1763ce6'
[INFO] > Executing lifecycle version v0.15.1
[INFO] > Using build cache volume 'pack-cache-eed8708d57f5.build'
[INFO]
[INFO] > Running creator
[INFO] [creator] ===> ANALYZING
[INFO] [creator] Previous image with name "docker.io/library/myproject:0.0.1-SNAPSHOT" not found
[INFO] [creator] ===> DETECTING
[INFO] [creator] 6 of 14 buildpacks participating
[INFO] [creator] paketo-buildpacks/ca-certificates 3.5.0
[INFO] [creator] paketo-buildpacks/bellsoft-liberica 9.10.0
[INFO] [creator] paketo-buildpacks/syft 1.22.1
[INFO] [creator] paketo-buildpacks/executable-jar 6.5.0
[INFO] [creator] paketo-buildpacks/spring-boot 5.20.0
[INFO] [creator] paketo-buildpacks/native-image 5.6.0
[INFO] [creator] ===> RESTORING
[INFO] [creator] ===> BUILDING
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for CA Certificates 3.5.0
[INFO] [creator] https://github.com/paketo-buildpacks/ca-certificates
[INFO] [creator] Launch Helper: Contributing to layer
[INFO] [creator] Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for BellSoft Liberica 9.10.0
[INFO] [creator] https://github.com/paketo-buildpacks/bellsoft-liberica
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_JVM_JLINK_ARGS --no-man-pages --no-header-files --strip-debug --compress=1 configure custom link arguments (--output must be omitted)
[INFO] [creator] $BP_JVM_JLINK_ENABLED false enables running jlink tool to generate custom JRE
[INFO] [creator] $BP_JVM_TYPE JRE the JVM type - JDK or JRE
[INFO] [creator] $BP_JVM_VERSION 11 the Java version
[INFO] [creator] Launch Configuration:
[INFO] [creator] $BPL_DEBUG_ENABLED false enables Java remote debugging support
[INFO] [creator] $BPL_DEBUG_PORT 8000 configure the remote debugging port
[INFO] [creator] $BPL_DEBUG_SUSPEND false configure whether to suspend execution until a debugger has attached
[INFO] [creator] $BPL_HEAP_DUMP_PATH write heap dumps on error to this path
[INFO] [creator] $BPL_JAVA_NMT_ENABLED true enables Java Native Memory Tracking (NMT)
[INFO] [creator] $BPL_JAVA_NMT_LEVEL summary configure level of NMT, summary or detail
[INFO] [creator] $BPL_JFR_ARGS configure custom Java Flight Recording (JFR) arguments
[INFO] [creator] $BPL_JFR_ENABLED false enables Java Flight Recording (JFR)
[INFO] [creator] $BPL_JMX_ENABLED false enables Java Management Extensions (JMX)
[INFO] [creator] $BPL_JMX_PORT 5000 configure the JMX port
[INFO] [creator] $BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation
[INFO] [creator] $BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation
[INFO] [creator] $BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation
[INFO] [creator] $JAVA_TOOL_OPTIONS the JVM launch flags
[INFO] [creator] Using Java version 17 extracted from MANIFEST.MF
[INFO] [creator] BellSoft Liberica NIK 17.0.5: Contributing to layer
[INFO] [creator] Downloading from https://download.bell-sw.com/vm/22.3.0/bellsoft-liberica-vm-core-openjdk17.0.5+8-22.3.0+2-linux-amd64.tar.gz
[INFO] [creator] Verifying checksum
[INFO] [creator] Expanding to /layers/paketo-buildpacks_bellsoft-liberica/native-image-svm
[INFO] [creator] Adding 127 container CA certificates to JVM truststore
[INFO] [creator] Writing env.build/JAVA_HOME.override
[INFO] [creator] Writing env.build/JDK_HOME.override
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Syft 1.22.1
[INFO] [creator] https://github.com/paketo-buildpacks/syft
[INFO] [creator] Downloading from https://github.com/anchore/syft/releases/download/v0.60.3/syft_0.60.3_linux_amd64.tar.gz
[INFO] [creator] Verifying checksum
[INFO] [creator] Writing env.build/SYFT_CHECK_FOR_APP_UPDATE.default
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Executable JAR 6.5.0
[INFO] [creator] https://github.com/paketo-buildpacks/executable-jar
[INFO] [creator] Class Path: Contributing to layer
[INFO] [creator] Writing env.build/CLASSPATH.delim
[INFO] [creator] Writing env.build/CLASSPATH.prepend
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Spring Boot 5.20.0
[INFO] [creator] https://github.com/paketo-buildpacks/spring-boot
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_SPRING_CLOUD_BINDINGS_DISABLED false whether to contribute Spring Boot cloud bindings support
[INFO] [creator] Launch Configuration:
[INFO] [creator] $BPL_SPRING_CLOUD_BINDINGS_DISABLED false whether to auto-configure Spring Boot environment properties from bindings
[INFO] [creator] $BPL_SPRING_CLOUD_BINDINGS_ENABLED true Deprecated - whether to auto-configure Spring Boot environment properties from bindings
[INFO] [creator] Class Path: Contributing to layer
[INFO] [creator] Writing env.build/CLASSPATH.append
[INFO] [creator] Writing env.build/CLASSPATH.delim
[INFO] [creator] Image labels:
[INFO] [creator] org.opencontainers.image.title
[INFO] [creator] org.opencontainers.image.version
[INFO] [creator] org.springframework.boot.version
[INFO] [creator] Warning: BOM table is deprecated in this buildpack api version, though it remains supported for backwards compatibility. Buildpack authors should write BOM information to <layer>.sbom.<ext>, launch.sbom.<ext>, or build.sbom.<ext>.
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Native Image 5.6.0
[INFO] [creator] https://github.com/paketo-buildpacks/native-image
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_BINARY_COMPRESSION_METHOD Compression mechanism used to reduce binary size. Options: `none` (default), `upx` or `gzexe`
[INFO] [creator] $BP_NATIVE_IMAGE true enable native image build
[INFO] [creator] $BP_NATIVE_IMAGE_BUILD_ARGUMENTS arguments to pass to the native-image command
[INFO] [creator] $BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE a file with arguments to pass to the native-image command
[INFO] [creator] $BP_NATIVE_IMAGE_BUILT_ARTIFACT the built application artifact explicitly, required if building from a JAR
[INFO] [creator] Native Image: Contributing to layer
[INFO] [creator] Executing native-image -H:+StaticExecutableWithDynamicLibC -H:Name=/layers/paketo-buildpacks_native-image/native-image/com.example.boot3.MyApplication -cp /workspace:/workspace/BOOT-INF/classes:/workspace/BOOT-INF/lib/spring-boot-3.0.0.jar:/workspace/BOOT-INF/lib/spring-boot-autoconfigure-3.0.0.jar:/workspace/BOOT-INF/lib/logback-classic-1.4.5.jar:/workspace/BOOT-INF/lib/logback-core-1.4.5.jar:/workspace/BOOT-INF/lib/slf4j-api-2.0.4.jar:/workspace/BOOT-INF/lib/log4j-to-slf4j-2.19.0.jar:/workspace/BOOT-INF/lib/log4j-api-2.19.0.jar:/workspace/BOOT-INF/lib/jul-to-slf4j-2.0.4.jar:/workspace/BOOT-INF/lib/jakarta.annotation-api-2.1.1.jar:/workspace/BOOT-INF/lib/spring-core-6.0.2.jar:/workspace/BOOT-INF/lib/spring-jcl-6.0.2.jar:/workspace/BOOT-INF/lib/snakeyaml-1.33.jar:/workspace/BOOT-INF/lib/jackson-databind-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-annotations-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-core-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-datatype-jdk8-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-datatype-jsr310-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-module-parameter-names-2.14.1.jar:/workspace/BOOT-INF/lib/tomcat-embed-core-10.1.1.jar:/workspace/BOOT-INF/lib/tomcat-embed-el-10.1.1.jar:/workspace/BOOT-INF/lib/tomcat-embed-websocket-10.1.1.jar:/workspace/BOOT-INF/lib/spring-web-6.0.2.jar:/workspace/BOOT-INF/lib/spring-beans-6.0.2.jar:/workspace/BOOT-INF/lib/micrometer-observation-1.10.2.jar:/workspace/BOOT-INF/lib/micrometer-commons-1.10.2.jar:/workspace/BOOT-INF/lib/spring-webmvc-6.0.2.jar:/workspace/BOOT-INF/lib/spring-aop-6.0.2.jar:/workspace/BOOT-INF/lib/spring-context-6.0.2.jar:/workspace/BOOT-INF/lib/spring-expression-6.0.2.jar:/workspace/BOOT-INF/lib/spring-boot-jarmode-layertools-3.0.0.jar com.example.boot3.MyApplication
[INFO] [creator] ================================================================================
[INFO] [creator] GraalVM Native Image: Generating '/layers/paketo-buildpacks_native-image/native-image/com.example.boot3.MyApplication' (static executable)...
[INFO] [creator] ================================================================================
[INFO] [creator] [1/7] Initializing... (39.3s # 0.16GB)
[INFO] [creator] Version info: 'GraalVM 22.3.0 Java 17 CE'
[INFO] [creator] Java version info: '17.0.5+8-LTS'
[INFO] [creator] C compiler: gcc (linux, x86_64, 7.5.0)
[INFO] [creator] Garbage collector: Serial GC
[INFO] [creator] 1 user-specific feature(s)
[INFO] [creator] - org.springframework.aot.nativex.feature.PreComputeFieldFeature
[INFO] [creator] The bundle named: org.apache.el.Messages, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.
[INFO] [creator]
[INFO] [creator] === Image generator watchdog detected no activity. This can be a sign of a deadlock during image building. Dumping all stack traces. Current time: Thu Nov 24 21:38:08 UTC 2022
I ran it multiple times and updated docker. I am using a macbook pro with m1 chip.
Docker is allowed to use 10 GB and 5 cores but is barely using 300mb RAM.
my pom:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>myproject</artifactId>
<version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.0</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
</project>
my main:
package com.example.boot3;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
#RestController
#SpringBootApplication
public class MyApplication {
#RequestMapping("/")
String home() {
return "Hello World!";
}
public static void main(String[] args) {
SpringApplication.run(MyApplication.class, args);
}
}
EDIT:
I reinstalled docker, now the process went further but stuck again.
New logs:
[INFO] [creator] [1/7] Initializing... (39.7s # 0.16GB)
[INFO] [creator] Version info: 'GraalVM 22.3.0 Java 17 CE'
[INFO] [creator] Java version info: '17.0.5+8-LTS'
[INFO] [creator] C compiler: gcc (linux, x86_64, 7.5.0)
[INFO] [creator] Garbage collector: Serial GC
[INFO] [creator] 1 user-specific feature(s)
[INFO] [creator] - org.springframework.aot.nativex.feature.PreComputeFieldFeature
[INFO] [creator] The bundle named: org.apache.el.Messages, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.
[INFO] [creator] Field org.springframework.core.NativeDetector#imageCode set to true at build time
[INFO] [creator] Field org.apache.commons.logging.LogAdapter#log4jSpiPresent set to true at build time
[INFO] [creator] Field org.apache.commons.logging.LogAdapter#log4jSlf4jProviderPresent set to true at build time
[INFO] [creator] Field org.apache.commons.logging.LogAdapter#slf4jSpiPresent set to true at build time
[INFO] [creator] Field org.apache.commons.logging.LogAdapter#slf4jApiPresent set to true at build time
[INFO] [creator] Field org.springframework.format.support.DefaultFormattingConversionService#jsr354Present set to false at build time
[INFO] [creator] Field org.springframework.core.KotlinDetector#kotlinPresent set to false at build time
[INFO] [creator] Field org.springframework.core.KotlinDetector#kotlinReflectPresent set to false at build time
[INFO] [creator] Field org.springframework.cglib.core.AbstractClassGenerator#imageCode set to true at build time
[INFO] [creator] [2/7] Performing analysis... [**********] (337.7s # 1.82GB)
[INFO] [creator] 10,223 (89.53%) of 11,418 classes reachable
[INFO] [creator] 16,614 (63.36%) of 26,220 fields reachable
[INFO] [creator] 48,428 (58.34%) of 83,017 methods reachable
[INFO] [creator] 466 classes, 138 fields, and 2,281 methods registered for reflection
[INFO] [creator] 63 classes, 68 fields, and 55 methods registered for JNI access
[INFO] [creator] 4 native libraries: dl, pthread, rt, z
[INFO] [creator] [3/7] Building universe... (26.5s # 2.12GB)
[INFO] [creator]
[INFO] [creator] Warning: Dynamic proxy method java.lang.reflect.Proxy.newProxyInstance invoked at org.springframework.core.annotation.SynthesizedMergedAnnotationInvocationHandler.createProxy(SynthesizedMergedAnnotationInvocationHandler.java:304)
[INFO] [creator] Warning: Dynamic proxy method java.lang.reflect.Proxy.newProxyInstance invoked at org.springframework.core.io.support.VfsPatternUtils.visit(VfsPatternUtils.java:51)
[INFO] [creator] Warning: Dynamic proxy method java.lang.reflect.Proxy.newProxyInstance invoked at org.springframework.beans.factory.support.AutowireUtils.resolveAutowiringValue(AutowireUtils.java:134)
[INFO] [creator] Warning: Aborting stand-alone image build due to dynamic proxy use without configuration.
[INFO] [creator] Warning: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
[INFO] [creator] --------------------------------------------------------------------------------
[INFO] [creator] 12.8s (3.1% of total time) in 29 GCs | Peak RSS: 3.50GB | CPU load: 3.38
[INFO] [creator] ================================================================================
[INFO] [creator] Failed generating '/layers/paketo-buildpacks_native-image/native-image/com.example.boot3.MyApplication' after 6m 46s.
[INFO] [creator] Generating fallback image...
It says it failed to generating the image. Weird?
[1]: https://docs.spring.io/spring-boot/docs/3.0.0-SNAPSHOT/reference/html/native-image.html#native-image

Related

Build of native image with Spring Boot get stuck on Apple Silicon

The build with -Pnative starts and progresses successfully, but fails to complete on my Apple Silicon Mac. Any ideas what might be missing?
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.0.2)
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) # bef-projekt-aggregat ---
[INFO] Building jar: /Users/work/IdeaProjects/wrwks/bef/bef-projekt-aggregat/target/bef-projekt-aggregat-0.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot:3.0.2:repackage (repackage) # bef-projekt-aggregat ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] <<< spring-boot:3.0.2:build-image (default-cli) < package # bef-projekt-aggregat <<<
[INFO]
[INFO]
[INFO] --- spring-boot:3.0.2:build-image (default-cli) # bef-projekt-aggregat ---
[INFO] Building image 'docker.io/library/bef-projekt-aggregat:0.0.0-SNAPSHOT'
[INFO]
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 100%
[INFO] > Pulled builder image 'paketobuildpacks/builder#sha256:7f1dc12643a7d5c43d1eaa88b443099c7639e5e54a7711593fe8fa7a5929bd2f'
[INFO] > Pulling run image 'docker.io/paketobuildpacks/run:tiny-cnb' 100%
[INFO] > Pulled run image 'paketobuildpacks/run#sha256:11d6196c9185cbb5eff12410ebc14ad5a19edc6553329b5d3d2ae7a95ed723f9'
[INFO] > Pulling buildpack image 'gcr.io/paketo-buildpacks/graalvm:latest' 100%
[INFO] > Pulled buildpack image 'gcr.io/paketo-buildpacks/graalvm#sha256:a4713efaccb92123f7b58ef0426d6102276964583a4035c0fc62ba1ae5817d6e'
[INFO] > Pulling buildpack image 'gcr.io/paketo-buildpacks/java-native-image:latest' 100%
[INFO] > Pulled buildpack image 'gcr.io/paketo-buildpacks/java-native-image#sha256:2bfd09f5349a9cfe574d16e8f55b11d33a02f6bde5237ab13c755a8d7051d356'
[INFO] > Executing lifecycle version v0.16.0
[INFO] > Using build cache volume 'pack-cache-04b0171c77cc.build'
[INFO]
[INFO] > Running creator
[INFO] [creator] ===> ANALYZING
[INFO] [creator] Previous image with name "docker.io/library/bef-projekt-aggregat:0.0.0-SNAPSHOT" not found
[INFO] [creator] ===> DETECTING
[INFO] [creator] 8 of 15 buildpacks participating
[INFO] [creator] paketo-buildpacks/graalvm 7.10.0
[INFO] [creator] paketo-buildpacks/ca-certificates 3.5.1
[INFO] [creator] paketo-buildpacks/bellsoft-liberica 9.10.3
[INFO] [creator] paketo-buildpacks/syft 1.24.2
[INFO] [creator] paketo-buildpacks/executable-jar 6.6.0
[INFO] [creator] paketo-buildpacks/spring-boot 5.22.1
[INFO] [creator] paketo-buildpacks/native-image 5.8.0
[INFO] [creator] paketo-buildpacks/environment-variables 4.4.0
[INFO] [creator] ===> RESTORING
[INFO] [creator] ===> BUILDING
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for GraalVM 7.10.0
[INFO] [creator] https://github.com/paketo-buildpacks/graalvm
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_JVM_JLINK_ARGS --no-man-pages --no-header-files --strip-debug --compress=1 configure custom link arguments (--output must be omitted)
[INFO] [creator] $BP_JVM_JLINK_ENABLED false enables running jlink tool to generate custom JRE
[INFO] [creator] $BP_JVM_VERSION 19.* the Java version
[INFO] [creator] Launch Configuration:
[INFO] [creator] $BPL_DEBUG_ENABLED false enables Java remote debugging support
[INFO] [creator] $BPL_DEBUG_PORT 8000 configure the remote debugging port
[INFO] [creator] $BPL_DEBUG_SUSPEND false configure whether to suspend execution until a debugger has attached
[INFO] [creator] $BPL_HEAP_DUMP_PATH write heap dumps on error to this path
[INFO] [creator] $BPL_JAVA_NMT_ENABLED true enables Java Native Memory Tracking (NMT)
[INFO] [creator] $BPL_JAVA_NMT_LEVEL summary configure level of NMT, summary or detail
[INFO] [creator] $BPL_JFR_ARGS configure custom Java Flight Recording (JFR) arguments
[INFO] [creator] $BPL_JFR_ENABLED false enables Java Flight Recording (JFR)
[INFO] [creator] $BPL_JMX_ENABLED false enables Java Management Extensions (JMX)
[INFO] [creator] $BPL_JMX_PORT 5000 configure the JMX port
[INFO] [creator] $BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation
[INFO] [creator] $BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation
[INFO] [creator] $BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation
[INFO] [creator] $JAVA_TOOL_OPTIONS the JVM launch flags
[INFO] [creator] Using Java version 19.* from BP_JVM_VERSION
[INFO] [creator] GraalVM JDK 19.0.2: Contributing to layer
[INFO] [creator] Downloading from https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/graalvm-ce-java19-linux-amd64-22.3.1.tar.gz
[INFO] [creator] Verifying checksum
[INFO] [creator] Expanding to /layers/paketo-buildpacks_graalvm/nik
[INFO] [creator] Warning: The JVM cacerts entries cannot be loaded with Java 18+, for more information see: https://github.com/paketo-buildpacks/libjvm/issues/158
[INFO] [creator] GraalVM Native Image Substrate VM 19.0.2
[INFO] [creator] Downloading from https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.1/native-image-installable-svm-java19-linux-amd64-22.3.1.jar
[INFO] [creator] Verifying checksum
[INFO] [creator] Installing substrate VM
[INFO] [creator] Processing Component archive: /tmp/61411f4edce57666c2ecd535aa71f970dec8ab4becf7f23b322845009e02ddab/native-image-installable-svm-java19-linux-amd64-22.3.1.jar
[INFO] [creator] Installing new component: Native Image (org.graalvm.native-image, version 22.3.1)
[INFO] [creator] Writing env.build/JAVA_HOME.override
[INFO] [creator] Writing env.build/JDK_HOME.override
[INFO] [creator] Warning: BOM table is deprecated in this buildpack api version, though it remains supported for backwards compatibility. Buildpack authors should write BOM information to <layer>.sbom.<ext>, launch.sbom.<ext>, or build.sbom.<ext>.
[INFO] [creator] Warning: BOM table is deprecated in this buildpack api version, though it remains supported for backwards compatibility. Buildpack authors should write BOM information to <layer>.sbom.<ext>, launch.sbom.<ext>, or build.sbom.<ext>.
[INFO] [creator] Warning: BOM table is deprecated in this buildpack api version, though it remains supported for backwards compatibility. Buildpack authors should write BOM information to <layer>.sbom.<ext>, launch.sbom.<ext>, or build.sbom.<ext>.
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for CA Certificates 3.5.1
[INFO] [creator] https://github.com/paketo-buildpacks/ca-certificates
[INFO] [creator] Launch Helper: Contributing to layer
[INFO] [creator] Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Syft 1.24.2
[INFO] [creator] https://github.com/paketo-buildpacks/syft
[INFO] [creator] Downloading from https://github.com/anchore/syft/releases/download/v0.69.1/syft_0.69.1_linux_amd64.tar.gz
[INFO] [creator] Verifying checksum
[INFO] [creator] Writing env.build/SYFT_CHECK_FOR_APP_UPDATE.default
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Executable JAR 6.6.0
[INFO] [creator] https://github.com/paketo-buildpacks/executable-jar
[INFO] [creator] Class Path: Contributing to layer
[INFO] [creator] Writing env.build/CLASSPATH.delim
[INFO] [creator] Writing env.build/CLASSPATH.prepend
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Spring Boot 5.22.1
[INFO] [creator] https://github.com/paketo-buildpacks/spring-boot
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_SPRING_CLOUD_BINDINGS_DISABLED false whether to contribute Spring Boot cloud bindings support
[INFO] [creator] Launch Configuration:
[INFO] [creator] $BPL_SPRING_CLOUD_BINDINGS_DISABLED false whether to auto-configure Spring Boot environment properties from bindings
[INFO] [creator] $BPL_SPRING_CLOUD_BINDINGS_ENABLED true Deprecated - whether to auto-configure Spring Boot environment properties from bindings
[INFO] [creator] Class Path: Contributing to layer
[INFO] [creator] native args file /workspace/META-INF/native-image/argfile
[INFO] [creator] Writing env.build/BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE.default
[INFO] [creator] Writing env.build/CLASSPATH.append
[INFO] [creator] Writing env.build/CLASSPATH.delim
[INFO] [creator] Image labels:
[INFO] [creator] org.opencontainers.image.title
[INFO] [creator] org.opencontainers.image.version
[INFO] [creator] org.springframework.boot.version
[INFO] [creator] Warning: BOM table is deprecated in this buildpack api version, though it remains supported for backwards compatibility. Buildpack authors should write BOM information to <layer>.sbom.<ext>, launch.sbom.<ext>, or build.sbom.<ext>.
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Native Image 5.8.0
[INFO] [creator] https://github.com/paketo-buildpacks/native-image
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_BINARY_COMPRESSION_METHOD Compression mechanism used to reduce binary size. Options: `none` (default), `upx` or `gzexe`
[INFO] [creator] $BP_NATIVE_IMAGE true enable native image build
[INFO] [creator] $BP_NATIVE_IMAGE_BUILD_ARGUMENTS arguments to pass to the native-image command
[INFO] [creator] $BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE /workspace/META-INF/native-image/argfile a file with arguments to pass to the native-image command
[INFO] [creator] $BP_NATIVE_IMAGE_BUILT_ARTIFACT the built application artifact explicitly, required if building from a JAR
[INFO] [creator] Native Image: Contributing to layer
[INFO] [creator] Executing native-image -H:+StaticExecutableWithDynamicLibC #/workspace/META-INF/native-image/argfile -H:Name=/layers/paketo-buildpacks_native-image/native-image/at.wrwks.bef.projektaggregat.ApplicationKt -cp /workspace:/workspace/BOOT-INF/classes:/workspace/BOOT-INF/lib/kotlin-stdlib-1.8.0.jar:/workspace/BOOT-INF/lib/kotlin-stdlib-common-1.8.0.jar:/workspace/BOOT-INF/lib/annotations-13.0.jar:/workspace/BOOT-INF/lib/kotlin-reflect-1.8.0.jar:/workspace/BOOT-INF/lib/kotlinx-coroutines-core-1.6.4.jar:/workspace/BOOT-INF/lib/kotlinx-coroutines-core-jvm-1.6.4.jar:/workspace/BOOT-INF/lib/kotlinx-coroutines-reactor-1.6.4.jar:/workspace/BOOT-INF/lib/reactor-core-3.5.2.jar:/workspace/BOOT-INF/lib/reactive-streams-1.0.4.jar:/workspace/BOOT-INF/lib/kotlinx-coroutines-reactive-1.6.4.jar:/workspace/BOOT-INF/lib/kotlin-stdlib-jdk8-1.8.0.jar:/workspace/BOOT-INF/lib/kotlin-stdlib-jdk7-1.8.0.jar:/workspace/BOOT-INF/lib/jackson-module-kotlin-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-databind-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-annotations-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-datatype-jsr310-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-core-2.14.1.jar:/workspace/BOOT-INF/lib/reactor-kotlin-extensions-1.1.7.jar:/workspace/BOOT-INF/lib/spring-boot-3.0.2.jar:/workspace/BOOT-INF/lib/spring-boot-autoconfigure-3.0.2.jar:/workspace/BOOT-INF/lib/log4j-to-slf4j-2.19.0.jar:/workspace/BOOT-INF/lib/log4j-api-2.19.0.jar:/workspace/BOOT-INF/lib/jul-to-slf4j-2.0.6.jar:/workspace/BOOT-INF/lib/jakarta.annotation-api-2.1.1.jar:/workspace/BOOT-INF/lib/spring-core-6.0.4.jar:/workspace/BOOT-INF/lib/spring-jcl-6.0.4.jar:/workspace/BOOT-INF/lib/snakeyaml-1.33.jar:/workspace/BOOT-INF/lib/spring-boot-actuator-autoconfigure-3.0.2.jar:/workspace/BOOT-INF/lib/spring-boot-actuator-3.0.2.jar:/workspace/BOOT-INF/lib/micrometer-observation-1.10.3.jar:/workspace/BOOT-INF/lib/micrometer-commons-1.10.3.jar:/workspace/BOOT-INF/lib/micrometer-core-1.10.3.jar:/workspace/BOOT-INF/lib/HdrHistogram-2.1.12.jar:/workspace/BOOT-INF/lib/LatencyUtils-2.0.3.jar:/workspace/BOOT-INF/lib/jackson-datatype-jdk8-2.14.1.jar:/workspace/BOOT-INF/lib/jackson-module-parameter-names-2.14.1.jar:/workspace/BOOT-INF/lib/reactor-netty-http-1.1.2.jar:/workspace/BOOT-INF/lib/netty-codec-http-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-codec-http2-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-resolver-dns-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-codec-dns-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-resolver-dns-native-macos-4.1.87.Final-osx-x86_64.jar:/workspace/BOOT-INF/lib/netty-resolver-dns-classes-macos-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-transport-native-epoll-4.1.87.Final-linux-x86_64.jar:/workspace/BOOT-INF/lib/reactor-netty-core-1.1.2.jar:/workspace/BOOT-INF/lib/spring-web-6.0.4.jar:/workspace/BOOT-INF/lib/spring-beans-6.0.4.jar:/workspace/BOOT-INF/lib/spring-webflux-6.0.4.jar:/workspace/BOOT-INF/lib/spring-cloud-stream-4.0.1.jar:/workspace/BOOT-INF/lib/tomcat-embed-el-10.1.5.jar:/workspace/BOOT-INF/lib/hibernate-validator-8.0.0.Final.jar:/workspace/BOOT-INF/lib/jakarta.validation-api-3.0.2.jar:/workspace/BOOT-INF/lib/jboss-logging-3.5.0.Final.jar:/workspace/BOOT-INF/lib/classmate-1.5.1.jar:/workspace/BOOT-INF/lib/spring-messaging-6.0.4.jar:/workspace/BOOT-INF/lib/spring-integration-core-6.0.2.jar:/workspace/BOOT-INF/lib/spring-tx-6.0.4.jar:/workspace/BOOT-INF/lib/spring-integration-jmx-6.0.2.jar:/workspace/BOOT-INF/lib/spring-retry-2.0.0.jar:/workspace/BOOT-INF/lib/spring-cloud-function-context-4.0.1.jar:/workspace/BOOT-INF/lib/typetools-0.6.2.jar:/workspace/BOOT-INF/lib/spring-cloud-function-core-4.0.1.jar:/workspace/BOOT-INF/lib/javax.annotation-api-1.3.2.jar:/workspace/BOOT-INF/lib/javax.activation-api-1.2.0.jar:/workspace/BOOT-INF/lib/spring-cloud-stream-binder-kafka-4.0.1.jar:/workspace/BOOT-INF/lib/spring-cloud-stream-binder-kafka-core-4.0.1.jar:/workspace/BOOT-INF/lib/spring-integration-kafka-6.0.2.jar:/workspace/BOOT-INF/lib/spring-kafka-3.0.2.jar:/workspace/BOOT-INF/lib/spring-cloud-stream-binder-kafka-streams-4.0.1.jar:/workspace/BOOT-INF/lib/kafka-streams-3.3.2.jar:/workspace/BOOT-INF/lib/rocksdbjni-7.1.2.jar:/workspace/BOOT-INF/lib/micrometer-registry-prometheus-1.10.3.jar:/workspace/BOOT-INF/lib/simpleclient_common-0.16.0.jar:/workspace/BOOT-INF/lib/simpleclient-0.16.0.jar:/workspace/BOOT-INF/lib/simpleclient_tracer_otel-0.16.0.jar:/workspace/BOOT-INF/lib/simpleclient_tracer_common-0.16.0.jar:/workspace/BOOT-INF/lib/simpleclient_tracer_otel_agent-0.16.0.jar:/workspace/BOOT-INF/lib/spring-aop-6.0.4.jar:/workspace/BOOT-INF/lib/spring-security-config-6.0.1.jar:/workspace/BOOT-INF/lib/spring-security-web-6.0.1.jar:/workspace/BOOT-INF/lib/spring-expression-6.0.4.jar:/workspace/BOOT-INF/lib/spring-security-oauth2-jose-6.0.1.jar:/workspace/BOOT-INF/lib/spring-security-core-6.0.1.jar:/workspace/BOOT-INF/lib/spring-security-crypto-6.0.1.jar:/workspace/BOOT-INF/lib/spring-security-oauth2-core-6.0.1.jar:/workspace/BOOT-INF/lib/nimbus-jose-jwt-9.24.4.jar:/workspace/BOOT-INF/lib/jcip-annotations-1.0-1.jar:/workspace/BOOT-INF/lib/spring-security-oauth2-resource-server-6.0.1.jar:/workspace/BOOT-INF/lib/sentry-logback-6.11.0.jar:/workspace/BOOT-INF/lib/sentry-6.11.0.jar:/workspace/BOOT-INF/lib/logback-classic-1.4.5.jar:/workspace/BOOT-INF/lib/logback-core-1.4.5.jar:/workspace/BOOT-INF/lib/kotlinx-coroutines-test-1.6.4.jar:/workspace/BOOT-INF/lib/kotlinx-coroutines-test-jvm-1.6.4.jar:/workspace/BOOT-INF/lib/spring-context-6.0.4.jar:/workspace/BOOT-INF/lib/netty-handler-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-common-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-resolver-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-buffer-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-transport-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-transport-native-unix-common-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-codec-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-transport-classes-epoll-4.1.87.Final.jar:/workspace/BOOT-INF/lib/zstd-jni-1.5.2-1.jar:/workspace/BOOT-INF/lib/lz4-java-1.8.0.jar:/workspace/BOOT-INF/lib/snappy-java-1.1.8.4.jar:/workspace/BOOT-INF/lib/jsr305-3.0.2.jar:/workspace/BOOT-INF/lib/kafka-clients-3.3.2.jar:/workspace/BOOT-INF/lib/slf4j-api-2.0.6.jar:/workspace/BOOT-INF/lib/netty-handler-proxy-4.1.87.Final.jar:/workspace/BOOT-INF/lib/netty-codec-socks-4.1.87.Final.jar:/workspace/BOOT-INF/lib/spring-boot-jarmode-layertools-3.0.2.jar at.wrwks.bef.projektaggregat.ApplicationKt

Create Image with Spring-Native, having problem with Paketo Syft Buildpack 1.11.2

I am having issue building image with Spring-Native, using OpenJdk 11.
ProblemSatement:
When I am running $ mvn clean package spring-boot:build-image -DskipTests command, i am not able to proceed after at Paketo Syft Buildpack 1.11.2. Sharing the log below :
.> [INFO] > Running creator [INFO] [creator] Previous image with
name "docker.io/library/rest-service-complete:0.0.1-SNAPSHOT" not
found [INFO] [creator] ===> DETECTING [INFO] [creator]
6 of 14 buildpacks participating [INFO] [creator]
paketo-buildpacks/ca-certificates 3.2.3 [INFO] [creator]
paketo-buildpacks/bellsoft-liberica 9.3.5 [INFO] [creator]
paketo-buildpacks/syft 1.11.2 [INFO] [creator]
paketo-buildpacks/executable-jar 6.2.4 [INFO] [creator]
paketo-buildpacks/spring-boot 5.11.0 [INFO] [creator]
paketo-buildpacks/native-image 5.2.3 [INFO] [creator]
===> RESTORING [INFO] [creator] ===> BUILDING [INFO] [creator] [INFO] [creator] Paketo CA Certificates Buildpack
3.2.3 [INFO] [creator] https://github.com/paketo-buildpacks/ca-certificates [INFO]
[creator] Launch Helper: Contributing to layer [INFO]
[creator] Creating
/layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
[INFO] [creator] [INFO] [creator] Paketo BellSoft Liberica
Buildpack 9.3.5 [INFO] [creator]
https://github.com/paketo-buildpacks/bellsoft-liberica [INFO]
[creator] Build Configuration: [INFO] [creator]
$BP_JVM_TYPE JRE the JVM type - JDK or JRE
[INFO] [creator] $BP_JVM_VERSION 11.*
the Java version . . . . [INFO] [creator] Using Java
version 11.* from BP_JVM_VERSION [INFO] [creator] BellSoft
Liberica NIK 11.0.15: Contributing to layer [INFO] [creator]
Downloading from
https://download.bell-sw.com/vm/22.1.0/bellsoft-liberica-vm-core-openjdk11.0.15+10-22.1.0+1-linux-amd64.tar.gz
[INFO] [creator] Verifying checksum [INFO] [creator]
Expanding to
/layers/paketo-buildpacks_bellsoft-liberica/native-image-svm [INFO]
[creator] Adding 127 container CA certificates to JVM
truststore [INFO] [creator] Writing
env.build/JAVA_HOME.override [INFO] [creator] Writing
env.build/JDK_HOME.override [INFO] [creator] [INFO] [creator]
Paketo Syft Buildpack 1.11.2 [INFO] [creator]
https://github.com/paketo-buildpacks/syft [INFO] [creator]
Downloading from
https://github.com/anchore/syft/releases/download/v0.46.2/syft_0.46.2_linux_amd64.tar.gz
[INFO] [creator] unable to invoke layer creator [INFO]
[creator] unable to get dependency syft [INFO] [creator]
unable to download
https://github.com/anchore/syft/releases/download/v0.46.2/syft_0.46.2_linux_amd64.tar.gz
[INFO] [creator] unable to request
https://github.com/anchore/syft/releases/download/v0.46.2/syft_0.46.2_linux_amd64.tar.gz
[INFO] [creator] Get
"https://github.com/anchore/syft/releases/download/v0.46.2/syft_0.46.2_linux_amd64.tar.gz":
x509: certificate signed by unknown authority [INFO] [creator]
ERROR: failed to build: exit status 1 [INFO]
------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------ [INFO] Total time: 01:23 min [INFO] Finished at:
2022-07-01T15:45:36-05:00 [INFO]
------------------------------------------------------------------------ [ERROR] Failed to execute goal
org.springframework.boot:spring-boot-maven-plugin:2.7.0:build-image
(default-cli) on project rest-service-complete: Execution default-cli
of goal
org.springframework.boot:spring-boot-maven-plugin:2.7.0:build-image
failed: Builder lifecycle 'creator'

Heroku: Spring boot app successfully deploying; but receiving application error when loading site

I would like to deploy my Spring boot app on Heroku.
When i try the manual deploy, there is no error on my log. But when i try to load the site i have this error:
Application error
An error occurred in the application and your page could not be served. If you are the application
owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
Please find below my logs.
Someone have an idea ?
did i miss some thing?
Any help would be welcome!
-----> Java app detected
-----> Installing JDK 1.8... done
-----> Executing Maven
$ ./mvnw -DskipTests clean dependency:list install
/tmp/build_3329cfca5f2723d7e41de818bf56c89f
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< lu.amundi:ServeurAmundiFileIntegration >---------------
[INFO] Building ServeurAmundiFileIntegration 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # ServeurAmundiFileIntegration ---
[INFO]
[INFO] --- maven-dependency-plugin:3.0.2:list (default-cli) # ServeurAmundiFileIntegration ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # ServeurAmundiFileIntegration ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # ServeurAmundiFileIntegration ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 64 source files to /tmp/build_3329cfca5f2723d7e41de818bf56c89f/target/classes
[INFO] /tmp/build_3329cfca5f2723d7e41de818bf56c89f/src/main/java/lu/amundi/be/security/SecurityConfig.java: Some input files use or override a deprecated API.
[INFO] /tmp/build_3329cfca5f2723d7e41de818bf56c89f/src/main/java/lu/amundi/be/security/SecurityConfig.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # ServeurAmundiFileIntegration ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /tmp/build_3329cfca5f2723d7e41de818bf56c89f/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # ServeurAmundiFileIntegration ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /tmp/build_3329cfca5f2723d7e41de818bf56c89f/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) # ServeurAmundiFileIntegration ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) # ServeurAmundiFileIntegration ---
[INFO] Building jar: /tmp/build_3329cfca5f2723d7e41de818bf56c89f/target/ServeurAmundiFileIntegration-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.0.3.RELEASE:repackage (default) # ServeurAmundiFileIntegration ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) # ServeurAmundiFileIntegration ---
[INFO] Installing /tmp/build_3329cfca5f2723d7e41de818bf56c89f/target/ServeurAmundiFileIntegration-0.0.1-SNAPSHOT.jar to /app/tmp/cache/.m2/repository/lu/amundi/ServeurAmundiFileIntegration/0.0.1-SNAPSHOT/ServeurAmundiFileIntegration-0.0.1-SNAPSHOT.jar
[INFO] Installing /tmp/build_3329cfca5f2723d7e41de818bf56c89f/pom.xml to /app/tmp/cache/.m2/repository/lu/amundi/ServeurAmundiFileIntegration/0.0.1-SNAPSHOT/ServeurAmundiFileIntegration-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.676 s
[INFO] Finished at: 2020-04-07T14:07:09Z
[INFO] ------------------------------------------------------------------------
-----> Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 78.8M
-----> Launching...
Released v6
https://amundi-file-integration-server.herokuapp.com/ deployed to Heroku
You have to run heroku logs --tail -a (your app name) to get access to the logs, that should have some information on why it is failing.
Try web:node server.js Not space web: node server.js in ProcFile

maven build works on windows but fails on linux

I have some project which is maven based.
the same project builds well on the windows but fails on the linux
Windows --------------- :
C:\project\code\microservice\ConfigService>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.conf:ConfigService >----------------------
[INFO] Building ConfigService 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # ConfigService ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # ConfigService ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # ConfigService ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to C:\project\code\microservice\ConfigService\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) # ConfigService ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\project\code\microservice\ConfigService\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # ConfigService ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) # ConfigService ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) # ConfigService ---
[INFO] Building jar: C:\project\code\microservice\ConfigService\target\ConfigService-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.1.0.RELEASE:repackage (repackage) # ConfigService ---
[INFO] Replacing main artifact C:\project\code\microservice\ConfigService\target\ConfigService-0.0.1-SNAPSHO
T.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.811 s
[INFO] Finished at: 2019-03-04T15:42:57+05:30
[INFO] ------------------------------------------------------------------------
Linux------------
user#myhost:~/project/work/ConfigService$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.conf:ConfigService >----------------------
[INFO] Building ConfigService 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # ConfigService ---
[INFO] Deleting /home/user/project/work/ConfigService/target
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # ConfigService ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # ConfigService ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to /home/user/project/work/ConfigService/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.479 s
[INFO] Finished at: 2019-03-04T05:28:06-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ConfigService: Compilation failure -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
So what would be the major cause for this issue, looks everything fine from other option
On ubuntu I have Java version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T14:41:47-04:00)
Maven home: /home/user/tools/maven/apache-maven-3.6.0
Java version: 1.8.0_191, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-29-generic", arch: "amd64", family: "unix"
On windows
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T00:11:47+05:30)
Maven home: C:\project\softs\apache-maven-3.6.0\bin..
Java version: 1.8.0_201, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_201\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows
If the log you pasted is original then I could see that on linux path is not correct
/home/user/project/work/ConfigServicetarget/classes
After ConfigService it should use /
try to see in your files which config is missing or you need yo provide your source code.

Using gwt:run-codeserver

I have just started to use the gwt maven plugin in my project and everything seems to be working fine. However, debugging is quite hard as I am unable to make superdevmode work correctly and I cannot get the errors to display on my IDE (IntelliJ).
Here is the log when I do gwt:run
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded. SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> gwt-maven-plugin:2.5.0:run (default-cli) # xxxxxadmin >>>
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:i18n (default) # xxxxxadmin ---
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:generateAsync (default) # xxxxxadmin ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # xxxxxadmin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 883 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # xxxxxadmin ---
[INFO] Compiling 1 source file to /Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT/WEB-INF/ classes
[INFO]
[INFO] --- maven-war-plugin:2.1.1:exploded (default) # xxxxxadmin ---
[INFO] Exploding webapp
[INFO] Assembling webapp xxxxxadmin] in [/Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/Users/myuser/git xxxxxadmin/src/main/webapp]
[INFO] Webapp assembled in [867 msecs]
[INFO]
[INFO] <<< gwt-maven-plugin:2.5.0:run (default-cli) # xxxxxadmin <<<
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:run (default-cli) # xxxxxadmin ---
[INFO] create exploded Jetty webapp in /Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT
[INFO] auto discovered modules [com xxxxx.admin.gwt.portaladmin]
[ERROR] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler. JspRuntimeContext).
[ERROR] log4j:WARN Please initialize the log4j system properly.
[ERROR] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] ISC: Configuring log4j from: file:/Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT/ WEB-INF/classes/log4j.isc.config.xml
[INFO] === 2014-05-22 10:50:18,873 [main] INFO Logger - Logging system started.
Here is the log when I do gwt:run-codeserver
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded. SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> gwt-maven-plugin:2.5.0:run-codeserver (default-cli) # xxxxxxadmin >>>
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:i18n (default) # xxxxxxadmin ---
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:generateAsync (default) # xxxxxxadmin ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # xxxxxxadmin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 883 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # xxxxxxadmin ---
[INFO] Compiling 1 source file to /Users/myuser/git/xxxxxxadmin/target/xxxxxxadmin-1.0-SNAPSHOT/WEB- INF/classes
[INFO]
[INFO] --- maven-war-plugin:2.1.1:exploded (default) # xxxxxxadmin ---
[INFO] Exploding webapp
[INFO] Assembling webapp [xxxxxxadmin] in [/Users/myuser/git/xxxxxxadmin/target/xxxxxxadmin-1.0- SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/Users/myuser/git/xxxxxxadmin/src/main/webapp]
[INFO] Webapp assembled in [815 msecs]
[INFO]
[INFO] <<< gwt-maven-plugin:2.5.0:run-codeserver (default-cli) # xxxxxxadmin <<<
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:run-codeserver (default-cli) # xxxxxxadmin ---
[INFO] auto discovered modules [com.xxxxxx.admin.gwt.portaladmin]
[INFO] workDir: /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-7465083041692192607. tmp
[INFO] binding: user.agent=safari
[INFO] binding: compiler.useSourceMaps=true
[INFO] binding: locale=en
[INFO] Compiling module com.xxxxxx.admin.gwt.portaladmin
However, when I click the compile button nothing happens. In my previous setup I could see the compilation log and the page reloads once it ends.
As for the gwt:debug run, I have been unable to setup my environment as described here here.
I have run the gwt:debug maven configuration.
and the remote configuration
as per the suggestion. I do get to see the GWT Development Mode window as when I do a gwt:run, but I do not see any log information, only this
[UPDATE] I have hacked the Bookmarklet code to figure out that if I call the url
http://localhost:9876/recompile/portaladmin?__gwtDevModeSession:portaladmin
my superdevmode server responds with
[INFO] Compiling module com.xxxxx.admin.gwt.portaladmin
[INFO] Validating units:
[INFO] Ignored 80 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Compiling 18 permutations
[INFO] Compiling permutation 0...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 1...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 2...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 3...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 4...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 5...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 6...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 7...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 8...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 9...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 10...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 11...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 12...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 13...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 14...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 15...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 16...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 17...
[INFO] Source Maps Enabled
[INFO] Compile of permutations succeeded
[INFO] Linking into /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-431669712100879679.tmp/com.xxxxxx.admin.gwt.portaladmin/compile-2/war/portaladmin; Writing extras to /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-431669712100879679.tmp/com.xxxxxx.admin.gwt.portaladmin/compile-2/extras/portaladmin
[INFO] Link succeeded
[INFO] Compilation succeeded -- 29.577s
[INFO] Compile completed in 29782 ms
[INFO] [ERROR] invalid callback: null
So now we have isolated the error to the Bookmarklets: somehow my bookmarklets do not point to the right server or with the right parameters. Would you please help? Here is what I see when I click on the Dev Mode On bookmarklet properties:
javascript:{ window.__gwt_bookmarklet_params = {server_url:'http://localhost:9876/',module_name:'portaladmin'}; var s = document.createElement('script'); s.src = 'http://localhost:9876/dev_mode_on.js'; void(document.getElementsByTagName('head')[0].appendChild(s));}
By inspecting the calls to the server, it never gets to do a /recompile AJAX call. Somehow, something is wrong in the dev_mode_on.js file
Did you try to get rid of the log4j init problem? When your logging does not work, you often are blind. Is your WEB-INF/classes/log4j.isc.config.xml valid?

Resources