I’m using accordionPanel in Primefaces. When I refresh the page the order changes! For example: I have 1,2,3 then they become 2,3,1 or 3,2,1 ! The order of the panels changes everytime I refresh the page! So I need to know how to fix that, in order to maintain the order of panels in the same way as it is
Tag: jakarta-ee
KeyCloak – Create Realms/Users/Groups Programmatically?
We’ve decided to move to KeyCloak for our identity and access management solution, rather than implement it entirely within our Java EE web app. We’re creating a multi-tenant solution, and would prefer to create security realms/users/groups programmatically through our workflow, rather than leveraging KeyCloak’s self-registration functionality or web UI so that we can do things like grab credit card details
Eclipse irreversible Dynamic Web Module 4.0 selection; Tomcat 9 doesn’t support it
I’m using Eclipse Oxygen.2 (4.7.2) on Windows 10 with Java 8. I have a faceted project I run inside Eclipse using Tomcat. I had been using Tomcat 8.5, but on a new system I upgraded to Tomcat 9. Of course I removed the Tomcat 8.5 server and server runtime within Eclipse, and added back a Tomcat 9 server runtime. Before
Replacements for deprecated JPMS modules with Java EE APIs
Java 9 deprecated six modules that contain Java EE APIs and they are going to be removed soon: java.activation with javax.activation package java.corba with javax.activity, javax.rmi, javax.rmi.CORBA, and org.omg.* packages java.transaction with javax.transaction package java.xml.bind with all javax.xml.bind.* packages java.xml.ws with javax.jws, javax.jws.soap, javax.xml.soap, and all javax.xml.ws.* packages java.xml.ws.annotation with javax.annotation package Which maintained third-party artifacts provide those APIs? It
slf4j in library seems to ignore my log4j2 configuration
We use Log4j2 in our java-ee application. We use a library, where logging is programmed against SLF4J. In this library is a class, which logs a lot of stuff I do not want -> so I want to set LogLevel of this Logger to OFF. My log4j2.xml looks like this: But BaseSerializingTranscoder still logs errors. If I do a simple
How to resolve “Caused by: org.postgresql.util.PSQLException: ERROR: relation “employee” does not exist Position: 13″ error?
I have tried to execute the Hibernate Demo application. I’m getting the below error message. Database: PostgreSQL Hibernate Version: 5 Source code for Bean class package com.javatpoint; Test class package com.javatpoint; hibernate.cfg.xml Error Message Eclipse Project PostgreSQL Database Answer Hibernate is trying to create entity in hibernatedemo schema. You need to create that schema in database. I did not see
Jboss (6.4 EAP) to WebSphere (7.x)
I am attempting to make a EJB call from Jboss (6.4 EAP) to WebSphere (7.x). I have a working example from WebSphere (WAS) to WAS, however, the same location and lookup name returns a name not found exception. I’m currently doing this testing inside of a web application deployed as a WAR into Jboss. I do not have the EJB
Externalizing the location of logback.xml in Spring Boot using application.properties
How can I customize the location of logback.xml in Spring Boot using application.properties? I tried below but is not working. application.properties It is working if the logback.xml is located in the resource folder, but not working if it is located outside the project. It is also working if the I supply as an environment variable like Answer Below construct worked
Change deferredResult HTTP status code on timeout
I am using deferredResult on Spring MVC, but using this code, the timeout still are sending back the HTTP code 503 to the client. Any idea what else to try? Answer I ran into the same issue. My Spring MVC Controller method originally returned DeferredResult<Object>, but then I realised I wanted to control the HTTP status code. I found the
How does the validate() method in Struts 2 get the result “input”?
In Struts 2, “input” is returned when a check fails in the validate() method. I then map <result name=”input”> in struts.xml for the appropriate page. I am just wondering how it gets the “input”, which is a String when the validate() method itself returns void? I would like to understand this concept. Answer The validate() method itself returns nothing (void).