payara

Date format changed in Payara 5 (Long does not work anymore ) — org.eclipse.yasson.YassonProperties#ZERO_TIME_PARSE_DEFAULTING

有些话、适合烂在心里 提交于 2021-02-09 02:45:30
问题 Using Payara 4.174 and receive in backend the date as a long, for example 1540545780000. Now, I upgraded to Payara version 5. public User { String name; Date birthdate; } @POST @Path("/user/) public void createUser(User user) { ... } json call { name: "name", birthdate: 1540545780000 } Now The call brakes with the following error: Caused by: javax.json.bind.JsonbException: Error parsing class java.util.Date from value: 1540545780000. Check your @JsonbDateFormat has all time units for class

How can we make logging sql statements in hibernate 5 and payara 5 [glassfish] work

隐身守侯 提交于 2021-02-08 10:23:21
问题 Iam forced to apply this question because everything else documented is not working. Goal: To log SQL statements as they are executed in the DB along with their bounded variables. Environment: Payara 5.182, Hibernate 5.3.2, SLF4j with Logback. It seems that the official approach is NOT to touch the persistence.xml to enable hibernate logging but to properly configure the logging framework. pom.xml <!-- Logging --> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic<

How can we make logging sql statements in hibernate 5 and payara 5 [glassfish] work

廉价感情. 提交于 2021-02-08 10:19:41
问题 Iam forced to apply this question because everything else documented is not working. Goal: To log SQL statements as they are executed in the DB along with their bounded variables. Environment: Payara 5.182, Hibernate 5.3.2, SLF4j with Logback. It seems that the official approach is NOT to touch the persistence.xml to enable hibernate logging but to properly configure the logging framework. pom.xml <!-- Logging --> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic<

Payara5 Server will not deploy: Unknown Protocol RFB

放肆的年华 提交于 2021-01-27 14:41:23
问题 In a clean eclipse environment payara5 will not deploy. I have downloaded the correct version of the server, using java 1.8 and simply added it with new server to start it. I cannot get rid of this error. The payara landing page works, however administrative console timeouts. Any help aprreciated. 2019-10-23T13:13:32.432+0200|INFORMATION: Running Payara Version: Payara Server 5.193.1 #badassfish (build 275) 2019-10-23T13:13:32.438+0200|INFORMATION: Server log file is using Formatter class:

PayaraMicro does not call @PreDestroy on EJB or ApplicationScoped

ぐ巨炮叔叔 提交于 2020-05-31 05:44:06
问题 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 as I'd like to execute some operations. Thanks for your answers! Or which services in Payara Server to deactivate to use as much as RAM as PayaraMicro? I'm using the version 5.183, and I also tried the 5.192. 回答1: Which kind of EJB did you use? In

PayaraMicro does not call @PreDestroy on EJB or ApplicationScoped

怎甘沉沦 提交于 2020-05-31 05:43:28
问题 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 as I'd like to execute some operations. Thanks for your answers! Or which services in Payara Server to deactivate to use as much as RAM as PayaraMicro? I'm using the version 5.183, and I also tried the 5.192. 回答1: Which kind of EJB did you use? In

getting error message “Failed to load resource: the server responded with a status of 404 (Not Found)”

末鹿安然 提交于 2020-05-23 10:02:48
问题 I have a simple MVC web application, which was running locally without problems 3 weeks ago. When I now open the application in Netbeans and run it, everything seems to work fine as well. However, when I go to the browser (in my case google chrome) to look at the app's frontend (at http://localhost:8080/optimizer), I get the following error message: HTTP Status 404 - Not Found In Chrome's javascript console the following error message is given: optimizer:1 Failed to load resource: the server

I can't see logs from apps on Payara 4.1, just |#] on Netbeans console tab

不羁的心 提交于 2020-04-16 04:15:49
问题 I can't find out what I modified on my Payara 4.1, that now I can't see logs (log4j2) generated by apps deployed in the Netbeans console , I changed a few logs to System.out.print or java.util.logging.Logger so I can see them `|#] |#] |#] |#]` I tried to restore some files on domain/domain1/config, like domain.xml, logging.properties but the issue persists. I remember that enabled some monitoring things related to Healthcheck , I didn't change anything in Logger Settings Here is a larger