Questions tagged [jakarta-ee]

Jakarta EE (formerly known as Java Enterprise Edition, Java EE, and J2EE) is a specification defining a collection of Java-based server and client technologies and how they interoperate. This is the master tag. For more specific API questions, please use [jsf], [servlets], [jpa], [cdi], [ejb], etc.

Filter by
Sorted by
Tagged with
0 votes
3 answers
43 views

CDI factory design pattern with properties file

I have a interface like this : @Singleton public interface StorageEngine { String upload(InputStream inputStream); InputStream download(String fileName); int size(String fileName); ...
mah454's user avatar
  • 1,597
0 votes
1 answer
19 views

Duplicate class conflict when using jakarta.mail-api with angus implementation

My application uses the following dependencies: <dependency> <groupId>jakarta.mail</groupId> <artifactId>jakarta.mail-api</artifactId> <version>2.1.2<...
Sheldorious's user avatar
1 vote
1 answer
66 views

JBeret skippable exception thrown in ItemWriter triggers new chunk within the old transaction

Using JBeret I execute a simple job with single chunk based step which reads entries from the database, processes them and updates it. The step also defines a ChunkListener which interacts with the ...
Андрей Андреев's user avatar
0 votes
1 answer
24 views

Automatically close EntityManager in an interceptor

I have a ejb + REST application using jakarta ee 10, deployed in a Wildfly 29 server; the application uses multitenancy. When a user logs in, i have to check which database the user is going to use to ...
jmiguel77's user avatar
  • 824
0 votes
0 answers
25 views

injection of connection factory in wildfly

I am trying to create a resource adapter (outbound) and deploy it in wildfly-preview-26.0.1.Final. I have created a rar file which is deployed successfully (in the server logs I can see the tracking ...
mr mcwolf's user avatar
  • 2,612
0 votes
0 answers
18 views

Replace a Stateful EJB by a CDI bean to implement a long conversation without a long transaction

In Jakarta EE 10, I would like to replace a Stateful EJB by a CDI bean (with methods annotated by @Transactional) to implement a long conversation without a long transaction (for example to manage a ...
user1643352's user avatar
  • 2,655
0 votes
0 answers
16 views

Websocket Server is being timeout after 90 seconds

I am implementing a websocket and using jakarta.websocket.server.ServerEndPoint class to have a websocket server serving task for the client. FYI - I am working to upgrade the javax.* to jakarta.* for ...
Roopam's user avatar
  • 270
0 votes
0 answers
17 views

Does JSF have a way to get the tag handlers in the current view?

We have a JSF taglib we're using that dynamically adds components to a view. One of these components is an alternative button... the command button dynamically adds a an actual command button as a ...
Jonathan S. Fisher's user avatar
0 votes
1 answer
34 views

Why is @Specializes annotation not replacing my bean?

we have a java EE app that has a core module and some other modules. In the core module exists a scheduler, declared as follows: @Singleton @Transactional @RunAs("admintask") @RunAsPrincipal(...
Octavia's user avatar
  • 200
-1 votes
0 answers
47 views

Open Liberty: configure JAAS custom login module inside EAR application. LoginException: No LoginModules configured for AppLoginModule

I'm migrating a legacy jee application from Websphere to Open Liberty and jakarta 8. The app contains a JAAS custom login module, which is in one of the app jar files. These jars are packaged in a lib ...
user3065868's user avatar
0 votes
0 answers
27 views

Unsatisfied Dependency in ConstraintValidator

I'm working on a Jakarta 8 application which runs on Payara 5.2020.4. Its uses CDI all over the place and its working without issues. Now I want to use Bean Validation. I have created a ...
Martin's user avatar
  • 852
0 votes
0 answers
31 views

Quarkus Websockets Virtual Threads

I followed this tutorial: https://quarkus.io/guides/websockets while trying to use virtual threads. My initial assumption was that I could use the @RunOnVirtualThread annotation with the @OnOpen of ...
Jonathan R's user avatar
  • 3,672
0 votes
1 answer
82 views

How to run Jakarta EE application with embedded server?

My goal is to create Jakarta EE web application which uses embedded web server and embedded database, so it will be possible to run this webapp with single command. Currently I have an app which uses ...
Podbrushkin's user avatar
0 votes
0 answers
32 views

JakartaEE: Exception while trying to deploy application to Payara-6

I am getting following exception while deploying my JakartaEE app to Payara-6 Community server: [2023-08-23T02:44:31.487+0530] [] [WARNING] [] [jakarta.enterprise.launcher] [tid: _ThreadID=1 ...
Python_user's user avatar
  • 1,388
1 vote
1 answer
25 views

Unable to create Derby connection pool in Payara-6 server

I am trying to create a Derby connection pool in Payara-6 server. I tried creating it twice: once with vendor "Derby" and once with "Derby-30" (not sure about the differences). ...
Python_user's user avatar
  • 1,388
1 vote
1 answer
27 views

How to break on / watch for EJB deadlocks in Payara?

As established by the EJB spec, the access timeout for an EJB locked for access on concurrency management can be set via @AccessTimeout annotation. Without this annotation specifying otherwise, the ...
NotGaeL's user avatar
  • 8,344
1 vote
0 answers
64 views

JavaMail Session Glassfish

Good evening everyone, I am working on a jakarta ee project for a few days but I am stuck. Indeed, I created a JavaMail Session that I use in my project to send Mail at the start and stop of my web ...
Mouhamed Ndiaye's user avatar
0 votes
1 answer
36 views

Unable to deploy the application on web sphere. But it is deployed in tomcat

We are getting error which deploying the application on web sphere liberty server. Same application is deployed on Tomcat. Exception : An exception occurred while starting the application ONNO. The ...
SkClass's user avatar
0 votes
0 answers
35 views

Jakarta REST: empty @PathParam in GET method only works if there are no other methods

I'm using Jakarta REST API in Jakarta EE 10 and I noticed that if I try to parse an empty @PathParam in a GET method it works only if there are no other REST methods in the same class. I have the ...
Guillem Chesa's user avatar
0 votes
0 answers
74 views

Annotation @Dispose calls the method to clean up resources 2 times. Jakarta EE

I use the @Dispose annotation, which should call a method to clean up the resources created by the @Produces annotation, for some reason the inscription "cleaned" is output to the console 2 ...
Vsevolod Kasatchikov's user avatar
0 votes
0 answers
13 views

Apache Ignite compatibility with Jakarta EE

Our application needs to support Tomcat 10 which requires the Jakarta EE. When soon we get the Apache Ignite compatible with Jakarta EE.
Lakshmikantha Reddy's user avatar
1 vote
1 answer
35 views

Jakarta EE modules used in Spring

Since Spring is an open source framework and its not implements and uses the full profile of the Jakarta EE 9 modules specifications, so please list me the implemented and used modules in Spring 6? ...
Ali Alkhatib's user avatar
0 votes
0 answers
14 views

EJBContainer.createEJBContainer ConfigureApplicationException with Gradle

I'm working with the build system Gradle and using TomEE. The TomEE examples are in Maven. By porting some test cases I observed that there a some differences which I can't fix. My reserach code could ...
Clueless's user avatar
  • 173
0 votes
0 answers
31 views

Wildfly 27 - Multiple Beans implementing same Interface create conflict - looking for workaround

I'm sure I'm missunderstanding something, but here goes. I have an app with a variety of stateless beans which each implement a remote and a local interface. The interfaces are annotated with @Remote &...
derYak's user avatar
  • 1
1 vote
2 answers
118 views

glassfish 7 + jakarta ee 10 + hibernate entity manager java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager

I am trying to get hibernate working with glassfish 7 jdbc. I got the configuration of the pool right and ping is a success. I have put mysql-connector-j-8.0.33.jar and hibernate-core-6.2.6.Final.jar ...
Hendrik's user avatar
  • 63
1 vote
1 answer
48 views

openliberty integration testing with a jar file

I am trying to follow the guide here to learn to run integration tests which is exactly what we need functionality wise. https://github.com/OpenLiberty/guide-jpa-intro/blob/prod/finish/backendServices ...
Javadee's user avatar
  • 139
1 vote
1 answer
85 views

Having problems setting up Jakarta EE on Netbeans using GlassFish and Derby

I know it's pretty outdated technology but I found myself in the need of doing a project using Jakarta EE on GlassFish. I already know the answer, I just want to document my workaround for making this ...
Guillem Chesa's user avatar
0 votes
1 answer
43 views

Jakarta Faces 10 Programmatic Views

What is the correct way of adding a link to the head element of an Html document using Jakarta Faces 10 programmatic views? I have tried creating a UIOutput, but I cannot reference the CSS file in the ...
Hendré's user avatar
  • 272
0 votes
0 answers
35 views

Hibernate/JPA: Dynamically create a count Query based on another Query

Is there a JPA-specific or provider-specific way to create a javax.persistence.Query/TypedQuery from another Query/TypedQuery with the possibility to change the query parts like the Selection? ...
Warren Nocos's user avatar
  • 1,232
2 votes
3 answers
292 views

Eclipse 2023 Content Assist for xhtml files with Jakarta Server Faces 4.0

My minimal project compiles and runs fine. However I have a lot of editing to do and new dev work on xhtml pages. I noticed that Eclipse Content Assist doesn't function either on backing bean ...
Ted Spradley's user avatar
  • 3,414
0 votes
2 answers
87 views

Add smallrye-in-memory connector to Wildfly (Reduce redeployment time during development)

During development redeploy time is critical, so it would be nice to eliminate as much as possible. In my Jakarta EE 10 .war project I connected 10 channels to Kafka topics via microprofile reactive ...
Kuhpid's user avatar
  • 606
0 votes
0 answers
9 views

Is there a NID for URNs, which can be used for fully qualified class names?

Is there a NID for URNs, which can be used for fully qualified class names? I remember to have read something in the context of J2EE some years ago, but do not remember and did not find something ...
Torsten Knodt's user avatar
0 votes
0 answers
43 views

WildFly 20.0.0.1 JAX-RS Resource not found

I have the following REST Application: import java.util.Arrays; import java.util.LinkedHashSet; import java.util.Set; import javax.annotation.PostConstruct; import javax.ejb.EJB; import javax.ws.rs....
Francesco Rizzi's user avatar
0 votes
0 answers
169 views

Cannot be cast to class jakarta.servlet.http.HttpServletMapping

I am using SpringBoot 3.1.0 Java 17 Wildfly 28.0.1 CentOS 9 I can able to build the portal without any error in eclipse I have successfully deployed my SpringBoot application to wildfly. But when I ...
Pamba's user avatar
  • 776
0 votes
1 answer
78 views

WildFly27 Jakarta 10 JMS Topic queue sends message twice to same MessageBean although acknowledge() called

I have a stateful local session bean in one ear and a mbean in another ear both deployed on the same WildFly 27 standalone-full instance. I have a topic set up in standalone-full.xml: <jms-topic ...
ranxero's user avatar
  • 11
1 vote
0 answers
45 views

How to use EL in extraParameters attribute of the @OpenIdAuthenticationMechanismDefinition?

I have a problem with defining parameters for an @OpenIdAuthenticationMechanismDefinition annotation introduced in the jakarta-ee-security-api of Jakarta EE 10. My goal is to understand the correct ...
Ralph's user avatar
  • 4,518
0 votes
0 answers
32 views

A bug or a feature in JEE when sending multipart requests to a non existing Servlet?

I came across this weird behavior in JEE and I don't know if it is an intended behavior or a bug, and I would like to know more about it if any of you have any knowledge about it, thank you in advance;...
telos's user avatar
  • 25
0 votes
0 answers
43 views

Can not inject EntityManager in Arquillian Test when running on OpenLiberty

I am preparing a new template project for Jakarta EE 10, https://github.com/hantsy/jakartaee10-starter-boilerplate Java 17 Jakarta EE 10 OpenLiberty 23.0.0.5 I tried to add tests for CDI repository ...
Hantsy's user avatar
  • 8,054
2 votes
0 answers
94 views

Jakarta EE 10 - OIDC and Programatic Login?

Since Jakarta EE 10 it is easily possible to protect your web application with OpenID Connect, using the new @OpenIdAuthenticationMechanismDefinition annotation. This works perfect and is quite easy ...
Ralph's user avatar
  • 4,518
1 vote
0 answers
59 views

Migrate Java EE service to Spring Boot Rest service

Im very new to JEE and monolithic applications. I'm facing an architectural/concept problem while migrating a Java EE service to a Rest Spring Boot service. The Java EE service is part of a large ...
rwd762's user avatar
  • 31
0 votes
1 answer
170 views

415 Unsupported Media type when doing POST

I have these two classes Item and Drink. Where Drink extends Item. Both are PanacheEntities and only consists a few basic fields. Code samples of this part (I left the getters and setters out of it): @...
Jan D.M.'s user avatar
  • 2,294
1 vote
0 answers
63 views

How to use OIDC in Jakarta EE?

I have the requirement to protect my existing Jakarta EE application with an OpenID provider in one of many different environments. When searching about this topic you will find the @...
Ralph's user avatar
  • 4,518
0 votes
0 answers
118 views

How can I use Bearer Token to secure a Jakarta REST API with Jakarta Security's @OpenIdAuthenticationMechanismDefinition?

With the WildFly server and the integrated OIDC auth-method it is possible to secure a jakarta ee 10 rest api just sending a Bearer token in the Authentication Header. I have just to config it like ...
matthiaspi's user avatar
0 votes
0 answers
24 views

Why isn't my maven project appearing in Eclipse's 'Add and Remove' option for my application server?

With the newest versions of the jboss wildfly being compatible to the Jakarte EE 10 specs we updated our JEE 8 projects. In this process we updated all our components, but afterwards the newest verion ...
Sandro Kowollik's user avatar
0 votes
1 answer
50 views

Local transaction already has 1 non-XA Resource in Payara Micro Batch Processing

I have a persistence.xml that works. But when I try to do something with Batching (Jakarta Batch), it fails with the stacktrace below. [#|2023-06-01T17:54:23.626+0200|SEVERE||javax.enterprise.resource....
Maarten van Leunen's user avatar
0 votes
0 answers
10 views

changing database connection for JBatch in Payara Micro

I don't know how to indicate to Payara Micro that it should use my database for storing JBatch tables instead of the default H2Pool. (tables like jbatchCHECKPOINTDATA etc.) Almost impossible to find ...
Maarten van Leunen's user avatar
-1 votes
1 answer
70 views

GlassFish 6.2.1 throws 'java.lang.ClassNotFoundException: org.glassfish.jakartaee.jakarta.servlet.ServletContainer' while deploying JAX-RS web service

I used Jakarta EE 9, glassfish 6.2.1 server and NetBeans 14 to create a restful web service. Couldn't deploy it as got some errors in the log file of Glassfish server. The error was : " [2023-06-...
Ayush's user avatar
  • 1
1 vote
0 answers
78 views

What is difference between jaxb-impl and EclipseLink-moxy?

I was updating java 11 to java 17. i was getting some error in jaxb-impl and i googled and find another jar org.eclipse.persistence.moxy which works well with jakarta.xml.bind-api. Can anyone tell me ...
Swastik's user avatar
  • 499
0 votes
1 answer
235 views

pac4j raises "State cannot be determined" after OIDC callback and Keycloak provider

I am currently trying to use testing Pac4j (v4.5.7) along with Payara 5 (Java 8) and Keycloak 16.1.1 after a previous attempt to use the OIDC Connect client available with Payara API. I simply tried ...
Roberto Cisternino's user avatar
2 votes
0 answers
62 views

Jakarta Server Faces project templates

The jar file org.jboss.tools.common.projecttemplates_3.17 only contains templates up to jsf-2.3. Is there any templates for jsf-3.0? I’m trying to create a dynamic web project using Jakarta Server ...
Simon's user avatar
  • 21

1
2 3 4 5
589