Questions tagged [microprofile]

The Eclipse MicroProfile project defines a programming model for developing microservice applications in an Enterprise Java environment.

The Eclipse MicroProfile project is a CDI-first approach to building microservice applications and supported by both community and Java application server vendors. There are a number of active projects within MicroProfile, which can be viewed at the official website.

296 questions
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
3
votes
2 answers

Quarkus in test profile has a different working directory than in development mode, creating path problems accessing resource files

Having a file.txt inside the resources folder. And having a Bean to load that file on the Application start lifecycle: In Development profile when compiled and running the resources folder is copied into the build (or target with maven) directory…
Raffaello
  • 1,641
  • 15
  • 29
3
votes
0 answers

Exception handling for microprofile reactive messaging on open liberty

I am currently trying to implement a consumer for kafka messages based on the openliberty mpReactiveMessaging feature: https://openliberty.io/blog/2019/09/13/microprofile-reactive-messaging.html Given a method like: @Incoming("greetings") public…
3
votes
0 answers
3
votes
2 answers

How to get configuration value for static value in Quarkus

I am rewriting exceptions from an old system and everything was working, but I needed make BAD_REQUEST configurable. private static final String BAD_REQUEST = "BDRQ"; I tried to just put ConfigProperty, but it doesn't work. import…
pr0gramist
  • 8,305
  • 2
  • 36
  • 48
3
votes
1 answer

WebSphere Application Server support of MicroProfile

With the introduction of WebSphere Liberty there is confusion with the classic WebSphere Application Server. For example WebSphere Liberty has support for MicroProfile and there is a lot of info about it, but it is hard to find information about…
Jonathan Barbero
  • 2,504
  • 1
  • 26
  • 47
3
votes
2 answers

Signing key cannot be found

Using http://jwtenizr.sh/ to generate the jwt microprofile configuration. Adding the microprofile-config.properties file works perfectly with quarkus but when trying with openliberty I get the following errror: CWWKS5523E: The MicroProfile JWT…
BeCodeMonkey
  • 91
  • 1
  • 6
3
votes
2 answers

Packaging JSF web app with Quarkus with JVM mode

Quarkus JVM mode with JSF I have an existing thorntail 2.4 based web application built using JSF and JEE (CDI/EJB). For my technology stack above, if I am only using the JVM mode and not the native mode, is it possible to package my application…
3_eyed_raven
  • 43
  • 1
  • 5
3
votes
1 answer

Is there a ManagedExecutorService queue limit?

I'm using the ManagedExecutorService to process a list of jobs. I process the jobs in the main thread and execute each job with the ManagedExecutor. It's possible in the future that the job size exceeds the pool size...so I wonder, is there a queue…
VWeber
  • 1,261
  • 2
  • 12
  • 34
3
votes
1 answer

How can I declare the response array type for OpenAPI definition with JAX-RS?

I'm building a REST service with JAX-RS, Microprofile and Payara 5. My method returns an object of type Response. The response itself contains a List of MyClass. The implementation looks like this: import…
Franz Wimmer
  • 1,477
  • 3
  • 20
  • 38
3
votes
0 answers

Microprofile - Invalid HTTP method: PATCH

During my development I had to invoke an API with the PATCH method, so I write the following interface: import javax.enterprise.context.Dependent; import javax.ws.rs.Consumes; import javax.ws.rs.PATCH; import javax.ws.rs.Path; import…
tiagomistral
  • 143
  • 8
3
votes
1 answer

Injected JsonWebToken is empty with MicroProfile JWT Auth 1.1 on Payara 5.183

I am having issues with decoding/using/verifying the passed JWT to my Java EE 8 with MicroProfile 2.0.1 backend running on Payara 5.183. The React frontend application passes the JWT token, which is obtained from Keycloak, to the backend as…
rieckpil
  • 10,470
  • 3
  • 32
  • 56
3
votes
1 answer

How to define date example in MicroProfile OpenAPI

I tried to create minimal example of the problem. Let's say we have simple return object: public class Result { @Schema(example = "2012-01-01") private LocalDate sampleDate; // omitted getter and setter } returned by simple JAX-RS…
3
votes
1 answer

Using microprofile-config-api: WELD-001408: Unsatisfied dependencies for type String with qualifiers @ConfigProperty

I playing with the mpConfig-1.2 feature, but it seems to not work in my setup. Using Liberty 18.0.0.2. Have added the maven dependency for microprofile-config-api, CDI is working fine, but the @ConfigProperty is failing at startup with the…
bwa
  • 71
  • 7
3
votes
3 answers

How to integrate Keycloak with Payara Micro?

How i can integrate the Keycloak with Payara Micro? I want create an stateless REST JAX-RS application that use the Keycloak as authentication and authorization server, but i unknown how do it. The Eclipse MicroProfile JWT Authentication API defines…
1 2
3
19 20