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

Use different persistence.xml in NetBeans depending on PROD or TEST

I have a JEE / Maven project with a number of entity classes and session beans. It builds and I can use the EJB module from several web modules with JSF and so on. The module uses the data connection defined in the Payara server. Now i want to build…
Kim Gabrielsen
  • 435
  • 2
  • 6
  • 21
0
votes
1 answer

Switch between JNDI names for databases in PROD and TEST

I'm working on a Maven EJB module. My EJBs are all using a persistencecontext like this: @PersistenceContext(unitName = "dk.mycontext") private EntityManager em; It works really well. Problem is when i want to change from testing to actually deploy…
Kim Gabrielsen
  • 435
  • 2
  • 6
  • 21
0
votes
2 answers

Arquillian with Payara Micro connector 1.1: NullPointer

I can't get this simple test to work with Arquillian and Payara. I have the templates from the pyara blog (Blogpost) and I have no idea what the problem is. POM.xml
Krukrax
  • 1
  • 3
0
votes
1 answer

Payara MicroProfile 5.191 intermitted "converter not found" after clean, compile, package, run

I've a Java EE 8 web project (war) with a JSF page that uses a converter. When I try to load that page (after mvn clean compile package and java -jar payara-micro-5.191.jar --deploy rbooking.war) "sometimes" the converter class was not found. To…
giates
  • 301
  • 4
  • 15
0
votes
1 answer

Error using RESTEasy Multipart when I deploy

I added RestEasy to pom.xml (Maven) for I use the Multipart for I can update a Excel file by POST request. I'm trying to get the data from Excel File to a InputStream. The erro is: "Cannot produce an instance of class…
João Rodrigues
  • 55
  • 1
  • 1
  • 12
0
votes
1 answer

Is it possible to open JSF page with Payara Micro?

I tried to start Payara Micro server. Firsly, I wrote it as java code, like this. PayaraMicro payaraMicro = PayaraMicro.getInstance(); payaraMicro.bootStrap(); It run, but with 404 error (I don't know why also). After I also run jar file in…
0
votes
2 answers

Mixing CDI and EJB results in error at start

we have mixed the usage of CDI and EJB in our application. At startup, we receive the error Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped. We don't…
user1414745
  • 1,317
  • 6
  • 25
  • 45
0
votes
1 answer

Swagger on a eclipse microprofile application

I have a java microprofile application that I want to add swagger to. The application has a "custom" Application class @ApplicationPath("/api") public class RestApplication extends Application { public RestApplication() { Swagger…
munHunger
  • 2,572
  • 5
  • 34
  • 63
0
votes
1 answer

Payara Micro ConfigProperty "payara.instance.https.port" not working correctly

Currently I use payara-micro-4.1.2.174 and microprofile-config-api.version 1.2.1 and injected follow: but always get the http Port and not the https port. "@Inject @ConfigProperty(name="payara.instance.https.port") int httpsPort;" Why am I getting…
0
votes
1 answer

How to bring SOAP capability to payara/micro in EJB project

I have an EJB project providing webservices (both SOAP and REST) running inside a container with payara/micro as base image, since payara/micro does not come with JAXWS(SOAP support) feature out of the box, however, by…
jonesir
  • 33
  • 6
0
votes
2 answers

Is it possible to create a NetBeans project to run PayaraMicro?

I use NetBeans to create Payara Server normal Java Web projects. But now I would like to run a new Java Web project using Payara Micro. Today, I'm using a "main class" and I need to open this class, type Shift+F6 to run, but it would be great if…
0
votes
2 answers

What is the format of the file serving as the operand to the --systemProperties command line argument?

When running Payara Micro, you can use the --systemProperties command line argument to specify a file containing system properties to set. What is the format of this file? As an example (using Payara Micro 172), if I create a file called…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
0
votes
1 answer

How can I remove the Server header in Payara Micro 172?

I'd like to remove the server header from Payara Micro's output. For example, it reports this: HTTP/1.1 200 OK Server: Payara Micro #badassfish I'd like to get rid of that Server line. I see that issue 32 provided the capability in theory to…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
0
votes
1 answer

How does Payara Micro determine its logging format (it differs from that specified by default logging.properties)?

Here is an example of running Payara Micro 172 from the command line. Note its log format: LANELSON$ java -jar ~/Downloads/payara-micro-4.1.2.172.jar [2017-08-06T10:47:56.814-0700] [] [INFO] []…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
0
votes
1 answer

JAX-RS: serializing a POJO fails on payara micro

After moving our application war from Glassfish3 to a deployment with Payara Micro, the JAX-RS serialization (jersey + jackson) doesn't work any more. Thanks to Adam, we solved the issue with serializing pure collections, we now encounter similar…
Matthias Simon
  • 388
  • 5
  • 13