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

I have three images I need to insert in three sheets using Poi Apache but all 3 images get inserted in the last sheet

I have three images I need to insert in three different sheets by using the Poi Apache library but all 3 images get inserted in the last sheet, please advise me what needs to be done to insert the images in different sheets. Help is appreciated.…
VyTcdc
  • 986
  • 10
  • 32
1
vote
2 answers

Is faces-config.xml and web.xml needed nowadays?

I have been studying JavaEE8 and practicing with some projects, understanding the new technologies like Servlet 4.0 and JSF 2.3. I have read in many forums and pages, in some I see that they say that web.xml and faces-config.xml are not necessary,…
David Ferreira
  • 1,233
  • 17
  • 24
1
vote
2 answers

sending mail with javamail throws NoSuchMethodError: sun.security.ssl.SessionId.checkLength

My Java ee 8 webapp is using javamail 1.6.1 to send emails via gmail. I'm running it on Glassfish 5, Mac os High Sierra, and Glassfish 5 is set to run on jdk1.8.0_20 and I start it from Netbeans 8.2. Here's the snippet where it's being…
Henrique Ordine
  • 3,337
  • 4
  • 44
  • 70
1
vote
1 answer

Prevent Wicket 8 AjaxEventBehavior onChange to NOT SUBMIT forms on child pages

I`m using Wicket 8 and i have a big problem: I Have an abstract BasePage, (HomePage extends BasePage) and (LoginPage extends BasePage) I am using BasePage to add a navigation bar to all pages on which there is a DropDownChoice to change the…
1
vote
0 answers

How to initialize a lazy ServletRegistration in Java EE

I have a ServletContextListener and I'm running a JSF 2.3 application on a Tomcat 9 container. All is good however I need to have access to the FacesContext when the context is created. As I am not using a deployment descriptor, so I am not…
Ali Bassam
  • 9,691
  • 23
  • 67
  • 117
1
vote
0 answers

In GlassFish 5, EJB is not injected into Entity Listener

I'm currently working on a web app that uses Java EE 8 and GlassFish 5. One of the app's entities has fileds that stores when the entity was created and modified the last time and by whom. This entity is annotated with an entity listener, that…
parysto
  • 11
  • 3
0
votes
0 answers

oracle.sql.BFILE cannot be cast to oracle.sql.BFILE

After reading one and once again oracle's documentation and not sure why I having this exception Caused by: java.lang.ClassCastException: oracle.sql.BFILE cannot be cast to oracle.sql.BFILE @Inject @OracleProduction private EntityManager…
jthmiranda
  • 73
  • 1
  • 7
0
votes
0 answers

OpenWebBeans throws NoSuchElementException java ee

I created the configuration of OpenWebBeans as indicated in the video tutorial, but for some reason I get a NoSuchElementException exception. Why can't I find Bean's name? How to fix it? project structure public class MyTag2{ public static void…
0
votes
1 answer

Pac4J: Custom ForgeRock OAuth2 with UI and API

We use a custom product in house called https://www.forgerock.com/ ForgeRock and it supports Oauth2. Following the Pac4J code base I was able to create a custom ForgeRock Client. public class ForgeRockClient extends OAuth20Client { public…
Melloware
  • 10,435
  • 2
  • 32
  • 62
0
votes
0 answers

cannot download and install plugins in netbeans ide 8.0.1

Getting following error while trying downloading or adding plugins: Unable to connect to the NetBeans Distribution because of Zero sized file reported at…
0
votes
2 answers

RESTful Endpoints Not Found on Wildfly

I am trying to configure RESTful endpoints on an existing Wildfly Java project that to this point has been running as a Kafka consumer / producer. My experience has previous been using Thorntail, but either way, I've always used RESTEasy's JAX-RS…
0
votes
1 answer

KSQLDB Java EE Wildfly : NoSuchMethodError on every query

Every time the executeQuery hangs and throws this exception. I tried this in a project with a simple main() function without Wildfly. It worked there. test method public void test() throws ExecutionException, InterruptedException { Client client =…
G33RY
  • 141
  • 1
  • 2
  • 10
0
votes
1 answer

JSF classpath resolution

I started to work on a legacy jsf code which contains duplicated class and jsf names in different packages and different wars, of course. One for the operators, the other for the customers. I would like to know that it's working by accident or the…
Jónás Balázs
  • 781
  • 10
  • 24
0
votes
0 answers

Payara/Glasssfish 5 Authorization Issue

I have a legacy Java EE application deployed in GlassFish 5.0.1. It uses a custom realm to authenticate users. When logged in and trying to access a protected resource it always throws a 403 error. The application was running on Java EE 7 and…
chanafdo
  • 5,016
  • 3
  • 29
  • 46
0
votes
1 answer

Implementing multi-tenant authentication with Pac4J and OpenID Connect in JavaEE

I am currently working on implementing a multi-tenant application in JavaEE, where I am using Pac4J as the authentication framework and an OpenID Connect Identity provider. Each tenant in my application is identified by a unique identifier provided…
finwes
  • 13
  • 4