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

EJB update bean property at runtime

I have a bean that contains some web client implementation that can be REST or SOAP: @Stateless public class Service{ private Client client; @PostConstruct public void init() { this.client = new RESTClient(); } } Is there a way that I…
bxacosta
  • 49
  • 1
  • 5
1
vote
1 answer

WebSphere Application Server's support for Jakarta EE

Since Oracle donated Java EE to Eclipse Foundation, Java EE has evolved with a new name, Jakarta EE. In addition to the new name, the specification and API packages have also been renamed, for example from javax.servlet to jakarta.servlet. This will…
telle
  • 609
  • 2
  • 6
  • 18
1
vote
1 answer

Jsp page return "The superclass "jakarta.servlet.http.HttpServlet" was not found" error

I was working with sample spring project , and all of the sudden the Jsp pages starts to complain about absent of "jakarta.servlet.http.HttpServlet". Im not using any type of Jakarta feature. My web service is Tomcat 9 and for JSP im using…
Ahad Porkar
  • 1,666
  • 2
  • 33
  • 68
1
vote
1 answer

Query#getResultList() always returns a 1 sized list for a specific entity

This is my test method: @RunWithApplicationComposer(mode = ExtensionMode.PER_ALL) @TestInstance(TestInstance.Lifecycle.PER_CLASS) public class MyTest{ @PersistenceContext EntityManager entityManager; @Resource private…
cidra
  • 374
  • 1
  • 4
  • 16
1
vote
1 answer

Is a @SessionScoped bean can be use to save information of authentication of a client?

I'm currently using a object @SessionScoped "SessionBean" to store information of the logged user and to return him a custom ID, for instance. @Path("/auth") public class AuthenticationResource { @SessionScoped @Inject SessionBean…
iriiko
  • 43
  • 4
1
vote
1 answer

GlassFish 6.2.3 does not see javax.faces.webapp.FacesServlet

I am using glassfish6.2.3 on my local computer. If I add these lines to web.xml Faces Servlet javax.faces.webapp.FacesServlet
Aleksandr
  • 17
  • 4
1
vote
0 answers

Java enterprise application missing resources?

I have a java web app (Java ee) which is Servlet with JSP. Problem im having is that sometimes when i go to browser i wont find the resources that i have added, like some .jsp files will be missing completely and/or missing parts. If i refresh…
SlimD
  • 23
  • 1
  • 7
1
vote
1 answer

How to write async POST/GET in Java Microprofile correctly

I'm a C developer who needs to create a basic async REST server (synchronous version works fine) in Java using the Microprofile (Helidon MP) framework. Here is my strategy to do this: The client should do the POST call and provide JSON objects that…
Robert
  • 13
  • 2
1
vote
1 answer

javax.ws.rs.Path how to intercept just the project root without compromising all the other paths

I have this web.xml, don't want a suffix for the url-pattern so I'm using a /* pattern:
madx
  • 6,723
  • 4
  • 55
  • 59
1
vote
1 answer

I am looking for a canocical list of maven dependensies needed to run Java EE Web Profile in Tomcat

I am trying to do something trivial. I want to run a Java EE Web Profile 8 application in Apache Tomcat 9. I have been searching the web for the last couple of days now trying to find a canonical list of Java EE dependencies needed for Tomcat. Can…
Hendré
  • 262
  • 10
  • 27
1
vote
1 answer

How to convert tomcat 8.5 to TomEE installing the required libs?

yes, I know, the answer would be "why don't you install TomEE directly?", but the only web server approved of the company is Tomcat 8.5 and I want to know if there is some way to convert my tomcat server to TomEE "manually" installing the required…
PegaChucho
  • 101
  • 2
  • 12
1
vote
0 answers

CDI events: Transactional observer called BEFORE_COMPLETION causes INSERT statements to be executed twice

I'm having problems with transactional CDI events. I want to perform some operations at the end of a transaction, before the commit. Currently I'm using transactional CDI events for this. Here ist the code that saves an entity (or gets it, if it's…
matthjes
  • 671
  • 7
  • 20
1
vote
1 answer

Payara Glassfish Server Deployment: Error when listing directory

I'm facing an issue in Glassfish server with my Java EE project. Whenever I start coding, I will start my local Glassfish server and deploy my Java EE project to the server. After the deployment is completed, I will start coding. Every time I added…
kw88
  • 626
  • 7
  • 11
1
vote
1 answer

javax.servlet.ServletException: Can't find bundle for base name resources.messages?

I'm trying to learn JavaEE, I was creating a template and I want to use messages.properties for pages title but I keep getting this error. javax.servlet.ServletException: Can't find bundle for base name…
Amr Rady
  • 1,057
  • 1
  • 12
  • 24
1
vote
1 answer

What could be reason CDI on Java EE not working

I added in pom.xml javax javaee-api 8.0 provided And normally CDI should just be provided by this dependency. I deploy my war…
Toni26
  • 489
  • 4
  • 11