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
4
votes
1 answer

Convert JsonObject to pojo efficiently with JSON-B 1.0 (e.g. Yasson, Java EE 8)

A JsonObject can be transformed into it's corresponding class instance via: Pojo pojo = JsonbBuilder.create().fromJson(jsonObject.toString(), Pojo.class) However, it seems to be inefficient to use jsonObject.toString() as a String is an other…
Marc Dzaebel
  • 425
  • 4
  • 12
3
votes
1 answer

How to hook begin and end of HTTP requests in JavaEE?

tl;dr: How do I get the ServletResponse during ServletRequestListener.requestDestroyed? Short Version In JavaEE, I want to know when: when a request starts and when a request ends and be able to inspect the request and response objects. Long…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
1 answer

Unable to inject @Stateless EJB into CDI bean (multi-module) Jakarta EE 8

Migrating a legacy project to Jakarta EE 8 (Maven EAR build on Wildly 26) I am struggling to get the dependancy injection working from my Entities module (EJB packaging) to WAR module, the maven project structure is: -WebApp.ear …
DaveB
  • 2,953
  • 7
  • 38
  • 60
3
votes
2 answers

What is SpringBoot alternative to JavaEE CDI?

I know that JakartaEE (formely JavaEE) has support for CDI since JavaEE 6. To my knowledge SpringBoot does not have CDI but only DI. Does SpringBoot support CDI (Context and Dependency Injection) or offer some alternative to it?
pixel
  • 9,653
  • 16
  • 82
  • 149
3
votes
4 answers

Failed to execute goal org.springframework.boot:spring-boot-..:2.1.8. An exception occurred while running. null

I'm new into SpringMVC and got stuck here. I created a Spring Boot application through Spring Initializr and then created HomeController, connected it with index.jsp. It was working fine but when I added SearchController, connected with search.jsp,…
Wais Shuja
  • 113
  • 1
  • 9
3
votes
2 answers

Glassfish 5.1 server not starting after enable-secure-admin (NoClassDefFoundError: sun/security/ssl/HelloExtension)

I have a glassfish server version 5.1 on linux (ubuntu 18.04). I could start it without any issues, but after enabling the secure-admin via asadmin --host localhost --port 4848 enable-secure-admin the server seems to fail to start permanently. I…
team17
  • 796
  • 1
  • 8
  • 30
3
votes
3 answers

ClassNotFoundException: java.security.acl.Group on WildFly 19.1 using Java 14

I migrated a Web application that worked fine on WildFly 17 on Java 11 to the latest versions of both: WildFly 19 on Java 14. In the end I'm getting a ClassNotFoundException: java.security.acl.Group, probably because the Web application uses JAAS.…
Vítor E. Silva Souza
  • 1,575
  • 1
  • 18
  • 23
3
votes
2 answers

com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of : poja class no suitable constructor found

This is the POJO class of ApiError. I am trying to convert string into the following class. I am passing {"message": "success", "code":"403"} string to convertToObject method. package com.wrapper.reply; import…
saurabh landge
  • 115
  • 1
  • 2
  • 9
3
votes
1 answer

Target Unreachable, identifier resolved to null - read all other questions

I know a lot of questions are already on StackOverflow about this but I have been struggling for over 5 hours now and I just don't know what to do anymore. I hope when someone sees my situation they can point me in the right direction. I think I've…
2
votes
1 answer

CDI - Unsatisfied dependencies using @Qualifer on classes that extend an abstract class and implement an interface

In Payara 5, Jakarta EE 8, I try to inject all the qualified beans and then select a specific one using a qualifier as shown right below: @Stateless public class ScheduledTaskExecutor { @Inject @Any private Instance
nkritikos
  • 23
  • 3
2
votes
1 answer

How to hook BeginRequest and EndRequest in JavaEE?

Short Version In JavaEE, i want to know when: when a request starts and when a request ends and be able to inspect the request and response objects. Long Version In the ASP.net world, if you want to know when a request starts and ends, you write…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
2
votes
0 answers

IntelliJ cannot resolve maven plugins

I am new to Java EE and Maven, so I am not quiet sure which information are needed to see where I made a mistake. When I right click on my project and got to Maven --> Reload Project the build tab opens with following errors Cannot resolve plugin…
nixfuerdiecharts
  • 313
  • 2
  • 14
2
votes
1 answer

Java EE 8 application failed to start on Wildfly 25 after adding Extension

I am faced with a strange issue trying to create a custom Scope in my application. I made minimal sample application to illustrate the problem. Environment: Java 11 (but same with 17 either) Wildfly 25.0.0.Final build.gradle: plugins { id…
RoninDev
  • 5,446
  • 3
  • 23
  • 37
2
votes
0 answers

Can not add WebLogic to NetBeans. Add WebLogic server dialog does not accept the provided path

Context I just installed WebLogic development server 14.1.1.0.0 (using fmw_14.1.1.0.0_wls_lite_quick_generic.jar) The server is up and running, with the single default local base_domain. I've also installed NetBeans IDE 8.2 (Build 201609300101)…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
2
votes
0 answers

Axios PDF download breaks the PDF

currently, I am facing a strange behavior in vue.js with axios. My goal is to provide a download link for a pdf which summarizes the user's data. As argument I pass the user's birthdate and a unique id. Using these two parameters I look up the data,…
phe
  • 169
  • 1
  • 8
1
2
3
31 32