Closed tivrfoa closed 3 years ago
Bulding with docker works:
docker build -t helidon-quickstart-mp-jri -f Dockerfile.jlink .
REPOSITORY TAG IMAGE ID CREATED SIZE
helidon-quickstart-mp-jri latest 1be88682d1fd 2 minutes ago 199MB
docker run -it helidon-quickstart-mp-jri
2021.01.22 14:15:58 INFO io.helidon.common.LogConfig Thread[main,5,main]: Logging at initialization configured using classpath: /logging.properties
2021.01.22 14:15:58 INFO org.jboss.weld.Version Thread[main,5,main]: WELD-000900: 3.1.4 (Final)
2021.01.22 14:15:58 INFO org.jboss.weld.Bootstrap Thread[main,5,main]: WELD-ENV-000020: Using jandex for bean discovery
2021.01.22 14:15:58 INFO org.jboss.weld.Bootstrap Thread[main,5,main]: WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
2021.01.22 14:15:59 INFO org.jboss.weld.Event Thread[main,5,main]: WELD-000411: Observer method [BackedAnnotatedMethod] private io.helidon.microprofile.openapi.OpenApiCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<X>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2021.01.22 14:15:59 INFO org.jboss.weld.Event Thread[main,5,main]: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jersey.ext.cdi1x.internal.ProcessAllAnnotatedTypes.processAnnotatedType(@Observes ProcessAnnotatedType<?>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2021.01.22 14:16:00 INFO io.helidon.tracing.tracerresolver.TracerResolverBuilder Thread[main,5,main]: TracerResolver not configured, tracing is disabled
2021.01.22 14:16:00 WARNING io.helidon.microprofile.tracing.TracingCdiExtension Thread[main,5,main]: helidon-microprofile-tracing is on the classpath, yet there is no tracer implementation library. Tracing uses a no-op tracer. As a result, no tracing will be configured for WebServer and JAX-RS
2021.01.22 14:16:00 INFO io.helidon.microprofile.security.SecurityCdiExtension Thread[main,5,main]: Authentication provider is missing from security configuration, but security extension for microprofile is enabled (requires providers configuration at key security.providers). Security will not have any valid authentication provider
2021.01.22 14:16:00 INFO io.helidon.microprofile.security.SecurityCdiExtension Thread[main,5,main]: Authorization provider is missing from security configuration, but security extension for microprofile is enabled (requires providers configuration at key security.providers). ABAC provider is configured for authorization.
2021.01.22 14:16:00 INFO io.helidon.microprofile.server.ServerCdiExtension Thread[main,5,main]: Registering JAX-RS Application: HelidonMP
2021.01.22 14:16:01 INFO io.helidon.webserver.NettyWebServer Thread[nioEventLoopGroup-2-1,10,main]: Channel '@default' started: [id: 0x48e366c4, L:/0.0.0.0:8080]
2021.01.22 14:16:01 INFO io.helidon.microprofile.server.ServerCdiExtension Thread[main,5,main]: Server started on http://localhost:8080 (and all other host addresses) in 3640 milliseconds (since JVM startup).
2021.01.22 14:16:01 INFO io.helidon.common.HelidonFeatures Thread[features-thread,5,main]: Helidon MP 2.2.0 features: [CDI, Config, Fault Tolerance, Health, JAX-RS, Metrics, Open API, Security, Server, Tracing]
^C2021.01.22 14:17:17 INFO io.helidon.webserver.NettyWebServer Thread[nioEventLoopGroup-2-1,10,main]: Channel '@default' closed: [id: 0x48e366c4, L:/0.0.0.0:8080]
2021.01.22 14:17:17 INFO io.helidon.microprofile.server.ServerCdiExtension Thread[helidon-cdi-shutdown-hook,5,main]: Server stopped in 73 milliseconds.
Server stopped in 73 milliseconds.
2021.01.22 14:17:18 INFO org.jboss.weld.Bootstrap Thread[helidon-cdi-shutdown-hook,5,main]: WELD-ENV-002001: Weld SE container 758b65d9-c925-4be5-a315-1b60f9783e97 shut down
It failed because it took too long: Image generation error: io.helidon.build.util.ProcessMonitor$ProcessTimeoutException: Creating Class Data Sharing archive for helidon-quickstart-mp.jar timed out
.
We did raise the hard-coded timeouts in the upcoming version of the jlink-image tool (from 60s to5min) however they should be configurable with the plugin. I've filed an enhancement for that here: https://github.com/oracle/helidon-build-tools/issues/342
It failed because it took too long:
Image generation error: io.helidon.build.util.ProcessMonitor$ProcessTimeoutException: Creating Class Data Sharing archive for helidon-quickstart-mp.jar timed out
.We did raise the hard-coded timeouts in the upcoming version of the jlink-image tool (from 60s to5min) however they should be configurable with the plugin. I've filed an enhancement for that here: oracle/helidon-build-tools#342
Thank you! Would you like me to close this issue? Please feel free to close it if you prefer.
Hi,
I got the erro below when I ran the command:
mvn package -Pjlink-image
The repository is here: https://github.com/tivrfoa/helidon-openapi-swagger-ui
Windows 10 64 bits
/helidon-quickstart-mp $ javac --version javac 16-ea
$ java --version openjdk 16-ea 2021-03-16 OpenJDK Runtime Environment (build 16-ea+32-2190) OpenJDK 64-Bit Server VM (build 16-ea+32-2190, mixed mode, sharing)