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 do I insert values of elements that are part of the EmbeddedId in JPA?

I have a case where I need to execute an insert statement via createNativeQuery. I have an entity list I'm looping through in order to set the properties accordingly from another bean class, and then persist that data to the oracle database. The…
wheelerlc64
  • 435
  • 2
  • 5
  • 17
1
vote
0 answers

show debug level logs in console using slf4j without knowing logger implementation

I am using Lombok's @Slf4j annotation to get logger and log some data. I am NOT USING Spring boot application.yml. So, how can I show debug level logs in the console now? How should it be configured? Is there any way not to use…
1
vote
1 answer

WildFly Jakarta EE and legacy projects

We have Java EE 8 EAR made up of different modules/projects. It is currently running on WildFly 19.0.0 Final however we're thinking to move it on the latest WildFly (Jakarta EE). If I understand correctly from version 21.0.0 WildFly is 100% Jakarta…
1
vote
0 answers

Autodeploy war on tomee

I'm trying to create a working development environment using a TomEE 8.0.4 docker image. I'm packaging my project into a war with all the dependencies (those which not provided with TomEE). Then I'm copying that war to the webapps directory in the…
Alfredo Tostón
  • 327
  • 2
  • 12
1
vote
1 answer

CDI / WELD Constructor injection best practices

In a "monolitic" Jakarta-EE 8 application we want to use JSF in combination with CDI. The following graph gives an example on how the view and classes depend on each other: JSF-View -> ViewController -> BeanA --> BeanA1 …
Hendrik Ebbers
  • 2,570
  • 19
  • 34
1
vote
1 answer

NullpointerException while injecting by using @EJB

i have problems while injection my beans with the @EJB annotation - the beans are always null... First, here is the relevant part of my projectstructure. ApplEAR.ear | ├──WebModule.war (de.example.rest) └──EJBModule.war (de.example.service) So...…
1
vote
1 answer

Inconsistent behavior with creating persistence units using Apache NetBeans 12, Jakarta/Java EE, with EclipseLink and Payara?

My associates and I are experiencing inconsistent behavior when creating a simple test application using the airhacks java EE 8 project from Archetype. We create a simple POJO and label it with the Entity annotation, such as @Entity public class…
Ginzorf
  • 769
  • 11
  • 19
1
vote
0 answers

Netbeans 12 Hot Deployment to Wildfly 16

I'm having a lot of issues getting Netbeans 12 to hot deploy a JavaEE project (using Ant) to Wildfly. Surprisingly, any changes to my Java code hot deploys as usual upon save, but any changes to my web markup (.xhtml) will only show up after a fresh…
1
vote
1 answer

Payara server not starting

I'm trying out some Java EE and I can get my code to run on Glassfish 5.0.1 no problem. I want to run it on Payara but I can only get Payara Micro to work, the full and web-profile both crash and give the following errors that I cant find any info…
Xenofono
  • 169
  • 2
  • 9
1
vote
0 answers

Post get data from request body, and return json Jakarta.ws.rs

I am tasked with creating a simple web api using JAVA EE and I cant use other external frameworks such as Spring Boot. I got the get requests to work that was simple, however when I try to return a JSON to the api all I see is {} in postman or…
MrAbdul
  • 76
  • 3
  • 11
1
vote
1 answer

How to test data source injected with @Resource

I want to create some integration tests for the following class: public class MyDao { @Inject @Postgres private DataSource dataSource; getSomething() { //do something with dataSource } } I have the…
florin
  • 719
  • 12
  • 31
1
vote
1 answer

Using smallrye-open-api with Wildfly 20 and multiple war files deployed to same server

I am trying to use smallrye-open-api (MicroProfile OpenAPI) with Wildfly 20. I have multiple war files (modules) deployed on one wildfly instance in standalone mode. Is it possible to specify with war file should be covered with open api…
Kirill
  • 49
  • 8
1
vote
1 answer

WELD-001408: Unsatisfied dependencies for type Logger with qualifiers @Default at injection point [BackedAnnotatedField] @Inject

I'm having this problem while testing a JavaEE8 application with Arquillian: WELD-001408: Unsatisfied dependencies for type Logger with qualifiers @Default at injection point [BackedAnnotatedField] @Inject private…
1
vote
1 answer

How to leave the error catching to the subclass?

public class First { protected void method1() throws CustomException { int number=10/0; System.out.println("method 1" + number); throw new CustomException("Divided by zero"); } public class Second extends First { protected void method2()…
melisa
  • 37
  • 6
1
vote
1 answer

How to create correctly a Filter in Java EE 8 from Java code?

I want to create programmatically a Filter in Java EE 8 from Java Code, so I did this code in my application. Gif captures: gif capture one - gif capture two My filter is LoginFilter.java package afrominga.filters; import javax.servlet.*; import…