Questions tagged [payara]
Payara is a drop-in replacement for the open source GlassFish Application Server
629
questions
5
votes
3
answers
23k
views
IntelliJ - Remote debug - Unable to open debugger port
I am using IntelliJ 2017.3 with Payara 4.1.2.172. I used to just start the server from the command line had a Remote Debug running on port 9009, and everything used to work fine.
Then I set up an ...
1
vote
1
answer
69
views
Firebird JDBC connection pool validation on Payara server
After a Firebird database crash the connections of the JDBC pool become invalid. (We have to flush the pool manually.) A good concept might be to use jdbc connection pool validation.
Connection ...
-1
votes
0
answers
16
views
An Error Occurred: Exception [EclipseLink-4002]
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.11.payara-p1): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: java.lang.reflect....
2
votes
3
answers
708
views
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. ...
0
votes
0
answers
24
views
Using Kafka with Payara/Glassfish
Has anybody connected Kafka and ACL to a Payara/Glassfish server that uses declared security annotations like @DeclaredRoles @RolesAllowed?
I’m interested in the translation/connection from the ACL’s ...
1
vote
0
answers
23
views
call a SOAP web service that doesn't exist
I have deployed a WAR file with SOAP endpoints and created a handler to detect any call for all web services that the client may call. I want to detect the nonexistent web service but unfortunately, I ...
-1
votes
0
answers
19
views
Applications freezed after hazelcast WARNING logs
I have some JAVA web applications deployed on a Payara Full web server running in a docker container, sometimes I found these applications freezed (No logs or activity).
Looking at the web server logs ...
1
vote
1
answer
104
views
CDI not available exception deploying a SpringFramework application to Payara
I have a very simple java webapp with a Hello World servlet. It deploys fine. But, when I add the dependency for SpringFramework 6.0.0 WEB jar file, I get two errors in the Payara (most recent version)...
0
votes
2
answers
46
views
Payara 5/6 and SpringFramework
I've come to the conclusion that the Spring Web MVC is not compatible with Payara 5 and 6. I have an application that uses Glassfish 3, Spring Web MVC, and EclipseLink JPA. I intend to upgrade the ...
0
votes
0
answers
11
views
What's the last stable version of CDI/Weld we can use with latest Payara 4.x Server?
I use Payara Server 4.1.2.174 #badassfish (build 192) with default CDI/Weld 2.4.5 (Final),
but I know there is newest versions of CDI/Weld. Is there a reliable new version of CDI/Weld
to work with ...
0
votes
0
answers
52
views
Vaadin Flow 24.0.0.alpha7 doesn't work with Payara Micro
I tried to run Vaadin Flow 24.0.0.alpha7 (because it supports Jakarta EE 9) on Payara Micro but Vaadin servlet didn't deploy.
I believe Payara Micro 6.2022.2 should support it theoretically however ...
0
votes
1
answer
47
views
Using Vaadin Flow with other servlets in Jakarta EE environment
I would like to use the Vaadin Flow along with other servlets in Jakarata EE environment, but I can't to do so because Vaadin intercepts all requests to "/". I tried to add the following ...
0
votes
1
answer
397
views
JDBC Connection Pool Payara 5 with JDK 17
I am testing payara 5 with jdk 17.
But I have problems with the connection pool.
<jdbc-connection-pool max-pool-size="100" datasource-classname="oracle.jdbc.pool.OracleDataSource&...
1
vote
2
answers
61
views
Payara SSL certificate realm
I am making a web application migration from Glassfish 4.1 to Payara 6. The application uses a standalone client written in Java and runs successfully when no client authentication is set up, i.e. ...
1
vote
1
answer
527
views
Understanding what these metric names in Hazelcast mean
Could someone please help me to understand what these metrics mean in a Hazelcast environment and if it is measured in Bytes, Percentage, etc ? I am using Grafana and Prometheus to collect these ...
2
votes
0
answers
260
views
Springframework : PermittedSubclasses requires ASM8/9
I have updated the lib and dependency of my project including :
From OpenJDK 11 to OpenJDK 17.0.2
From JavaEE to Jakarta 9
From Springboot 2.7.4 to 3.0.1
The application can be built successfully, ...
1
vote
1
answer
256
views
Payara JDBC Connection Pool throws exception after applying SSL
I'm using Payara's JDBC Connection Pool for a long time and it is working great by using the following setting :
user : xxxx
password : xxxxxx
url : jdbc:mysql://192.168.0.101:3306/webdb
...
3
votes
3
answers
7k
views
Starting a payara 5 has encountered
I have build a very simple project of hello world in
Payara 5 (5.181)
JSF 2.3
JDK 1.8
CDI 2.0
Maven
and encountered a problem
Unable to start server due following issues: Launch ...
0
votes
0
answers
21
views
JNDI lookup failed for the resource: Name: SaosData, Lookup: SaosData, Type: javax.sql.DataSource
I have a backend project (this is added as dependency of others) in which the persistence.xml has several PersistenceUnit defined, I just added a new one for a new project but when I try to deploy it ...
0
votes
0
answers
61
views
triple UI loaded on Vaadin
I am trying to build a (war) project with Vaadin (23) + Spring boot (2.7+) on Payara (5.2), after a lot of configurations it finally started but the initial UI is loaded 3 times.
As you can see in the ...
0
votes
1
answer
136
views
Matching Simple IP addresses in YARA using Hexadecimal Strings
I am trying to write YARA rules to match simple IP Addresses (eg: 127.0.0.1 or 192.168.1.1). I understand that I can do it using Regular Expressions based on this open-source Github example.
However, ...
0
votes
1
answer
20
views
Persistent Payara Server Admin UI in Kubernetes
I am using payara/server-full in Kubernetes. I want to add a persistent volume so that all configuration made to the Payara server via the Admin UI is perstisted after the pod is recreated, including ...
0
votes
0
answers
13
views
How to check the JSON Serialization provider that is used by my JEE8 app
I am searching a way to log the JSON Serialization provider name that's used by my application (is it Moxy or Jackson or Json-b) to be sure that when I configure one of these providers I have a way to ...
0
votes
1
answer
221
views
Can't access an image from inside a folder when I deploy the web application
Making a simple Web Application using NetBeans and trying to use an image but wherever I put the image, it is inaccessible, except if I have in the same directory as the my index.xhtml.
Saved "...
0
votes
2
answers
922
views
Deployment exception on Payara
I have been sitting with a problem deploying an application to Payara 4.1.1.171.
The deployment goes thru up to a point where it fails with an exception.
Stack Trace below:
Exception while loading ...
0
votes
0
answers
55
views
java.lang.NoSuchFieldError: WIRE_BUS_CREATE
I just updated Spring version in my project and it required CXF Updated, I added the most recent versions
The package is correctly generated but it cannot deployed to Payara Server
<dependency>
...
0
votes
0
answers
33
views
Why jakarta.ws.rs does not generate the <grammars> of the WADL file with Payara Server?
I meet a problem on Payara (tested on version 5.2022.2 and 5.2022.4) when migrating my WS from java 11 to java 17. Previously, I was using javax.ws.rs to describe my WS (on version 5.2022.2). I ...
0
votes
1
answer
1k
views
Java 11 and javax.rmi.PortableRemoteObject
I'm using Payara 5.29.0 enterprise server which support Jakarta EE 8.
I'm trying to port the code for Java 11.
When I compile there comes error:
cannot find symbol
[ERROR] symbol: variable ...
0
votes
2
answers
145
views
Logging standard output with Payara/Glassfish
A J2ee application writes some debugging data on standard output. It runs on Payara 5.2 server which is configured to write standard streams to domains/myDomain/log/myLogName.log but I cannot find ...
0
votes
0
answers
9
views
How to force Payara4 to use older bundled JSF
Basically, I have a legacy project that runs on GlassFish3 with JSF2.0 and I'm currently trying to move the project to Payara4. However, I have not been able to deploy it, as it seems Payara4 requires ...
0
votes
0
answers
27
views
In payara-5 Jsonb ZERO_TIME_PARSE_DEFAULTING is not working as expected
I am facing an issue in the deserialization of JSON that has Date property with format '2022-09-09T00:00:00Z', the exception is the following:
Check your @JsonbDateFormat has all time units for class ...
1
vote
1
answer
63
views
Payara6 - Hazelcast error can't running payara
I install the payara 6 on the ubuntu server 20.04 on a2hosting cloud, and when i try to run the payara I got the hazelcast error, when i tried to contact the payara team they inform me that issue is ...
0
votes
1
answer
29
views
Register new user from java web application in file releam in payara server
I am creating an enterprise application and I need to add a new user in realm file. what is the best way to register a new user in a realm with the Payara server?
2
votes
1
answer
103
views
Configuring JPA/Eclipselink project with Payara Server and Postgresql
I´m trying to set up a project using Payara Server Community Edition v5.2022.2, Postgresql 14 and Eclipselink.
When I test a simple rest endpoint returning a String, everything works fine, so I know ...
0
votes
1
answer
92
views
Spring Boot Called several time on Payara Srver
I'm new to Spring and I'm trying to setup a application by using spring-boot-starter-web. The application can started successfully but I found that the application will start several times when I ...
0
votes
1
answer
15
views
update a payara jndi variable using asadmin
I want to update a jndi variable testVar on my payara server that is a string type via the command line.
I see this online site https://docs.oracle.com/cd/E19798-01/821-1751/giwlk/index.html showing ...
2
votes
2
answers
50
views
JNDI Variable change, need for restart of the payara instance?
Do I need to restart my payara instance after changing a JNDI variable to apply the changes in the application?
Or is there some kind of automatic reload mechanism?
1
vote
1
answer
211
views
netbeans 15 and payara 6.2022
I'm running Netbeans 15 on JDK 17.
I'd like to try Jakarta EE 10 so I've decide to upgrade my App server to Payara 6.2022.1Alpha4.
The app server works and I can deploy my app to it after having ...
0
votes
0
answers
53
views
An error has occurred when i deploy a project on payara 4.1
An error has occurred when i deploy a project on payara 4.1.
Somebody can help me with this?
Error occurred during deployment:
Exception while preparing the app : Exception [EclipseLink-28018] (...
2
votes
1
answer
143
views
Payara server starts for a brief time but doesn't connect
I recently had to reinstall IntelliJ IDEA, and ever since then, I've been unable to run this one app that runs on Payara. I have Payara 5.2022.3 (full) installed and the project is using java 11.
This ...
0
votes
0
answers
39
views
The server exited prematurely with exit code 1 on payara server4.1
I had a trouble when I start the payara server.
The console output is:
domain domain1. The server exited prematurely with exit code 1. Before
it died, it produced the following output:
Java HotSpot(...
0
votes
1
answer
100
views
Setting custom system-property for Payara Docker image
I am new to Docker and trying to create a Payara image for my application.
In that, I need to set a bunch of custom system-properties as server configs...like I have them in my Payara domain.xml:
<...
0
votes
1
answer
28
views
Why does JPA @TableGenerator seem to be generating the wrong SQL?
Trying to use @TableGenerator for my primary key, usually I use Auto but have discovered this may not be a great idea (with: Jakarta EE 10 Payara 6, PostgreSQL 13). I am wondering if this is a bug ...
0
votes
0
answers
60
views
Migration Glassfish 3.1 to Payara 5 - CDI and EJB injections contexts
In order to prepare a migration from Glassfish 3 to Payara 5 I created a small PoC with two endpoints that invoke a service, one through the CDI context and the other through the EJB context.
This PoC ...
0
votes
0
answers
89
views
Startup failure with Payara 5.2022.3 in IntelliJ: java command not found
After following the instruction to create a Payara run configuration, I experience an error when starting the web application:
C:\Java\payara-5.2022.3\payara5\glassfish\bin\asadmin.bat start-domain ...
0
votes
0
answers
49
views
NPE in Eclipse-Link AbstractSession.executeDeferredEvents(AbstractSession.java:1534) when using IndirectList
From time to time I get a strange NPE in Eclipse-link AbstractSession.executeDeferredEvents(AbstractSession.java:1534). It does not happen very often and so far I was not able to reproduce this.
As my ...
0
votes
0
answers
58
views
Eclipse 2022-09 (4.25.0) not compiling when save
I'm developing a Java EE application with Payara 5.2022.2
When I made a change in a file and I save it in my application. The application is automatically build to the Payara server.
But the change I ...
0
votes
0
answers
50
views
Roles mapping between Openid connect and Jakarta security
@fish.payara.security.annotations.ClaimsDefinition is the claims definition that defines the custom claims mapping of caller name and groups.
it is used inside @OpenIdAuthenticationDefinition
Question ...
0
votes
0
answers
95
views
Can't get Roles using Keyclok with Jakarta EE application
I am trying to secure a Jakarta EE application with keyclok 19.2
The application server is payara 5.2023.3
Everything is under java 17
Here is my configuration:
SecurityBean.class
@...
3
votes
1
answer
180
views
Application Configuration Properties on Payara (how to read them)
I would like to use Application Configuration Properties that you can configure using the user interface of payara (for example):
My question is: how can I access these values on java code side? ...