Questions tagged [eclipse-microprofile-config]

29 questions
3
votes
2 answers

Unable to map / fetch the response entity on 422 error code in Microprofile Rest Client

I have an API, when I call it through postman it gives the below response on the following cases: Case1: status code: 200 {"success": "student record is present", "error": null} Case2: status code: 422 {"success": null, "error": "studentname…
3
votes
1 answer

Configuration for MicroProfile: how inject list of custom object

i'm trying to inject a list of object in quarkus but I receive an error "No Converter registered for class ExternalApiParam". My yaml is: custom: external-api-list: - name: example-1 uri: https://run.mocky.io/v3/55402172-82c3 - name:…
mraf4
  • 106
  • 6
3
votes
1 answer

Trouble loading a subset of custom application.yml configurations to a Map in Quarkus

I'm trying to use quarkus yaml extension as my main source for configs and I was trying to figure out what the best approach is for loading a map from the yaml file. The application.yml: quarkus: http: port: 8080 configuration: value: …
ktulinho
  • 3,870
  • 9
  • 28
  • 35
2
votes
1 answer

Any way to Externalize microprofile-config.properties file in Helidon MP

I am new to Helidon MP and would like to know if there is a way to externalize Helidon MP Properties file.
Gaurav
  • 53
  • 3
2
votes
1 answer

No bean is eligible for injection to the injection point[JSR-365 5.2.2]

Most of the time I use @Inject annotation in MicroProfile based microservices I get "No bean is eligible for injection to the injection point[JSR-365 5.2.2]" as a warning. What is the reason for this warning and what can be done in order to overcome…
1
vote
1 answer

TomEE Microprofile: microprofile-config.properties ignored

i'm having problems getting config values into my microprofile app. I have created a META-INF/microprofile-config.properties file like this: configEntry=HelloWorld I've got a simple test class like this: import…
1
vote
2 answers

ConfigProperty not injecting the value into the field

I am new to quarkus environment. I have a quarkus application where I'm trying to inject the property config using org.eclipse.microprofile.config.inject.ConfigProperty Here is the sample code public class Temp { @ConfigProperty(name =…
1
vote
1 answer

How to setup stage-specific microprofile config with java-ee8, microProfile 4.0, Openliberty 21 and Docker

I have a problem with my application using JavaEE8, Openliberty 21.0.0.5 and Microprofile 4.0 inside a docker container. I cannot set the mpConfig-2.0-introduced mp.config.profile from "outside" the image. My setup is as…
1
vote
1 answer

Should I wrap @ConfigProperty fields in a javax.enterprise.inject.Instance object?

In my quarkus project I inject several ConfigProperty in filters (ContainerRequestFilter, ContainerResponseFilter). This gives me the following warning on startup: [io.qua.res.com.dep.ResteasyCommonProcessor] (build-46) Directly injecting a…
Fab
  • 135
  • 9
1
vote
1 answer

Setting Microprofile active profile using mp.config.profile not working in Liberty

Im currently trying to run a microprofile open liberty project as a jar. java -jar myapp.jar -Dmp.config.profile=test The app runs but is not picking the configuration values from microprofile-config-test.properties instead is using values from…
1
vote
0 answers

NoClassDefFound org.eclipse.microprofile.config.ConfigProvider

I have a small rest client project using microprofile 3.3 and i want to deploy it on a raw wildfly 21.0.1.FINAL using the standalone-microprofile.xml. This project has activated security with jwt and calls another rest-service via…
0
votes
0 answers

How do we visualize the pre-calculated quantile buckets in Grafana?

I have an histogram type metrics which has pre-calculated quantile as mentioned below. Most of the prometheus examples are based on _bucket with label le, while the values fall into specific buckets. # TYPE operation_duration_mean…
Carl
  • 83
  • 1
  • 5
0
votes
1 answer

Helidon MP/Maven: Adding path to custom config source in child project inherited from shared library

I have a shared library which has a class that implements org.eclipse.microprofile.config.spi.ConfigSource (let's call this CustomConfigSource.java). In the shared library's META-INF/services folder there is a file called…
0
votes
0 answers

Combination of @Produces and @ConfigProperties in CDI configuration of a microprofile application

I have a Spring(boot) application that I want to convert to Quarkus, or at least to microprofile. The vast majority of the code is framework agnostic: It has no Spring dependencies, not even Spring related annotations. Only one subproject depends on…
0
votes
0 answers

Error while deploying with MP config in TomEE 9.0.0 SEVERE: CDI Beans module deployment failed with No ConfigProviderResolver implementation found

SEVERE: CDI Beans module deployment failed org.apache.webbeans.exception.WebBeansDeploymentException: Error while sending SystemEvent to a CDI Extension! org.apache.webbeans.portable.events.discovery.AfterDeploymentValidationImpl@4cc26df …
1
2