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
0
votes
0 answers

Payara Server Configuration

I have a microservice that is deployed on a payara app server. Everything works so far. Now I try to include an embedded REDIS Server which listens on port 6379. In order to use this, I have to open that port and ensure that the traffic to this port…
0
votes
1 answer

Payara loading old class After change class file and Restart

After deploy I am changing .class file in applications directory and I am restarting to server. But Payara loading old .class file (I think from war file). This is happening on some servers. Is there any parameter for disable this?
utrucceh
  • 1,076
  • 6
  • 11
0
votes
1 answer

Redirect http to https on payara

Could someone please tell me how to redirect http to https on payara 5 I tried below code on both web.xml at app level and default-web.xml at domain level yet it's not redirecting.
benyusouf
  • 325
  • 2
  • 6
  • 17
0
votes
1 answer

How to `whitelist-package` with Payara Micro Bundle?

According to this blog article, in order to use Google Guava with Payara, it needs to be "whitelisted", however, how to whitelist-package with Payara Micro Bundle? The application web.xml does not accept…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Derby JDBC Driver not found when a War is deployed on Payara Micro

I am trying to run the example as per the Link below, step by step: https://dzone.com/articles/easy-java-ee-microservices-with-payara-micro The example makes use of Apache Derby DB that I have included in Maven POM and also gets bundled in the…
Singam
  • 443
  • 3
  • 12
0
votes
1 answer

Resource not injecting Datasource from web.xml - Java Framework - Payara Micro - NullPointerException

My Payara REST API is working fine without DB Connection, and also Postgres localhost connection works fine through DriverManager i.e.: Connection connection = DriverManager.getConnection("jdbc:postgresql://localhost:5432/postgres", "postgres",…
B Sohal
  • 13
  • 3
0
votes
1 answer

Yasson not converting subclasses properly

I am building an application for payara-micro. I need to convert a Json string to an object that extends a super class. The problem that I have is that both the parent and the child's fields are not populated and the instance created is not of type…
FourtyTwo
  • 734
  • 8
  • 19
0
votes
1 answer

How to add HTTP header to MicroShedTest and SharedContainerConfig JUnit tests

I have integration tests that have been running smoothly until I added security to my application. The security uses a custom generated api key and validation is done in a custom HttpAuthenticationMechanism from header 'X-API-Key'. I need to find…
FourtyTwo
  • 734
  • 8
  • 19
0
votes
1 answer

Testing JakartaEE applications with Arquillian Payara Micro Remote

I'm trying to test a JakartaEE application with Arquillian in Maven. Since the productive application should be running on Payara Micro, I chose the Payara Micro Remote dependency for the communication with the remote server:
0
votes
1 answer

How to save LocalDate to Postgres with Payara Micro

I am getting the below error when I try to persist a LocalDate column. The error only occurs when the field is null. The publish_date column is of type Date in the database. I check Bug 535431 and Bug 546312 and apparently the issue is supposed to…
FourtyTwo
  • 734
  • 8
  • 19
0
votes
1 answer

Payara Micro installed but error 404 is displayed

I installed Payara Micro (payara-micro-5.201.jar) on my pc, since I have to run a Java application (in a WAR file) as client-server on it. Some elements to consider about this installation: I have no IDEs on my pc, and do not need to install any (I…
GGG
  • 49
  • 1
  • 10
0
votes
1 answer

payara-micro lib driver jar file really necessary?

I saw in an post in payara blog that after create the data source for jta in web.xml, you have to put the JDBC Driver jar in lib dir inside of WEB-INF, but I don't put, and worked independently, do you know if is really necessary or why worked?
Kaneda
  • 722
  • 5
  • 16
0
votes
1 answer

Add external file to payara micro application classpath

I'm using payara micro to run my war application. Because one of the services I need to access requires metro ws, I need to provide a wsit client file to the application. When I add it inside the war, it works fine, but since I need this file to be…
Hugo Dias
  • 341
  • 3
  • 13
0
votes
1 answer

index.html not found payara micro

I have a Java application and I am using Payara Micro 4.1.2.174 to deploy it. I am trying to configure the index.html file, which I placed in the folder src/main/webapp. However, no matter what I do, the file is not reachable, I am getting a 404…
pixie
  • 507
  • 9
  • 21
0
votes
1 answer

Payara Micro returning AuthenticationStatus.SEND_FAILURE when passing a JWT bearer to a protected JAX-RS resource

I am relatively new to Java programming so please bear with me. I am developing a microservice to be deployed on Payara Micro. For security, I am using JWTs. Because Payara Micro is an implementation of MicroProfile, I am trying to leverage the…
Cam
  • 11
  • 3