Questions tagged [payara-micro]

Payara-Micro is a lightweight build of Payara that builds on GlassFish embedded.

Payara Micro is built to be a microservices platform. It is built in the same way as GlassFish embedded, with extra APIs such as JCache.

111 questions
17
votes
6 answers

How do I add JDBC drivers and configure JDBC Resources in Payara Micro?

What are my options to set up JDBC drivers and resources when using Java EE Payara Micro?
tainos
  • 280
  • 1
  • 4
  • 14
5
votes
2 answers

How to use Jackson 2 in Payara 5?

I'm using Jackson 2 with Payara 4 and I would liked to use Jackson 2 in Payara 5. Using JAX-RS, I also would like to avoid changing annotations and so on... In Payara 5 the default Jsonb provider is Yasson. Any ideas to disable it and use Jackson…
Whyvra FVR
  • 73
  • 1
  • 8
3
votes
0 answers

Enable CORS configuration in Payara for OpenAPI specification

I am currently trying to enable CORS for the OpenAPI specification in my Payara Micro server. I'm working with Payara Micro 5.2021.9. I have a microservice running on 10.0.2.15:8080 inside a Vagrant image that I want to access the OpenAPI…
BlueMoose
  • 117
  • 11
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
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…
3
votes
2 answers

Increase memory allocated to application deployed to payara micro

Am running my application from a payara micro UberJar and would like to increase the memory allocated to the application. How can I do this at the point of creating the uberJar?
abulkay
  • 409
  • 4
  • 13
2
votes
1 answer

Payara 5 - Method with [observer @Initialized(ApplicationScoped.class) ServletContext init] is not invoked inside Jar files

I was trying to migrate from payara/micro:4.181 to payara/micro:5.2022.3 and I noticed that the initialization method with observer [@initialized(ApplicationScoped.class) ServletContext init] is not invoked inside Jar files. public void…
MedMahmoud
  • 117
  • 1
  • 2
  • 15
2
votes
1 answer

Is there a way to prevent JPQL's FUNCTION from returning an object of type java.lang.Object?

I have the following JPQL query running in a Payara Micro 5.2022.2 application. TypedQuery query = entityManager.createQuery( "SELECT new UserDto((FUNCTION('COALESCE', (select fullname from Person p where p.userId = u.id), 'Name not…
FourtyTwo
  • 734
  • 8
  • 19
2
votes
1 answer

java.lang.Exception: Host is not set (running a JakartaEE app on Payara micro, behind nginx)

This error trace is polluting my logs and I can't find on SA or else what is causing it: [2022-01-11T04:15:00.144+0100] [] [[1;91mSEVERE[0m] [AS-WEB-CORE-00037] [[1;94mjavax.enterprise.web.core[0m] [tid: _ThreadID=27428…
seinecle
  • 10,118
  • 14
  • 61
  • 120
2
votes
0 answers

Payara micro on VsCode gets java.lang.IndexOutOfBoundsException

I'm trying to debug a glassfish project on VsCode, I chose to run a micro payara from the extension and the executor service task gets an index out of bounds exception. [2021-12-02T08:11:06.092-0400] [] [INFO] [NCLS-JMX-00006]…
2
votes
1 answer

JAX-RS and RegEx @Paths with spaces

Spaces in URIs are allowed if they're encoded, as discussed here. JAX-RS (Jersey on Payara) doesn't seem to allow spaces defined in the path regex pattern. @Path("/{code: [A-Z0-9][A-Z0-9\\s-]{0,10}[A-Z0-9]}") The above regex should match the…
John Manko
  • 1,828
  • 27
  • 51
2
votes
2 answers

Payara Micro ignoring connection url in persistence.xml

I am writing a Payara Micro web application that should connect to a database as defined in persistence.xml. The database it should connect to is a file on my local machine and at the time of project startup, it does not exist. To my understanding,…
Dan
  • 7,286
  • 6
  • 49
  • 114
2
votes
3 answers

Payara 5.2020.4 didn't start

I've jdk1.8.0_171 installed on my windows 10, 64bit OS , yesterday I've downloaded Payara Micro Community 5.2020.4 and added the server on Netbeans 8.2 , but when I try to start the sever NetBeans Payara server log shows following error Error:…
Aminul
  • 1,738
  • 2
  • 24
  • 42
2
votes
1 answer

How to set empty context root for payara micro?

my app works with payara server without setting any context root but payara micro is setting default context root as name of my war file. How do I set context root to empty in case ot payara micro ? one of the way is to set war name as ROOT.war but…
MiGo
  • 551
  • 2
  • 7
  • 17
2
votes
1 answer

How to set up ActiveMQ Artemis with Payara (Micro)

I'd like to create a setup to evaluate messaging with JMS. The target environment would be a normal Payara, yet to have a simple setup, I'd like to test things out with Payara Micro (bundled jar). This ways, I'd like to create a setup that can be…
TheDentist
  • 103
  • 1
  • 7
1
2 3 4 5 6 7 8