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

How to tell OpenAPI to use context-root of application in it's URL

I am running two different Payara Micro microservices in one cluster. The issue I have is that when I try to access the OpenAPI URL of MyApp1 like http://mylink.com/myApp1/openapi it does not work. It actually works when I use URL…
FourtyTwo
  • 734
  • 8
  • 19
2
votes
0 answers

faulty url in @DataSourceDefinition

Issue The @DataSourceDefinition provides the url property, but it will be ignored. If the the url is set to jdbc:postgres://database:5432/demo, a connection to localhost:5432 will be established. The same settings work great by setting them as…
Thomas Preißler
  • 613
  • 4
  • 13
2
votes
0 answers

How to add Let's Encrypt key/cert to Payara Micro using asadmin boot script

I successfully generated a Let's Encrypt certificate for my set using a the certbot standalone server, but now I want to move those into a payara micro container for production. Payara Micro allows me to put asadmin commands in pre/post scripts that…
John Manko
  • 1,828
  • 27
  • 51
2
votes
2 answers

PayaraMicro is not adding jdbc details in glassfish-resources.xml from WAR

I have web app I'm trying to deploy in Payara Micro's docker container, but the glassfish-resources.xml details are not added to the server's microdomain.xml. The JDBC definition is pretty basic, utilizing environment variables set from the docker…
John Manko
  • 1,828
  • 27
  • 51
2
votes
1 answer

How to use Payara Micro with xsbt-web-plugin?

I'm trying to set up a service with Payara Micro (5.191) and xsbt-web-plugin (4.0.2). build.sbt: ThisBuild / organization := "local.test" ThisBuild / version := "0.1.0-SNAPSHOT" ThisBuild / scalaVersion := "2.12.8" lazy val testService = project …
Chris
  • 31
  • 5
2
votes
1 answer

Payara Micro: turn off X-Frame-Options header

we are starting mini project based on Payara micro 5.183. The project will always be incorporated in other websites using an iframe. However, default behaviour which we are encountering is that all http responses have header set as: X-Frame-Options:…
Dagaz
  • 353
  • 4
  • 15
2
votes
1 answer

Disabling modules of PayaraMicro at startup

Is it possible to disable internal modules at startup, for example, Hazelcast, to allow a faster boot of the app? I need this in development time.
2
votes
2 answers

Payara Micro - 404 after deployment

I wanted to try this cool micro app server - Payara Micro, but Im somehow unable to deploy the simplest example possible. I've created a blank web-app maven project from netbeans, using JavaEE7 with no dependencies. Tried to compile it (nothing…
2
votes
1 answer

Payara micro - persistent timer

Is it possible to have persistent EJB timer service with Payara Micro? I would like to have two or more application instances in cluster. There is scheduled task (@Schedule) in application. I do not like all instances to run the timer, just one…
origamins
  • 78
  • 6
1
vote
1 answer

Java EE: Payara micro server not generating REST endpoints (404 error)

I am new to Java EE development. I downloaded Payara micro-server 6.2023.8 and generated a simple Java EE application through the maven archetype com.airhacks:javaee8-essentials-archetype:0.0.4…
Python_user
  • 1,378
  • 3
  • 12
  • 25
1
vote
1 answer

Adding ActiveMQ-rar to a payara micro 6.2022.2 docker image.causes error javax/resource/spi/ActivationSpec

SO I am currently getting an issue while trying to add my active mq adapter to my docker image. I am building the image from scratch and bringing in the activeMQ.rar My enviroment is image : openjdk:17-alpine maven : 3.9.0 java :…
Aidz005
  • 11
  • 2
1
vote
0 answers

Java + Microprofile - How to authenticate without authorization

Technology stack: payara micro 5.2021.1 jakarta 8 microprofile 4.1 I'm trying to create a simple microservice with authentication in place. I created a simple angular application that only uses the google API's service with the implicit flow to…
mmb
  • 11
  • 2
1
vote
1 answer

Primefaces 11 with Java 8 and Payara-micro does not work

I and my colleagues are porting an old application based on JSF 2.2 + Tomcat 9 on Jakarta EE 9 2 + OpenJDK 1.8 + JSF 3.0 + Payara 5.2022.2 as it fulfils Jakarta EE 9 specification. We changed imports, web.xml, pom.xml and after a few iterations we…
1
vote
1 answer

Deploying war to payara throws severe errors: Unable to obtain CDI 1.1 utilities for Mojarra

since this is happening in a pretty large code base and I don't know how to even start isolating the issue, I can't really give a small reproducing example. Maybe you can help me further debug the issue and step-after-step being able to provide a…
1
vote
1 answer

Inconsistent behavior with creating persistence units using Apache NetBeans 12, Jakarta/Java EE, with EclipseLink and Payara?

My associates and I are experiencing inconsistent behavior when creating a simple test application using the airhacks java EE 8 project from Archetype. We create a simple POJO and label it with the Entity annotation, such as @Entity public class…
Ginzorf
  • 769
  • 11
  • 19