-
Notifications
You must be signed in to change notification settings - Fork 79
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
How to package by profile native? #820
Comments
dengbingaliyun
changed the title
The example error logs apeared when I package by native-image command line
How to package by profile native?
Jun 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Operation System : Windows 11
I modified join faces version to 5.0.6 in pom.xml .
Then I type the graalvm command :
mvn clean -Pnative package
logs list below:
[INFO]
[INFO] --- spring-boot:3.1.0:process-aot (process-aot) @ leak ---
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v3.1.0)
2023-06-09T17:47:10.825+08:00 INFO 20160 --- [ main] com.celou.leak.MainApplication : Starting MainApplication using Java 17.0.7 with PID 20160 (E:\productworkspace\leak\target\classes started by dengb in E:\productworkspace\leak)
2023-06-09T17:47:10.828+08:00 DEBUG 20160 --- [ main] com.celou.leak.MainApplication : Running with Spring Boot v3.1.0, Spring v6.0.9
2023-06-09T17:47:10.829+08:00 INFO 20160 --- [ main] com.celou.leak.MainApplication : The following 1 profile is active: "dev"
2023-06-09T17:47:11.724+08:00 INFO 20160 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-06-09T17:47:11.927+08:00 INFO 20160 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 194 ms. Found 16 JPA repository interfaces.
Exception in thread "main" org.springframework.boot.context.properties.bind.MissingParametersCompilerArgumentException: Constructor binding in a native image requires compilation with -parameters but the following classes were compiled without it:
jakarta.servlet.DispatcherType
at org.springframework.boot.context.properties.bind.BindableRuntimeHintsRegistrar.registerHints(BindableRuntimeHintsRegistrar.java:90)
at org.springframework.boot.context.properties.ConfigurationPropertiesBeanFactoryInitializationAotProcessor$ConfigurationPropertiesReflectionHintsContribution.applyTo(ConfigurationPropertiesBeanFactoryInitializationAotProcessor.java:70)
at org.springframework.context.aot.BeanFactoryInitializationAotContributions.applyTo(BeanFactoryInitializationAotContributions.java:78)
at org.springframework.context.aot.ApplicationContextAotGenerator.lambda$processAheadOfTime$0(ApplicationContextAotGenerator.java:58)
at org.springframework.context.aot.ApplicationContextAotGenerator.withCglibClassHandler(ApplicationContextAotGenerator.java:67)
at org.springframework.context.aot.ApplicationContextAotGenerator.processAheadOfTime(ApplicationContextAotGenerator.java:53)
at org.springframework.context.aot.ContextAotProcessor.performAotProcessing(ContextAotProcessor.java:106)
at org.springframework.context.aot.ContextAotProcessor.doProcess(ContextAotProcessor.java:84)
at org.springframework.context.aot.ContextAotProcessor.doProcess(ContextAotProcessor.java:49)
at org.springframework.context.aot.AbstractAotProcessor.process(AbstractAotProcessor.java:82)
at org.springframework.boot.SpringApplicationAotProcessor.main(SpringApplicationAotProcessor.java:80)
Is there something I did wrong with it?
The text was updated successfully, but these errors were encountered: