29,346
questions
0
votes
0
answers
44
views
Javax.xml v Jakarta.xml [closed]
I have a Java 8 project which has been in production for several years, the micro service connects with a third party jar to perform some tasks and sends back information.
Lately the third party had a ...
-1
votes
0
answers
12
views
JSF OCPSoft automatically redirect request of unwritten URL to rewritten one
we are using OCPSoft Rewrite library to create pretty rewritten URLs. This works great and as expected but we now want to redirect the original unwritten URL to its rewritten since the same resource ...
0
votes
2
answers
53
views
How to Provide Runtime Parameters to a Custom Annotation's Interceptor in a Jakarta EE Project?
I'm working on a Jakarta EE project where I have a custom annotation and an associated interceptor. The annotation is used to execute some logic, and it works as expected as a standalone. However, I ...
0
votes
1
answer
38
views
How to process authentication failure with Jakarta Security
I'm attempting to implement a simple form based authentication based with Jakarta Security 3.0.
A (very) minimal (but working) code shows the process: loginout.xhtml login calls LoginOutBean login() ...
0
votes
0
answers
28
views
How to make CDI work in JerseyTest with Jakarta EE?
This setup works fine when running in Glassfish, but I get errors when running tests.
My setup is this:
UserRepository.java:
@ApplicationScoped
public class UserRepository {
@Inject
private ...
-5
votes
1
answer
139
views
How can I resolve java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter [duplicate]
I'm trying to run Spring Boot code in Java 17, but I keep getting this error:
2024-08-25T02:31:25.462+02:00 ERROR 21868 --- [fintonic-oauth] [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] :...
0
votes
1
answer
58
views
Error handling in Microprofile GraphQL on Openliberty
I am struggling with finding the right approach to handle exceptions being thrown in my service layer so that the GraphQL response includes a meaningful error message. I know that server errors should ...
0
votes
0
answers
29
views
Does Oracle JDBC Driver support Jakarta XA Transactions?
Is there a version of Oracle JDBC driver that supports Jakarta transactions (using the jakarta.transaction package rather than javax.transaction)?
I'm trying to build an XA, 2 Phase Commit solution ...
0
votes
0
answers
32
views
Cannot Unmarshel metro config file jaxws-rt-4.0.3.jar/META-INF/jaxws-tubes-default.xml
I am migrating a cmis project from jdk1.8 to jdk17 (using jboss8),
as javax is no longer supported, I have changed the corresponding dependencies to jakarta, and upgraded jaxws-rt-2.3.jar to jaxws-rt-...
-1
votes
0
answers
20
views
List jakarta packages for migration to tomcat 10 [duplicate]
in the network i don't find this information.
I need to find the complete list of packages migrate from javax.* to jakarta.*?
I read for example that javax.xml.* is a not package migrate, instead ...
0
votes
0
answers
22
views
Does Jakarta ee 10 and EJB specifications are inconsistently?
I am migrating from JEE 8 to Jakarta 10 .
I read on JakartaEE 10 spec that Embeddable EJB Container was removed and there is a reference to Jakarta Enterprise Beans 4.0 describing the usefull feature ...
0
votes
0
answers
31
views
jakarta libraries in tomcat 8.5.100 [duplicate]
I'm migrating a webapp to tomcat 10.1.
I try to deplay the webapp in the old tomcat 8.5.100, and i get this error
Caused by: java.lang.ClassNotFoundException: jakarta.servlet....
1
vote
0
answers
40
views
"java.sql.SQLException: Operation not allowed after ResultSet closed" in a @Scheduled Timer
I'm on Wildfly 30.0.1.Final.
I have a @Singleton bean with no @ConcurrencyManagement annotation (i.e. container-managed). One of its methods is annotated with @Schedule(hour="*", minute=&...
0
votes
1
answer
25
views
GlassFish 4.1 CPU usage increase
Good morning, I would greatly appreciate your help as I am quite lost. For approximately 4 to 5 years, I have had an ERP software running on GlassFish on an AWS EC2 instance. A little over a month ago,...
0
votes
1
answer
47
views
Access `http.port` for integration test launched interactively in open liberty dev mode
PROBLEM SOLVED -- FOR SOME REASONS ITS NOT OCCURRING ANYMORE
My JEE OpenLiberty integration tests should look up the port and application context root dynamically, such as:
String port = System....
0
votes
0
answers
11
views
tomEE Jakarta ws rs exception mappers can catch RuntimeException, but not Exception
So I have this exception mapper, that is currently not working:
package x.y.z
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.Provider;
@...
1
vote
0
answers
43
views
How to specify the jakarta classifier for PrimeFaces in Ivy?
I'm trying to use the primefaces-jakarta version of PrimeFaces in my project. In Maven, I can easily specify the classifier like this:
<dependency>
<groupId>org.primefaces</groupId&...
0
votes
1
answer
31
views
Set language for Open Liberty logs running with Maven plugin
I have a Jakarta EE project based on Maven and use the openliberty-runtime plugin to be able to directly start the application in dev mode.
It works, but the log messages are German, since that is my ...
0
votes
0
answers
11
views
How to bundle JSF pages in a separate Web Module in Jakarta EE9? [duplicate]
I am developing a Jakarta EE9 web application with maven. I wonder if it is possible to separate a set of JSF Pages together with CDI Beans in a separate module that can be reused in other Web ...
0
votes
0
answers
93
views
Application.getResources() is null or {0} is not a valid data source
Previously myApp ran on Payara 5-2022.5 Community Edition with Jakarta EE8, java 8, and Hibernate 5.6.15 with multi-tenancy. And no any error when starting from Netbeans 22.
I converted myApp from ...
0
votes
0
answers
25
views
How to implement Shiro2CryptFormat in Shiro 2
Does anyone has the solution how to implement Shiro2CryptFormat in encrypting? Below codes are from V 1. I just upgraded from Shiro V 1 to 2.0.1. And prefers to use the new Argon2. When changing from ...
0
votes
0
answers
26
views
How to completely disable EJB timers annotated with @Schedule?
The app has a bunch of EJB annotated with @Schedule.
Is there a way to completely disable them?
I am using Wildfly 26.
Ideally I would like to disable it using jboss-cli. Or configure via standalone....
0
votes
0
answers
66
views
With MapStruct, every componentModel field option is read as Default
It's not important if I put cdi, jakarta or even spring.
The compiler only read "default".
I nead jakarta.
@Mapper(componentModel = "jakarta-cdi")
public interface DepartmentMapper ...
0
votes
0
answers
29
views
RESOURCE_NOT_FOUND while using Bootsfaces 1.6.0-SNASPHOT on WIldfly 31
I am currently trying to upgrade a java facelet thats using Bootsface to jakarta and i ran into the problem that in the deployed app.xhtml a script is refered by
I am using bootsfaces 1.6.0-SNAPSHOT ...
0
votes
0
answers
41
views
class org.hibernate.cache.jcache.internal.JCacheRegionFactory cannot be cast to class org.hibernate.cache.spi.TimestampsCacheFactory
I am trying to learn Hibernate and while follwing the tuterial the second level cache he is using is not working any more and when trying to find options I could not get to a solutions here is what my ...
0
votes
1
answer
51
views
Jax-RS app with Payara server dosen't serialize Color via custom Serializer
I'm developing JAX-RS based application and Payara server. I want to serialize build in java Color class to String format: color = "RcolorValu, GColorValue, BColor value". For example in ...
1
vote
0
answers
76
views
What can cause the HTTP status 404 when running a Java EE web application in IntelliJ IDEA?
I'm trying to create a simple Java EE web application in IntelliJ IDEA according to this tutorial. I have made sure that everything necessary is installed on my computer (IntelliJ IDEA Ultimate incl. ...
1
vote
1
answer
31
views
Are fields inside custom ConstraintValidator thread safe
I have following custom ConstraintValidator:
public class FileNamePatternValidator implements ConstraintValidator<FilenamePattern, FileUpload> {
String regex;
@Override
public void ...
0
votes
0
answers
34
views
Access OCI Object Storage with GlassFish 7.9
I am doing an application using GlassFish 7.9, and Jakarta EE 10, to upload some images to an OCI bucket, but it is not working because of a certification error.
jakarta.ws.rs.ProcessingException: ...
0
votes
0
answers
115
views
SOAP webservice with Spring boot, Java 11 and JBOSS 7.4
in our project, we are using Spring boot 2.7.11 with Java11 (Jakarta EE instead of Java EE) to develop a SOAP web service (this is required from the consumer side to stick to SOAP instead of REST) ...
3
votes
1
answer
75
views
@LdapIdentityStoreDefinition read bindDnPassword from environment variable or property file in WildFly
I am having a challenging time achieving a security common pattern of loading secrets from an environment variable or a properties file. I am tring to load the password of an openLDAP admin user in ...
0
votes
1
answer
194
views
org.hibernate.resource.beans.container.internal.NotYetReadyException: CDI BeanManager not (yet) ready to use
I am facing an issue while upgrading my BAS application from Java 8 to Java 17.
I have also upgraded hibernate from 5.3.29.Final to 6.5.0.final
I am using OpenLiberty version 24.0.0.4 with this ...
0
votes
1
answer
36
views
No output from the Interceptor when using InterceptorBinding
I am learning Interceptor Binding using annotations. The version is Java 11, and Jakarta EJB 4. The server is GlassFish 7. There is no deployment descriptor and annotations archive all requirements.
I ...
0
votes
0
answers
29
views
Eclispse Store & Wildfly Cluster / Infinispan
I am looking into suggestions how to set up a wildfly cluster running with Eclipse Store as a "backend".
There is a working example for (single-node) wildfly, but my problem is how to use ...
0
votes
1
answer
24
views
JavaFX cannot consume API
I created a JavaFX17 app with JakartaEE10 using Maven Shade. It runs correctly on NetBeans>run, but when double click on the shaded.jar it runs but I cannot login. I use nonce for logging in. It ...
0
votes
0
answers
14
views
JSF3 Bootstarp 5 unwanted tag <div id="javax_faces_developmentstage_messages"></div> corrupting the whole page layout
Web page screenshotI am developing a JEE9 application and have created JSF Template (using Bootstrap5) first with IDE (Netbeans 17) and then manually. As the attached screenshot shows the layout is ...
0
votes
1
answer
112
views
jakarta @Nonnull annotation not working in intellij
below code should throw an exception
import jakarta.annotation.Nonnull;
public class test89 {
public String processString(@Nonnull String input) {
// Your method logic here
...
1
vote
0
answers
77
views
Call to REST WS Fails with javax.crypto.AEADBadTagException: Tag mismatch but succeeds in curl and Postman
I am calling a GET JSON REST web service from a J2EE 10 application running on Payara 6 that works fine with curl (from the same instance) and postman (from home PC) and also works fine and ...
0
votes
0
answers
137
views
Why does langchain4j openAI api breaks while using in a Jakarta EE Rest web app?
I am new to Jakarta EE and I am trying to build a rest based chatbot using openAI apis with langchain4j.
@Path("blockChat")
public class BlockChat {
private OpenAiChatModel chatModel;
...
1
vote
0
answers
93
views
PrimeFaces 13 tags not correctly rendered PrimeIcons
I updated primefaces 12 to primefaces 13.0.6-jakarta. Configuration in faces-config and web.xml are correct. I have my own renderers in faces-config. Now I see that in every page header frames, text ...
0
votes
1
answer
56
views
Tomcat v9.0 server is failing to start on eclipse EE
Tomcat 9.0 server is failing to start if I create a servlet and servlet mapping in web.xml file, If I removed the servlet and servlet mapping on web.xml file server is running ?
Why that happens ?
I ...
0
votes
0
answers
55
views
Add jar exclusion to OpenEJB excludeList from WAR or JAR at build time
I am deploying a WAR bundled with a library JAR-with-dependencies (aka fat jar).
I am excluding the jar from OpenEJB deployment because it has no beans that need to be deployed. It only contains ...
1
vote
1
answer
25
views
problem in running servlet by click on button in jsp file using json parameters
When I click on the button in index.jsp, the servlet dosen't run.(Nothing actually happens)
I installed jdk17 and intellij and tomcat9.
All thing I do is: When I run the project in chrome the address ...
0
votes
0
answers
157
views
can we use jakarta.jakartaee-api version 8.0.0 with springboot 3.0.1.0.1 and openjdk 17
I have a legacy project which is using legacy servlets but I need to migrate it. With minimal changes is it alright to use jakarta.jakartaee-api version 8.0.0 with springboot 3.0.1.0.1 and openjdk 17 ...
3
votes
1
answer
367
views
Access Kotlin class from Jakara Faces 4.0 XHTML
I had been using Kotlin (1.4.10) with JSF (XHTML) on WildFly (15.x -> 20.x) successfully to ~December 2018. Using Java EE (8) with JSF.
I'm now migrating an existing working Jakarta (Java) EE (10.0....
1
vote
1
answer
81
views
Getting the IP address inside the interceptor
I am creating a Quarkus web application with Jakarta EE. I have some @GET and @POST methods and I want to log their usage. For this I am using an interceptor like this:
@Loggable
@Interceptor
@...
0
votes
1
answer
41
views
Jakarta EE 8 JTA transaction aborded after 2 minutes
I'm developping with Apach Netbeans 16 and Glassfish 6.2.5 and everytime when I have a transaction that take more thant 2 minutes, the transaction is aborded with this error :
A system exception ...
0
votes
0
answers
49
views
Wildfly 22.0.1 failing to deploy WAR that uses @Stateless classes
I am getting a strange error on Wildfly where it is not deploying a WAR file.
My exact setup is per the below:
OS : Windows 10
JDK : Amazon Correto 17.0.11.9.1
WildFly : 22.0.1.Final
IntelliJ : ...
0
votes
0
answers
70
views
Debugging cause of 404 (not found) response from Jakarta RS services on JBoss EAP 8.0
I’m migrating our web application from JBoss EAP 6.4 to JBoss EAP 8.0. This involves updating quite a few dependencies and making multiple configuration changes. The migration has not gone well.
My ...
0
votes
0
answers
140
views
Exclude implicit modules in jboss-deployment-structure.xml does not work
We have an application that is currently running on jboss 8 after a migration from java 11 to java 17. The problem is that we currently have some unit tests failing and through debbug we understand ...