Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Substitution target for org.wildfly.common.Substitutions$Target_GraalDirectives is not loaded. Use field onlyWith in the TargetClass annotation to make substitution only active when needed. #163

Open
ozkanpakdil opened this issue Jan 5, 2025 · 0 comments

Comments

@ozkanpakdil
Copy link

Jhipster version

C:\Users\ozkan\tmp\so-answer>jhipster-native --version
INFO! No custom commands found within blueprint: generator-jhipster-native at C:\Users\ozkan\AppData\Roaming\npm\node_modules\generator-jhipster-native
2.6.0 (generator-jhipster 8.8.0)

mvn java version

C:\Users\ozkan\projects\hamta>mvnw --version
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\Users\ozkan\.m2\wrapper\dists\apache-maven-3.9.9\977a63e90f436cd6ade95b4c0e10c20c
Java version: 23.0.1, vendor: GraalVM Community, runtime: C:\sdkman\candidates\java\current
Default locale: en_GB, platform encoding: UTF-8
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

I created a jhipster app from below jdl and got the error below
test.jdl.txt

[1/8] Initializing...                                                                                    (0.0s @ 0.44GB)
Error: Substitution target for org.wildfly.common.Substitutions$Target_GraalDirectives is not loaded. Use field `onlyWith` in the `TargetClass` annotation to make substitution only active when needed.
------------------------------------------------------------------------------------------------------------------------
                         0.9s (2.2% of total time) in 7 GCs | Peak RSS: 1.60GB | CPU load: 3.13
========================================================================================================================
Failed generating 'native-executable' after 37.8s.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

longer.error.txt

This is coming from undertow and for workaround I removed undertow from my pom and removed the exclusion of tomcat, after that native build worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant