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

EE8 JCache annotation CacheResult doesn't work

I'm developing a WEB APP under JBoss EAP 7.2 (EE8) using EhCache as JCache implementation (JSR 107) I have this code: @Inject CacheManager cacheManager; @CacheResult(cacheName = "roles") public List get(@CacheKey String id) { return…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
1
vote
1 answer

Unable to use Infinispan embedded cachemanager on JBoss EAP 7.2

I need to use cache system on my web application under JBoss EAP 7.2 My purpose is to configure cache at application level, therefore no server configuration should be required. The cache provider is Infinispan This is my pom.xml: …
Fabrizio Stellato
  • 1,727
  • 21
  • 52
1
vote
1 answer

Fix p:inputText floating label in PrimeFaces

first sorry my bad english I'm a non english speaker,I have a small JSF 2.3 maven project that I'm using to test primefaces but currently it doesn't display multiple tags correctly an example is the p:inputText I copied the code from the PrimeFaces…
1
vote
1 answer

WeldSE with JUnit5 - Can't inject dependencies

This is my service class: @Path("/foo") @RequestScoped public class FooService { @Inject @Log Logger logger; @GET @Produces(MediaType.TEXT_PLAIN) public String ping() { return "pong"; } } In the same module I have…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
1
vote
2 answers

what's wrong with the embeded tomcat

Unable to run my project I am just learning Springboot, following instruction from internet I set up a new project, I use Eclipse Oxygen + Maven (with Embedded Tomcat) + Springboot , I followed the instruction to run the project, but got following…
Terry Yue
  • 11
  • 3
1
vote
3 answers

How to poll BatchStatus for an executing job?

I have a batch job which has to be repeated for a list of items. So I have a "parent" job which uses a batchlet step to load the list and start a child job for each id in the list. Each child job is launched using JobOperator and param using…
user3540722
  • 175
  • 1
  • 2
  • 11
1
vote
0 answers

JavaMail Error. Transport.send(message) throws java.lang.NoClassDefFoundError: sun/security/ssl/EllipticCurvesExtension

I am trying to send an email using Gmail SMTP via TLS. The code below seems correct but i get an error at Transport.send(message). I have tried all the solutions i could found over the internet including this to no avail. Here is my…
Captain A
  • 191
  • 1
  • 2
  • 11
1
vote
0 answers

Cannot deploy javax mvc application on Glassfish 5 server using Java EE 8

I have got problem with deploying my web project into Glassfish 5 server using javax.mvc-api. I am doing everything similar like in book but this doesn't work. I am using Glassfish 5 server as provider for my Java EE 8 project. My pom.xml file…
Ppyyt
  • 125
  • 2
  • 9
1
vote
1 answer

Define @DeclareRoles annotation programmatically

The JAVA EE @DeclareRoles annotation is a way to declare the list of possible roles of the users to match with the annotation @RolesAllowed. But what if our roles are stored in database and if the list of the potential roles is long ? I currently…
robinvrd
  • 1,760
  • 12
  • 28
1
vote
0 answers

Developer Studio Project setup for Java EE doesn't allow EAR version 8 with JBoss EAP 7.2 runtime

I am trying to setup a Java EE "Enterprise Application Project" in Developer Studio (version: 12.9.0.GA) with JBoss EAP 7.2 as the target runtime, but it will not allow me to select EAR version 8 (the drop-down list only goes to EAR version…
Mark
  • 11
  • 2
1
vote
0 answers

How to find JCDIWebListener class for IBM WebSphere Application Server version 9.0.0.10?

I try to start the Enterprise Application in WebSphere Application Server version 9.0.0.10 and there is missing class com.ibm.ws.webbeans.services.JCDIWebListener. Fix pack for version 9.0.0.10 didn't help for this. There still are warning that…
1
vote
0 answers

"Unrecognized SSL message, plaintext connection" when calling https endpoint from Payara5

I try to query an https endpoint using JavaEE8 from application deployed on Payara5 running on a docker container (based on Alpine Linux). The code below works fine from my developer machine, but from within the docker container I get the infamous…
dabuki
  • 1,011
  • 3
  • 11
  • 26
1
vote
1 answer

Which app-servers support multi-release JARs in WARs (if any)?

Since Java 9 there are Multi-Release JARs (MRJARS) that allow different classes for different Java versions to be included in one JAR file. I was surprised when a Wildfly 14 running on Java 11 executed Java-8-code in a JAR included in a WAR although…
hd42
  • 1,741
  • 15
  • 30
1
vote
1 answer

Injection fails under Java EE 8 - in FacesValidator

We use a GenericValidator in server calsses. The implementation is injected via RequestScoped Managed bean. When we run this example under Java EE 7 (Wildfly 13) everthing works fine. Now we try to migrate to Java EE 8 (Under Wildfly 14). Somehow we…
Dominic Weiser
  • 1,446
  • 1
  • 20
  • 32
1
vote
1 answer

Override/Disable @Startup class

I am talking of a Java EE application and a Wildfly application server. Assume I have a jar as a library that defines the following class: @Singleton @Startup class StartupService { @PostConstruct public void onConstruct() { /* do…
kedenk
  • 659
  • 6
  • 9