why configuration key "quarkus.servlet.context-path" is not working - quarkus

use quarkus framework online build tools to quickly set up a restful project.
then start the project, I found issue:
Unrecognized configuration key "quarkus.servlet.context-path" was provided.
don't know what reason for that.
$ ./mvnw clean compile quarkus:dev
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.xuanwugate:code-testing >---------------------
[INFO] Building code-testing 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # code-testing ---
[INFO] Deleting /Users/xiaods/Desktop/code-testing/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # code-testing ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # code-testing ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/xiaods/Desktop/code-testing/target/classes
[INFO]
[INFO] --- quarkus-maven-plugin:1.3.1.Final:dev (default-cli) # code-testing ---
Listening for transport dt_socket at address: 5005
__ ____ __ _____ ___ __ ____ ______
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2020-03-29 23:38:52,287 WARN [io.qua.config] (main) Unrecognized configuration key "quarkus.servlet.context-path" was provided; it will be ignored
2020-03-29 23:38:52,502 INFO [io.quarkus] (main) code-testing 1.0.0-SNAPSHOT (powered by Quarkus 1.3.1.Final) started in 0.830s. Listening on: http://0.0.0.0:8080
2020-03-29 23:38:52,503 INFO [io.quarkus] (main) Profile dev activated. Live Coding activated.
2020-03-29 23:38:52,503 INFO [io.quarkus] (main) Installed features: [cdi, resteasy]

Do you have a dependency on io.quarkus:quarkus-undertow? If you only have io.quarkus:quarkus-resteasy, then JAX-RS is running directly on top of Vert.x, servlet is not present and the configuration key won't work. If you need servlet, add Undertow, but if you only need to configure the "root path", you can use the quarkus.http.root-path configuration property.

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

graalvm native image for springboot fat jar throws NoSuchMethodException xxx.<init>() at runtime

