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
1
vote
1 answer

How to read different xml files from a zip

My question is how to read file data from a zip, but actually, I have already implemented that part but the issue is I am having different files in zip (all xml) I don't want to parse those file using xml parser anyways I just want to read it,…
Amara
  • 341
  • 4
  • 19
1
vote
0 answers

EJB Managed bean parent with argument in constructor

Lets say I have a class hierarchy of Human and Student classes like this: public abstract class Human{ private final String type; public Human(String type) { this.type = type; } } @Stateless public class Student extends Human…
Jardo
  • 1,939
  • 2
  • 25
  • 45
1
vote
0 answers

Difference between javax.security.enterprise.SecurityContext and javax.ws.rs.core.SecurityContext?

I am struggling to understand when and how to use the different interfaces. They seem to be quite similar, with some minor differences in method names to dynamically check security roles or retrieve the Principal, but - as far as I am currently…
Armin Bu
  • 1,330
  • 9
  • 17
1
vote
2 answers

Hibernate Envers : How to inject SecurityContext (REST) in RevisionListener?

I have a REST API (using wildfly 20 with microprofile-jwt) so I would like to audit changes with Hibernate Envers. Unfortunately I can't get my Principal object : the javax.ws.rs.core.SecurityContext is null. So my question is : how can I inject the…
1
vote
0 answers

Tomcat 10 deploy a legacy J2EE war through manager

Following the docs on Tomcat I had no problem either migrating my war during build or deploying it in the webapps-javaee directory; the migration went just fine. But I see no option in the manager to deploy a war as legacy; if you try to do that,…
Riccardo Cossu
  • 2,699
  • 1
  • 28
  • 47
1
vote
1 answer

SPRING MVC : How to pass the radio button value which is clicked to controller?

I am using Spring MVC controller. Is it possible to set an object in the path value in a radio button ? below my form inside my jsp
Rodik
  • 271
  • 2
  • 19
1
vote
1 answer

How to use an existing ArrayList inside Lambda Expression/block?

I am new to Java 8 and was trying to rewrite an existing code snippet logic using the Java 8 features. However I am not sure how to use an existing arrayList defined outside the block to get values from it when it is placed inside the lambda block.…
1
vote
1 answer

Vaadin Lazy Loading Grid Error : java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0

I'm trying to make lazy loading on vaadin grid, but I got error java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 Here is my UI code : // Grid Account Grid accountData = new…
muhkanda
  • 319
  • 1
  • 9
1
vote
1 answer

Vaadin 14 Lazy Loading Grid Error on implement CallbackDataProvider

I have an error like this: and here is my code : CallbackDataProvider accountDataProvider = DataProvider .fromCallbacks(query -> accountServices.getAccountTable( query.getOffset(), query.getLimit() …
muhkanda
  • 319
  • 1
  • 9
1
vote
1 answer

@Inject = @Inject, is it possible?

I'm using Java EE 8 and I have next enum. The question is is it possible assign to the one injected variable the value of another injected variable within one class like on the next line? public enum CommandEnum { EMPTY_COMMAND { { …
tohhant
  • 103
  • 10
1
vote
0 answers

Is there a way to order @Path in Quarkus

I currently have a problem similar to this but in quarkus-resteasy. I have looked around and I cannot find a way to order the paths. The endpoint for getAllNotifications() is never selected, all requests go to…
FourtyTwo
  • 734
  • 8
  • 19
1
vote
1 answer

Close context implicitly in Java EE

I'm trying to implement the following code in Java EE 8 (Java 11) to access a datasource in Wildfly 20. The objective is to close implicitly the JNDI context and the SQL connection: try (InitialContext context = new InitialContext(); Connection…
ps0604
  • 1,227
  • 23
  • 133
  • 330
1
vote
1 answer

Why the CDI is not working in a singleton class

A singleton class is firing an Event but the container is not calling the CDI Event Listener. Below, the creatData() in the DataLoaderSessionBean singleton class calls the loadUsers() method and in turn the loadUsers() is firing an event, which…
Darvin
  • 148
  • 8
1
vote
1 answer

select one menu include search primefaces

primeFaces select oneMenu Show Cases has select advance .and it has one attribute ( converter ) . primeFaces Code:
1
vote
0 answers

Getting Forbidden instead of redirect to keycloak auth

Im trying to secure my java ee rest api by keycloak but if I try to access path that should be protected I got only Forbidden writen on screen and thats it. I have no errors in logs and do not know where to look for…
SiekMi
  • 13
  • 4