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
0 answers

JPA EclipseLink duplicates Entity sometimes

I have some serious issues with JPA. We are using Vaadin and JPA (EclipseLink 2.5.0) In my application i have a treebased datastructure. I get from a rest interface new data, put them into a queue, get them with another thread out of the queue and…
Mr. T
  • 21
  • 6
0
votes
1 answer

how can i resolve this issue?

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-10-17 15:44:43.968 ERROR 10460 --- [ main] o.s.boot.SpringApplication : Application run…
CISKO
  • 1
  • 2
0
votes
0 answers

ui:param value loses its value in included website (included by ui:include)

I have a JSF XHTML site which includes another JSF XHTML site (example.xhtml) via ui:include: ... ... Inside the example.xhtml site I use…
Jan
  • 1,032
  • 11
  • 26
0
votes
1 answer

The reason for the error connecting to the server GlassFish in project Intelij?

[2019-10-12T11:06:32.875+0300] [glassfish 5.0] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=45 _ThreadName=admin-listener(4)] [timeMillis: 1570867592875] [levelValue: 1000] [[ Exception while deploying the app…
0
votes
0 answers

Remove EclipseLink specific fields from JSON response

I switched from WildFly to OpenLiberty and in OpenLiberty Eclipselink is the default JPA provider. I am using the default JSON-B to convert the entity to a JSON object: @Path("test") public class TestResource { @GET public Response…
alexander
  • 1,191
  • 2
  • 20
  • 40
0
votes
1 answer

Serial transactions "thinks" that they are parallel (or my understanging of JTA is broken)

I have some transactional code: import org.hibernate.Session; void PersistRemovePersist(){ try { UserTransaction ut = getUt(); EntityManagerFactory emf = getEmf(); A = new some.Entity("A"); ut.begin(); EntityManager em =…
0
votes
1 answer

JMS Queue w/o response

I am setting up a JMS Queue and was having trouble with the service. I cannot find any examples, but also no definite no's, on sending a JMS queue and no response. I have to send an object from one module to another for an update, no response…
0
votes
1 answer

Testing persistence with Arquillian and Tomee8. Tests are passing but Exception is thrown

I am trying to test my DAO Class using Tomee8 and Arquillian. I use Hibernate as persistence provider. The tests are passing but an exception is terminating the build. The Exception: java.lang.IllegalStateException: Illegal access: this web…
0
votes
1 answer

Liberty Null pointer exception

I used open-liberty 19.0.0.6 .but this application server do not working with ssl port (https) on docker container . receive this nullPointerException : java.lang.NullPointerException at…
mah454
  • 1,571
  • 15
  • 38
0
votes
1 answer

WELD-SE + JUnit5 WELD-001409: Ambiguous dependencies for type Validator with qualifiers @Default

I want to create a unit test of a REST resource using WELD SE with JEE8 (CDI 2.0). This is the code of the REST resource class: @Path("/members") @RequestScoped public class MemberResourceRESTService { @Inject private Logger log; …
Fabrizio Stellato
  • 1,727
  • 21
  • 52
0
votes
1 answer

Async feature in Servlets

I was just going back to Servlet-3.x features and exploring it. If I am not wrong, before Servlet-3.x it was thread per request model and it would run out of threads in the pool, for heavy incoming traffic. So, with Servlet-3.x it says it is…
srk
  • 4,857
  • 12
  • 65
  • 109
0
votes
1 answer

Reloading partition step to create another set of threads

I have huge list of reports loaded into chunk partition step. Each reports will be further processed to generate individual report. But if I load 50k of reports in the partition step, which overloads the server and it gets much slow. Instead of that…
0
votes
1 answer

ActiveMQ embedded recommendations

I working on a project based on JavaEE 8 (Liberty 18.0.0.4) . I want to know : 1) what is difference between embed activeMQ on my own application or integrate on Liberty application server then use JMS api ? 2) What is recommendation about…
mah454
  • 1,571
  • 15
  • 38
0
votes
0 answers

RESTEasy returns http code 200 for requests which don't fulfill @RolesAllowed

I use WildFly 16 and am doing some experiment on Java EE 8 Security API. I have a JAX-RS endpoint like this (with some definition in web.xml, jboss-web.xml): @Path("/secured") public class SecuredResource { @Inject private SecurityContext…
Kohei Nozaki
  • 1,154
  • 1
  • 13
  • 36
0
votes
0 answers

Is there a standard way to retrieve the groups of a principal in Java EE 8?

My users are registered in a database. I use the Java EE 8 API for security and JSF. I would like to retrieve the groups directly from a principal without launching a JPA request. Is it possible?
user1643352
  • 2,635
  • 2
  • 19
  • 25