Questions tagged [java-ee-8]

Use this tag for questions relating specifically to Java Enterprise Edition 8.

Java Enterprise Edition 8 (JEE8) is a specification defining a collection of Java-based technologies and how they interoperate. JEE8 incorporates features of previous versions and adds:

  • Java Servlet 4.0 API with HTTP/2 support
  • Enhanced JSON support including a new JSON binding API
  • A new REST Reactive Client API
  • Asynchronous CDI Events
  • A new portable Security API
  • Server-Sent Events support (Client & Server-side)
  • Support for Java SE 8 new capabilities (e.g. Date & Time API, Streams API, annotations enhancements)

See Overview below for a list of updated and new JSRs.

Numerous implementations are available in the form of both commercial products and open source projects. Glassfish 5 is the reference implementation for JEE8.

Information

This tag is specific for the Java EE 8 version. See the tag for general Java EE questions.

Useful links

467 questions
0
votes
1 answer

I get an error in IntelliJ when running a Glassfish server. It is a long error and I don't know how to start searching for a solution

There is only one servlet and I didn't change anything to the configurations as far as I know. This is the whole error log output. [2020-05-17T15:19:19.5 94+0200] [Payara 5.201] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=126…
Jens
  • 141
  • 10
0
votes
1 answer

How to implement a Rest endpoint along a Websocket endpoint

I want to expose an additional Rest endpoint along a Websocket endpoint. The websocket endpoint is already implemented and works, but I have trouble hitting the Rest endpoint. Any idea what I'm missing here? I expect to run localhost:8080/hello with…
oldsport
  • 993
  • 2
  • 14
  • 37
0
votes
1 answer

How to Convert a JQPL Query into a DTO?

I need to know if it's possible for me to convert my JQPL query result into a DTO. The query result is a Array of Arrays like this Json: [ [ ModuleID: number, ModuleName: string, ToolId: number, ToolName: string, Enabled:…
0
votes
1 answer

How to parse Json Array from REST post request

how can I parse JSON array to list with objects. Client from another system from which I call request is consuming in body JSON and returning in response List as JSON. When I call this request I want to get this response and convert it to…
WeerTM
  • 19
  • 1
  • 8
0
votes
1 answer

Infinitspan problem after moving from Wildfly 8.2 to WildFly11

I want to move my project from Wildfly 8.2 into newer version (i.e ver 11). Of course on WF8.2 everything works ok. After using jboss-migration-tool and trying deploy package on newer version I got everytime: 12:55:36,838 ERROR…
0
votes
1 answer

calling username on other side of j_security form?

I have this j security form but I have been stuck on how to carry the username through to the next page
0
votes
1 answer

WildFly JavaEE - Start / Stop Message Driven Bean at runtime

I have a question about Message Driven Beans (MDB). Is there a way to generate these only at runtime? I want to provide a way in my backend to start or stop receiving messages. It should be controlled via a configuration entry in the database. When…
Net_Hans
  • 115
  • 12
0
votes
1 answer

JPA add new child to child of parent causes dublicated key

I guess I don't really understand bidirectional one-to-many relations. I have a parent, a child-A and child-B class with bidirectional relations between Parent <-> Child-A <-> Child-B. I want to add a child-B to the child-B-list of the child-A, but…
André Schmidt
  • 89
  • 1
  • 12
0
votes
1 answer

Synchronize changed entities in the same transaction

I have a problem with a transactional method that changes an entity and wants to update it in some other way. At first i get the entity A from the database with the entitymanager method "get". Then i get a related entity B where A to B is type of…
Noixes
  • 1,158
  • 12
  • 25
0
votes
0 answers

Can't deploy the project because WeldStartService Failed to start service?

I use Wildfly 18 with Javaee 8, for some reason it dosen't want to deploy. I did search on internet but hopelessly didn't find any solution. Tried with different version of Wildfly but this also did not help. Does anyone know why this happens and…
itro
  • 7,006
  • 27
  • 78
  • 121
0
votes
1 answer

How to insert a date in the database in JavaEE?

I have a variable named targetdate and I would like to insert a value in my form. In my Controller, I have this: public static int addStudent(Student studentBean){ int status=0; try{ Connection con=getConnection(); …
joel
  • 21
  • 5
0
votes
1 answer

Able to hit in postman but not in java

I am not able to get a response from eclipse when integrated in java code. I am able to retrieve the response from postman/insomnia, but not from eclipse. I masked the token and the URL in this image. My current code is: public class Test{ …
Rishi Rdy
  • 185
  • 2
  • 2
  • 10
0
votes
1 answer

Why is CDI (with JAXRS) not working in Open Libety Server but works fine on Payara Server?

I have been trying to switch from Payara server to Open Liberty, however I am faced with a problem: my code works well on Payara but does not work well on Open Liberty. Here is the simplest code test to illustrate the…
Astonvish32
  • 179
  • 2
  • 11
0
votes
0 answers

JavaEE transactions - why is UserTransaction only required in some cases?

We have a JavaEE application running in WildFly (18.0.1.final). Using JavaEE 8 with JDK 11. In this application we have a few beans that persists data to a PostgreSQL database, using JPA (with hibernate). In the persistence.xml we define a JTA data…
0
votes
0 answers

how to add the method and the keywords like greaterthan... on ProductRepo extend CrudRepository

this is the entity the problem is when I want to work with a keyword I must writ it with own hands
NTIC TECH
  • 116
  • 1
  • 9