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
1
vote
1 answer

How to make OpenApi UI work in Payara Micro

I have followed this tutorial Swagger UI on MicroProfile OpenAPI but simply adding the below to a pom.xml file of a Payara micro application does not add /openapi-ui, only /openapi works. Is there something else that is required or is it not…
FourtyTwo
  • 734
  • 8
  • 19
1
vote
1 answer

Payara Micro: How to log with slf4j (or log4j2)?

I'm using Payara Micro (bundled ueberjar) for a recent project, but I have difficulties with logging. Seems like Payara Micro uses JUL by default, which does not suit my needs. I'd like to use Log4J 2 instead, preferably through slf4j.…
TheDentist
  • 103
  • 1
  • 7
1
vote
1 answer

PayaraMicro does not call @PreDestroy on EJB or ApplicationScoped

I'm migrating a WAR application from PayaraServer to Payara Micro to reduce RAM usage. I just realise that @PreDestroy on EJBs are not called when stopping the instance with CTRL+C. Is there a correct way to close the payaramicro instance properly…
iriiko
  • 43
  • 4
1
vote
1 answer

Can the port be set in the Maven payara-micro-maven-plugin to avoid "address already in use" running multiple instances?

Downloaded generated microprofile/payara demo app from: https://start.microprofile.io/ Starting first instance (demo-service-a) runs fine. Starting separate instance (demo-service-b), getting... java.net.BindException: Address already in use: bind …
sairn
  • 461
  • 3
  • 24
  • 58
1
vote
2 answers

How to access build args in ENTRYPOINT dockerfile

I am trying to deploy an app in payara micro based on payara dockerimage and I need to pass one arguement snapshotversion in ENTRYPOINT(basically i want to access the build args in ENTRYFORM) exec form, as exec form of ENTRYPOINT is preferred: my…
MiGo
  • 551
  • 2
  • 7
  • 17
1
vote
1 answer

PayaraMicro doesn't support http range header?

My webapp running on Payara-Micro is a tool to listen to audio files and navigate freely through them using the javascript currentTime property. So the browser has
1
vote
1 answer

How enforce gzip compression in JAX-RS endpoint / payara-micro response

I'm sending a lots of data as a JSON response in JAX-RS endpoint. Is there any way to set "always-compress" parameter in javax.ws.rs as annotation to the endpoint or on payara-micro level as parameter, to always compress the response? The current…
wbrycki
  • 121
  • 1
  • 8
1
vote
1 answer

Running Payara Micro from Maven: "Deployed 0 archive(s)"

I am trying to set up an Eclipe MicroProfile Application with Maven. I generated the archive with the MicroProfile Starter at start.microprofile.io, which generates the following pom:
javahippie
  • 806
  • 10
  • 25
1
vote
0 answers

Payara Micro with enhanced classloading?

I have a big war that gets built with a bunch of dependencies, including newer versions of guava, jackson etc. In order to get it to work on Payara Server 5.183, I have added a glassfish-web.xml file with the tag to…
Matt
  • 3,303
  • 5
  • 31
  • 53
1
vote
2 answers

How to add a timer service in Eclipse MicroProfile

In Java EE I used the EJB Timer Service to schedule a Task: @Stateless public class TestSchedule { @Schedule(second = "*/30", minute = "*", hour = "*") public void processFiles() { } } As this approach is not supported in Eclipse…
VWeber
  • 1,261
  • 2
  • 12
  • 34
1
vote
1 answer

Payara micro error: In TLD scanning, the supplied resource file does not exist

The App is a hello world created with the NetBeans Payara Micro plugin: it contains nothing but an index.html and a main class that writes "hello world". I added a dependency in the POM to check that external libraries are handled correctly. I don't…
seinecle
  • 10,118
  • 14
  • 61
  • 120
1
vote
1 answer

error deploying war file to payara micro

I am trying to track down the following exception, running payara micro java -jar payara-micro-5.182.jar --deplay mywar.war It seems to be some kind of internal error, some pointers on what parts of my application might be causing this would be of…
Jim
  • 14,952
  • 15
  • 80
  • 167
1
vote
1 answer

payara micro 5.182 does not deploy web application compiled with java10

When starting payara 5.182 using Java10 it throws the following IllegalArgumentException [java] Exception while visiting WEB-INF/classes/com/Service.class of size 1163 [java] java.lang.IllegalArgumentException [java] at…
bombadil
  • 21
  • 2
1
vote
4 answers

How can I dynamically set the context-root in Payara Micro?

I am building a docker image for an application that is deployed to several environments. The context-root needs to be different for some of these environments. Until now I used payara/server-full as the base image but I want to switch to the…
1
vote
2 answers

maven archetype for payara micro

I want to start a microservice project base on JEE 8 with payara micro. ( or maybe wildfly swarm). Anyway does anybody have a maven archetype for creating a microservice structure like those exist for spring boot ? A complete structure containing…
OmiD
  • 231
  • 2
  • 4
  • 14