I managed to build native-image for my springboot fat jar, but it throws exception: "java.lang.NoSuchMethodException: com.my.passgenerator.PassGeneratorApplication.<init>()" when I run it.
I tried to add a default construction and an empty init() method and both fails. How can I overcome this exception and get this native image running?
Following is the full log:
[root#hostserver pass-generator]# mvn -Pstg clean package -Dmaven.test.skip=true
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.sensetime.intersense:pass-generator:jar:0.0.1-stg-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. # com.sensetime.intersense:pass-generator:0.0.1-${target.env}-SNAPSHOT, /tmp/pass-generator/pom.xml, line 47, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pass-generator 0.0.1-stg-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # pass-generator ---
[INFO] Deleting /tmp/pass-generator/target
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # pass-generator ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # pass-generator ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 10 source files to /tmp/pass-generator/target/classes
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (default) # pass-generator ---
[INFO] Executing tasks
main:
[copy] Copying 3 files to /tmp/pass-generator/target/classes/refs
[copy] Copied 5 empty directories to 1 empty directory under /tmp/pass-generator/target/classes/refs
[copy] Copying 1 file to /tmp/pass-generator/target/classes
[copy] Warning: Could not find file /tmp/pass-generator/target/classes/application-stg.yml to copy.
[copy] Warning: Could not find file /tmp/pass-generator/target/classes/bootstrap-stg.yml to copy.
[copy] Warning: Could not find file /tmp/pass-generator/target/classes/application-stg.yaml to copy.
[copy] Warning: Could not find file /tmp/pass-generator/target/classes/config-stg.properties to copy.
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) # pass-generator ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) # pass-generator ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) # pass-generator ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) # pass-generator ---
[INFO] Building jar: /tmp/pass-generator/target/pass-generator-0.0.1-stg-SNAPSHOT.jar
[INFO]
[INFO] --- native-image-maven-plugin:20.1.0:native-image (default) # pass-generator ---
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter:jar:2.3.0.RELEASE:compile (file:///root/.m2/repository/org/springframework/boot/spring-boot-starter/2.3.0.RELEASE/spring-boot-starter-2.3.0.RELEASE.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot:jar:2.3.0.RELEASE:compile (file:///root/.m2/repository/org/springframework/boot/spring-boot/2.3.0.RELEASE/spring-boot-2.3.0.RELEASE.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-context:jar:5.2.6.RELEASE:compile (file:///root/.m2/repository/org/springframework/spring-context/5.2.6.RELEASE/spring-context-5.2.6.RELEASE.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-aop:jar:5.2.6.RELEASE:compile (file:///root/.m2/repository/org/springframework/spring-aop/5.2.6.RELEASE/spring-aop-5.2.6.RELEASE.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-beans:jar:5.2.6.RELEASE:compile (file:///root/.m2/repository/org/springframework/spring-beans/5.2.6.RELEASE/spring-beans-5.2.6.RELEASE.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-expression:jar:5.2.6.RELEASE:compile (file:///root/.m2/repository/org/springframework/spring-expression/5.2.6.RELEASE/spring-expression-5.2.6.RELEASE.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-autoconfigure:jar:2.3.0.RELEASE:compile (file:///root/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.3.0.RELEASE/spring-boot-autoconfigure-2.3.0.RELEASE.jar)
[INFO] ImageClasspath Entry: jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile (file:///root/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-core:jar:5.2.6.RELEASE:compile (file:///root/.m2/repository/org/springframework/spring-core/5.2.6.RELEASE/spring-core-5.2.6.RELEASE.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-jcl:jar:5.2.6.RELEASE:compile (file:///root/.m2/repository/org/springframework/spring-jcl/5.2.6.RELEASE/spring-jcl-5.2.6.RELEASE.jar)
[INFO] ImageClasspath Entry: org.yaml:snakeyaml:jar:1.26:compile (file:///root/.m2/repository/org/yaml/snakeyaml/1.26/snakeyaml-1.26.jar)
[INFO] ImageClasspath Entry: org.projectlombok:lombok:jar:1.18.0:compile (file:///root/.m2/repository/org/projectlombok/lombok/1.18.0/lombok-1.18.0.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-configuration-processor:jar:2.3.0.RELEASE:compile (file:///root/.m2/repository/org/springframework/boot/spring-boot-configuration-processor/2.3.0.RELEASE/spring-boot-configuration-processor-2.3.0.RELEASE.jar)
[INFO] ImageClasspath Entry: org.apache.commons:commons-lang3:jar:3.7:compile (file:///root/.m2/repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-logging:jar:2.3.0.RELEASE:compile (file:///root/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.3.0.RELEASE/spring-boot-starter-logging-2.3.0.RELEASE.jar)
[INFO] ImageClasspath Entry: ch.qos.logback:logback-classic:jar:1.2.3:compile (file:///root/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar)
[INFO] ImageClasspath Entry: ch.qos.logback:logback-core:jar:1.2.3:compile (file:///root/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar)
[INFO] ImageClasspath Entry: org.slf4j:slf4j-api:jar:1.7.30:compile (file:///root/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar)
[INFO] ImageClasspath Entry: org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.2:compile (file:///root/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.13.2/log4j-to-slf4j-2.13.2.jar)
[INFO] ImageClasspath Entry: org.apache.logging.log4j:log4j-api:jar:2.13.2:compile (file:///root/.m2/repository/org/apache/logging/log4j/log4j-api/2.13.2/log4j-api-2.13.2.jar)
[INFO] ImageClasspath Entry: org.slf4j:jul-to-slf4j:jar:1.7.30:compile (file:///root/.m2/repository/org/slf4j/jul-to-slf4j/1.7.30/jul-to-slf4j-1.7.30.jar)
[INFO] ImageClasspath Entry: org.jasypt:jasypt:jar:1.9.2:compile (file:///root/.m2/repository/org/jasypt/jasypt/1.9.2/jasypt-1.9.2.jar)
[INFO] ImageClasspath Entry: com.github.ulisesbocchio:jasypt-spring-boot:jar:2.0.0:compile (file:///root/.m2/repository/com/github/ulisesbocchio/jasypt-spring-boot/2.0.0/jasypt-spring-boot-2.0.0.jar)
[INFO] ImageClasspath Entry: org.springframework.experimental:spring-graalvm-native:jar:0.7.0:compile (file:///root/.m2/repository/org/springframework/experimental/spring-graalvm-native/0.7.0/spring-graalvm-native-0.7.0.jar)
[WARNING] jar:file:///root/.m2/repository/org/springframework/experimental/spring-graalvm-native/0.7.0/spring-graalvm-native-0.7.0.jar!/META-INF/native-image/org.springframework.experimental/spring-graal-native/native-image.properties does not match recommended META-INF/native-image/${groupId}/${artifactId}/native-image.properties layout.
[INFO] ImageClasspath Entry: com.sensetime.intersense:pass-generator:jar:0.0.1-stg-SNAPSHOT (file:///tmp/pass-generator/target/pass-generator-0.0.1-stg-SNAPSHOT.jar)
[INFO] Executing: /root/graalvm-ce-java8-20.1.0/jre/bin/native-image -cp /root/.m2/repository/org/springframework/boot/spring-boot-starter/2.3.0.RELEASE/spring-boot-starter-2.3.0.RELEASE.jar:/root/.m2/repository/org/springframework/boot/spring-boot/2.3.0.RELEASE/spring-boot-2.3.0.RELEASE.jar:/root/.m2/repository/org/springframework/spring-context/5.2.6.RELEASE/spring-context-5.2.6.RELEASE.jar:/root/.m2/repository/org/springframework/spring-aop/5.2.6.RELEASE/spring-aop-5.2.6.RELEASE.jar:/root/.m2/repository/org/springframework/spring-beans/5.2.6.RELEASE/spring-beans-5.2.6.RELEASE.jar:/root/.m2/repository/org/springframework/spring-expression/5.2.6.RELEASE/spring-expression-5.2.6.RELEASE.jar:/root/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.3.0.RELEASE/spring-boot-autoconfigure-2.3.0.RELEASE.jar:/root/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar:/root/.m2/repository/org/springframework/spring-core/5.2.6.RELEASE/spring-core-5.2.6.RELEASE.jar:/root/.m2/repository/org/springframework/spring-jcl/5.2.6.RELEASE/spring-jcl-5.2.6.RELEASE.jar:/root/.m2/repository/org/yaml/snakeyaml/1.26/snakeyaml-1.26.jar:/root/.m2/repository/org/projectlombok/lombok/1.18.0/lombok-1.18.0.jar:/root/.m2/repository/org/springframework/boot/spring-boot-configuration-processor/2.3.0.RELEASE/spring-boot-configuration-processor-2.3.0.RELEASE.jar:/root/.m2/repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar:/root/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.3.0.RELEASE/spring-boot-starter-logging-2.3.0.RELEASE.jar:/root/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/root/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/root/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar:/root/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.13.2/log4j-to-slf4j-2.13.2.jar:/root/.m2/repository/org/apache/logging/log4j/log4j-api/2.13.2/log4j-api-2.13.2.jar:/root/.m2/repository/org/slf4j/jul-to-slf4j/1.7.30/jul-to-slf4j-1.7.30.jar:/root/.m2/repository/org/jasypt/jasypt/1.9.2/jasypt-1.9.2.jar:/root/.m2/repository/com/github/ulisesbocchio/jasypt-spring-boot/2.0.0/jasypt-spring-boot-2.0.0.jar:/root/.m2/repository/org/springframework/experimental/spring-graalvm-native/0.7.0/spring-graalvm-native-0.7.0.jar:/tmp/pass-generator/target/pass-generator-0.0.1-stg-SNAPSHOT.jar --allow-incomplete-classpath --no-fallback -H:+ReportExceptionStackTraces --initialize-at-build-time=org.springframework.util.unit.DataSize -H:+TraceClassInitialization --no-server -R:MaxHeapSize=16g -J-Xmx16G -H:Class=com.my.passgenerator.PassGeneratorApplication
[com.my.passgenerator.passgeneratorapplication:1026375] classlist: 3,609.05 ms, 1.63 GB
____ _ _____ _
/ ___| _ __ _ __(_)_ __ __ _ | ___|__ __ _| |_ _ _ _ __ ___
\___ \| '_ \| '__| | '_ \ / _` | | |_ / _ \/ _` | __| | | | '__/ _ \
___) | |_) | | | | | | | (_| | | _| __/ (_| | |_| |_| | | | __/
|____/| .__/|_| |_|_| |_|\__, | |_| \___|\__,_|\__|\__,_|_| \___|
|_| |___/
Feature operating in FEATURE mode
Removing unused configurations
Use -Dspring.native.verbose=true on native-image call to see more detailed information from the feature
[com.my.passgenerator.passgeneratorapplication:1026375] (cap): 872.48 ms, 1.63 GB
Found #6 types in static reflection list to register
Skipping #6 types not on the classpath
Attempting proxy registration of #19 proxies
Skipped registration of #17 proxies - relevant types not on classpath
[com.my.passgenerator.passgeneratorapplication:1026375] setup: 2,094.23 ms, 1.63 GB
Registering resources - #35 patterns
Registering resources - #2 bundles
Processing META-INF/spring.factories files...
spring.factories processing, problem adding access for key org.springframework.boot.diagnostics.analyzer.ValidationExceptionFailureAnalyzer: javax/validation/ValidationException
Processing spring.factories - ApplicationListener lists #10 application listeners
Processing spring.factories - PropertySourceLoader lists #2 property source loaders
spring.factories processing, problem adding access for key org.springframework.boot.autoconfigure.jdbc.HikariDriverConfigurationFailureAnalyzer: org/springframework/jdbc/CannotGetJdbcConnectionException
Processing spring.factories - ApplicationListener lists #0 application listeners
Processing spring.factories - EnableAutoConfiguration lists #127 configurations
Excluding 115 auto-configurations from spring.factories file
Processing spring.factories - ApplicationListener lists #1 application listeners
Processing spring.factories - ApplicationListener lists #1 application listeners
Found no META-INF/spring.components -> synthesizing one...
Computed spring.components is
vvv
^^^
Registered 0 entries
Configuring initialization time for specific types and packages:
#87 buildtime-init-classes #23 buildtime-init-packages #33 runtime-init-classes #1 runtime-init-packages
Warning: class initialization of class org.springframework.boot.validation.MessageInterpolatorFactory failed with exception java.lang.NoClassDefFoundError: javax/validation/ValidationException. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=org.springframework.boot.validation.MessageInterpolatorFactory to explicitly request delayed initialization of this class.
Number of types dynamically registered for reflective access: #856
[com.my.passgenerator.passgeneratorapplication:1026375] (clinit): 503.31 ms, 4.40 GB
[com.my.passgenerator.passgeneratorapplication:1026375] (typeflow): 10,414.71 ms, 4.40 GB
[com.my.passgenerator.passgeneratorapplication:1026375] (objects): 11,721.04 ms, 4.40 GB
[com.my.passgenerator.passgeneratorapplication:1026375] (features): 2,246.52 ms, 4.40 GB
[com.my.passgenerator.passgeneratorapplication:1026375] analysis: 25,801.80 ms, 4.40 GB
[com.my.passgenerator.passgeneratorapplication:1026375] universe: 815.05 ms, 4.40 GB
[com.my.passgenerator.passgeneratorapplication:1026375] (parse): 1,752.35 ms, 4.40 GB
[com.my.passgenerator.passgeneratorapplication:1026375] (inline): 1,700.91 ms, 5.03 GB
[com.my.passgenerator.passgeneratorapplication:1026375] (compile): 15,841.57 ms, 7.29 GB
[com.my.passgenerator.passgeneratorapplication:1026375] compile: 20,640.83 ms, 7.29 GB
[com.my.passgenerator.passgeneratorapplication:1026375] image: 2,280.36 ms, 7.31 GB
[com.my.passgenerator.passgeneratorapplication:1026375] write: 373.32 ms, 7.31 GB
[com.my.passgenerator.passgeneratorapplication:1026375] [total]: 61,399.55 ms, 7.31 GB
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.0.RELEASE:repackage (repackage) # pass-generator ---
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:04 min
[INFO] Finished at: 2020-06-13T16:54:19+08:00
[INFO] Final Memory: 49M/1304M
[INFO] ------------------------------------------------------------------------
You have new mail in /var/spool/mail/root
[root#hostserver pass-generator]# ./target/com.my.passgenerator.passgeneratorapplication
2020-06-13 16:54:32.506 ERROR 1030001 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passGeneratorApplication': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.my.passgenerator.PassGeneratorApplication]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.my.passgenerator.PassGeneratorApplication.()
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1320) ~[na:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1214) ~[na:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[na:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[na:na]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[na:na]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[na:na]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[na:na]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[na:na]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:895) ~[na:na]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) ~[na:na]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[na:na]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) ~[com.my.passgenerator.passgeneratorapplication:na]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) ~[com.my.passgenerator.passgeneratorapplication:na]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[com.my.passgenerator.passgeneratorapplication:na]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[com.my.passgenerator.passgeneratorapplication:na]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[com.my.passgenerator.passgeneratorapplication:na]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[com.my.passgenerator.passgeneratorapplication:na]
at com.my.passgenerator.PassGeneratorApplication.main(PassGeneratorApplication.java:29) [com.my.passgenerator.passgeneratorapplication:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.my.passgenerator.PassGeneratorApplication]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.my.passgenerator.PassGeneratorApplication.()
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:83) ~[na:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1312) ~[na:na]
... 17 common frames omitted
Caused by: java.lang.NoSuchMethodException: com.my.passgenerator.PassGeneratorApplication.()
at java.lang.Class.getConstructor0(DynamicHub.java:3082) ~[na:na]
at java.lang.Class.getDeclaredConstructor(DynamicHub.java:2178) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78) ~[na:na]
... 18 common frames omitted
I've got the same error while switching from the compile.sh script building method to the native-image-maven-plugin described in this so answer. The crucial error here is the No default constructor found message and the problem happens while the Spring Feature is working inside the native-image-maven-plugin execution:
Found no META-INF/spring.components -> synthesizing one...
Computed spring.components is
vvv
^^^
Registered 0 entries
Configuring initialization time for specific types and packages:
#87 buildtime-init-classes #23 buildtime-init-packages #33 runtime-init-classes
Spring heavily relies on classpath scanning at runtime, where your #SpringBootApplication or #Component annotated components are found normally. But there's a big challenge to get Spring applications to work with GraalVM Native Image, since runtime classpath scanning isn't possible here anymore.
The Spring Feature spring-graalvm-native therefore tries to either process a META-INF/spring.components file or computes in memory. The latter doesn't work right now using the native-image-maven-plugin. To fix that, you need to add an explicit dependency to the spring-context-indexer in your pom.xml (see a fully working example here):
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-indexer</artifactId>
</dependency>
The current Spring Feature docs also tell us about this dependency we should use. If you added the spring-context-indexer to your pom.xml, it will create a file target/classes/META_INF/spring.components containing your #SpringBootApplication annotated class:
com.my.passgenerator.PassGeneratorApplication=org.springframework.stereotype.Component
Also your build output should state, that the file has been processed and an entry was registered like that:
Processing META-INF/spring.components files...
Registered 1 entries
Configuring initialization time for specific types and packages:
#87 buildtime-init-classes #23 buildtime-init-packages #33 runtime-init-classes
If you add more #Component annotated classes, the file will contain them also and will also be registered in the native-image build process. After a successful Maven build, your Spring Boot native app should start as expected. For more info you can also have a look at this blog post about using the native-image-maven-plugin for Spring Boot GraalVM Native Image builds.

Why failed to compile pentaho-kettle-9.0.0.2-R?

Why dose the release build fail? Pentaho-kettle-9.0.0.3-R is same problem.
Environmental information:
maven version 3
jdk 11
mvn clean install -Dmaven.test.skip=true
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # kettle-core ---
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:parse-version (set-doc-version-property) # kettle-core ---
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:rootlocation (set-root-dir-property) # kettle-core ---
[INFO]
[INFO] --- license-helper-maven-plugin:1.27:check-license (check-license) # kettle-core ---
[INFO] Effective license file is [/usr/src/app/src/pentaho-kettle-9.0.0.2-R/LICENSE.txt]
[INFO]
[INFO] --- iterator-maven-plugin:0.5.1:iterator (javascript-dependencies_unpack-dependencies) # kettle-core ---
[INFO] ------ (dummy) org.apache.maven.plugins:maven-dependency-plugin:3.1.0:unpack-dependencies
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:add-resource (add-filtered-resources) # kettle-core ---
[INFO]
[INFO] --- license-helper-maven-plugin:1.27:bundle (bundle-license) # kettle-core ---
[INFO] License file [/usr/src/app/src/pentaho-kettle-9.0.0.2-R/LICENSE.txt] will be added to [META-INF/LICENSE.txt]
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) # kettle-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 90 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # kettle-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 398 source files to /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/target/classes
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/version/BuildVersion.java: Some input files use or override a deprecated API.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/version/BuildVersion.java: Recompile with -Xlint:deprecation for details.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/plugins/SupplementalPlugin.java: Some input files use unchecked or unsafe operations.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/plugins/SupplementalPlugin.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/Result.java:[32,33] package javax.xml.bind.annotation does not exist
[ERROR] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/Result.java:[65,2] cannot find symbol
symbol: class XmlRootElement
[INFO] 2 errors
Who can help me?
Look at main pom.xml like
https://github.com/pentaho/pentaho-kettle/blob/master/pom.xml
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Use jdk8.
package javax.xml.bind.annotation does not exist because if I ain't mistaken, it is moved to jee with removal from jdk core since jdk9

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

Unable to execute maven tests at some times using citrus test frame work

I am running citrus test cases using maven command which looks like this
mvn integration-test -Dfilename.pattern=**/*Rest.xml -Dhtmlreport.name=report4.html
I am executing above command using java procesess executor here is the code
public class TestExecutor {
String[] command = new String[3];
command[0] = "cmd";
command[1] = "/c";
command[2] = "mvn integration-test -Dfilename.pattern=**/*"+xmlName+" "+"-Dhtmlreport.name="+report_name;
}
Process p = Runtime.getRuntime().exec(command);
I am exposing above code as rest service. user sends system properties through url. I am passing that information to maven fail safe plugin using maven command here is the maven fail safe plugin properties.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.20</version>
<configuration>
<systemProperties>
<citrus.xml.file.name.pattern>${filename.pattern}</citrus.xml.file.name.pattern>
<citrus.html.report.file>${htmlreport.name}</citrus.html.report.file>
</systemProperties>
</configuration>
<executions>
<execution>
<id>integration-tests</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
after my rest service receiving this information it execute maven command which was mentioned above. What the problem I am facing is when the rest service used as single instance the command was executing fine. But when I tested this code in for multi users ie is in multi threaded environment. Some times every user hit(Tests) was executing fine but most of the time this code was not executing all the users test cases(ie is some users test cases were excuting fine ) but for remaing users the console out put was just like this. There are no tests executed. I am using testNg to execute my test cases.
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< com.walmart.citrus:multi-user-handling >---------------
[INFO] Building Citrus Integration Test 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[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] --- maven-resources-plugin:2.6:resources (default-resources) # multi-user-handling ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) # multi-user-handling ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to D:\springnotes\multi-user-handling\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # multi-user-handling ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) # multi-user-handling ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) # multi-user-handling ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # multi-user-handling ---
[INFO]
[INFO] --- maven-failsafe-plugin:2.20:integration-test (integration-tests) # multi-user-handling ---
[WARNING] The parameter forkMode is deprecated since version 2.14. Use forkCount and reuseForks instead.
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.568 s
[INFO] Finished at: 2018-08-23T23:41:20+05:30
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "test" could not be activated because it does not exist.
for remaining users in successes case of executing the test case out put was like this
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< com.citrus:multi-user-handling >---------------
[INFO] Building Citrus Integration Test 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[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] --- maven-resources-plugin:2.6:resources (default-resources) # multi-user-handling ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) # multi-user-handling ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # multi-user-handling ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) # multi-user-handling ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) # multi-user-handling ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # multi-user-handling ---
[INFO]
[INFO] --- maven-failsafe-plugin:2.20:integration-test (integration-tests) # multi-user-handling ---
[WARNING] The parameter forkMode is deprecated since version 2.14. Use forkCount and reuseForks instead.
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.walmart.tests.SampleXmlIT
23:41:11,094 INFO citrus.Citrus| Unable to locate Citrus application properties
23:41:11,137 INFO BeanDefinitionReader| Loading XML bean definitions from URL [file:/D:/springnotes/multi-user-handling/target/test-classes/citrus-context.xml]
23:41:11,709 DEBUG BeanDefinitionReader| Loaded 0 bean definitions from location pattern [classpath*:citrus-context.xml]
23:41:13,545 INFO port.LoggingReporter|
23:41:13,545 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:13,545 INFO port.LoggingReporter| .__ __
23:41:13,545 INFO port.LoggingReporter| ____ |__|/ |________ __ __ ______
23:41:13,545 INFO port.LoggingReporter| _/ ___\| \ __\_ __ \ | \/ ___/
23:41:13,545 INFO port.LoggingReporter| \ \___| || | | | \/ | /\___ \
23:41:13,545 INFO port.LoggingReporter| \___ >__||__| |__| |____//____ >
23:41:13,545 INFO port.LoggingReporter| \/ \/
23:41:13,545 INFO port.LoggingReporter|
23:41:13,545 INFO port.LoggingReporter| C I T R U S T E S T S 2.7.3
23:41:13,546 INFO port.LoggingReporter|
23:41:13,546 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:13,546 DEBUG port.LoggingReporter| BEFORE TEST SUITE
23:41:13,546 INFO port.LoggingReporter|
23:41:13,546 INFO port.LoggingReporter|
23:41:13,546 INFO port.LoggingReporter| BEFORE TEST SUITE: SUCCESS
23:41:13,546 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:13,546 INFO port.LoggingReporter|
23:41:13,582 DEBUG t.TestContextFactory| Created new test context - using global variables: '{}'
23:41:14,618 INFO port.LoggingReporter|
23:41:14,618 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:14,618 DEBUG port.LoggingReporter| STARTING TEST 20180326024725Rest <com\walmart\resources>
23:41:14,618 INFO port.LoggingReporter|
23:41:14,618 DEBUG citrus.TestCase| Initializing test case
23:41:14,619 DEBUG context.TestContext| Setting variable: citrus.test.name with value: '20180326024725Rest'
23:41:14,619 DEBUG context.TestContext| Setting variable: citrus.test.package with value: 'com\walmart\resources'
23:41:14,619 DEBUG citrus.TestCase| Test variables:
23:41:14,619 DEBUG citrus.TestCase| citrus.test.name = 20180326024725Rest
23:41:14,619 DEBUG citrus.TestCase| citrus.test.package = com\test\resources
23:41:14,619 INFO port.LoggingReporter|
23:41:14,619 DEBUG port.LoggingReporter| TEST STEP 1/1: echo
23:41:14,620 INFO actions.EchoAction|
hmmm
23:41:14,620 INFO port.LoggingReporter|
23:41:14,620 DEBUG port.LoggingReporter| TEST STEP 1/1 SUCCESS
23:41:14,621 INFO port.LoggingReporter|
23:41:14,621 INFO port.LoggingReporter| TEST SUCCESS 20180326024725Rest (com\walmart\resources)
23:41:14,621 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:14,621 INFO port.LoggingReporter|
[TestHTMLReporter] Access is denied
23:41:15,207 INFO port.LoggingReporter|
23:41:15,207 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:15,208 DEBUG port.LoggingReporter| AFTER TEST SUITE
23:41:15,208 INFO port.LoggingReporter|
23:41:15,208 INFO port.LoggingReporter|
23:41:15,208 INFO port.LoggingReporter| AFTER TEST SUITE: SUCCESS
23:41:15,208 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:15,209 INFO port.LoggingReporter|
23:41:15,209 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:15,209 INFO port.LoggingReporter|
23:41:15,209 INFO port.LoggingReporter| CITRUS TEST RESULTS
23:41:15,209 INFO port.LoggingReporter|
23:41:15,212 INFO port.LoggingReporter| 20180326024725Rest ............................................. SUCCESS
23:41:15,212 INFO port.LoggingReporter|
23:41:15,212 INFO port.LoggingReporter| TOTAL: 1
23:41:15,212 DEBUG port.LoggingReporter| SKIPPED: 0 (0.0%)
23:41:15,212 INFO port.LoggingReporter| FAILED: 0 (0.0%)
23:41:15,212 INFO port.LoggingReporter| SUCCESS: 1 (100.0%)
23:41:15,212 INFO port.LoggingReporter|
23:41:15,212 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:15,212 DEBUG report.HtmlReporter| Generating HTML test report
23:41:15,213 DEBUG util.FileUtils| Reading file resource: 'test-detail.html' (encoding is 'windows-1252')
23:41:15,584 DEBUG util.FileUtils| Reading file resource: 'test-report.html' (encoding is 'windows-1252')
23:41:15,591 INFO report.HtmlReporter| Generated HTML test report: target\citrus-reports\report8.html
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.61 s - in com.walmart.tests.SampleXmlIT
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[WARNING] Could not delete temp directory D:\springnotes\multi-user-handling\target\surefire because Directory D:\springnotes\multi-user-handling\target\surefire unable to be deleted.
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.719 s
[INFO] Finished at: 2018-08-23T23:41:19+05:30
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "test" could not be activated because it does not exist.
Here is my rest service code
#RestController
public class RestRunner {
static String namePattern="";
#RequestMapping(value="runurtest", method=RequestMethod.GET)
#ResponseBody
public String rest(#RequestParam String xmlName,#RequestParam String report_name) throws Exception
{
//TestExecutor class executes maven command in java procesess
new TestExecutor().exec(xmlName,report_name);
//report manger class sends html report user
return new ReportManager().readHTMLFile(report_name);
}
}
By default, the maven-failsafe-plugin will only execute test classes with the following wildcard patterns:
**/IT*.java **/*IT.java **/*ITCase.java
In case your test classes do not follow any of these naming conventions, then failsafe will not execute your tests.
You can configure the maven-failsafe-plugin to use different naming patterns. Please see how to do this in https://maven.apache.org/surefire/maven-failsafe-plugin/examples/inclusion-exclusion.html

Resources