You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the above error is resolved manually, it results to another build failure:
Errors: FileServiceTest » IllegalArgument WELD-001408: Unsatisfied dependencies for type Tracer with qualifiers @Default
at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject io.helidon.microprofile.telemetry.HelidonTelemetryContainerFilter(Tracer, Config)
at io.helidon.microprofile.telemetry.HelidonTelemetryContainerFilter.<init>(HelidonTelemetryContainerFilter.java:0)
Steps to reproduce
Run the helidon cli like below:
Helidon version: 4.0.11
Updating metadata for Helidon version 4.0.11
| Helidon Flavor
Select a Flavor
(1) se | Helidon SE
(2) mp | Helidon MP
Enter selection (default: 1): 2
| Application Type
Select an Application Type
(1) quickstart | Quickstart
(2) database | Database
(3) custom | Custom
(4) oci | OCI
Enter selection (default: 1): 3
| Media Support
Select Media Support
(1) json | JSON
(2) multipart | MultiPart
Enter selection (numbers separated by spaces or 'none') (default: 1): 1 2
Select a JSON library
(1) jackson | Jackson
(2) jsonb | JSON-B
Enter selection (default: 2): 1
| Security
Secure Application (yes/no) (default: no): no
| Database
Database Support (yes/no) (default: no): yes
Select a JPA Implementation
(1) hibernate | Hibernate
(2) eclipselink | EclipseLink
Enter selection (default: 1): 1
Select a Connection Pool
(1) hikaricp | HikariCP
(2) ucp | UCP
Enter selection (default: 1): 2
Select a Database Server
(1) h2 | H2
(2) mysql | MySQL
(3) oracledb | Oracle DB
Enter selection (default: 1): 1
Auto DDL (yes/no) (default: no): yes
Persistence Unit Name (default: pu1):
Datasource Name (default: ds1):
| Extra
Select Additional Components
(1) fault-tolerance | Fault Tolerance
(2) cors | CORS
Enter selection (numbers separated by spaces or 'none') (default: none): 1
| Observability
Metrics (yes/no) (default: no): yes
Select a Metrics Provider
(1) microprofile | MicroProfile
(2) micrometer | Micrometer
Enter selection (default: 1): 1
Built-in Metrics (yes/no) (default: yes): yes
Health Checks (yes/no) (default: no): yes
Built-in Health Checks (yes/no) (default: yes): yes
Tracing (yes/no) (default: no): yes
Select a Tracing Provider
(1) jaeger | Jaeger
(2) zipkin | Zipkin
Enter selection (default: 1): 1
| Packaging and Deployment
Docker support (yes/no) (default: no): yes
GraalVM Native Image Support (yes/no) (default: no): no
JLink Support (yes/no) (default: no): no
Kubernetes Support (yes/no) (default: no): yes
Verrazzano Support (yes/no) (default: no): no
Module support (JPMS) (yes/no) (default: no): yes
| Customize Project
Project groupId (default: me.alexandp-helidon): oracle.mypopescu.spectra.helidon
Project artifactId (default: custom-mp): mp
Project version (default: 1.0-SNAPSHOT):
Java package name (default: me.alexandp.mp.custom): oracle.mypopescu.spectra.helidon.mp
Workaround
1st issue is a duplicate problem as there are 2 instances of requires jakarta.xml.bind; within module-info.java
The 2nd issue, which only manifests after manually fixing issue no. 1 , i.e. removing the duplicate, is because FileServiceTest requires telemetry cdi extension and that extension in turn needs config cdi extension. Adding these annotations in FileServiceTest will be a workaround for the issue:
Environment Details
Problem Description
A generated MP project using the helidon cli fails to build with this error:
When the above error is resolved manually, it results to another build failure:
Steps to reproduce
Run the helidon cli like below:
Workaround
requires jakarta.xml.bind;
within module-info.javaThe text was updated successfully, but these errors were encountered: