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

JSF Client error consuming Rest Service made with JAX-RS

I try to test the methods established in the restservice (JAX-RS) with a separate client made in jsf, the test is simply to press a button and execute the method. JAX-RS service code @Stateless @Path("/personas") public class PersonaServiceRS { …
0
votes
0 answers

Consuming soap application with prebuilt string request

I have built a Soap String message without the http header on top. Is there any spring or Java EE technology that can be used to send the message to a soap server? I want to have the ability to write to the logs what is sent exactly but also hiding…
0
votes
1 answer

Using @RunAs with different file-based realm in Payara

I'm using Payara 5.194 and created a web app (war). This webapp contains a singleton which has a @Schedule which runs some method periodically. It uses @RunAs() to specify a role to use. @Singleton @RunAs("system") public class MySingleton { @EJB …
thehpi
  • 5,683
  • 4
  • 17
  • 24
0
votes
2 answers

How to write web.xml and persistence.xml to connect Java EE to DB Server

I aim something very simple - create an empty maven, download in pom - javaee-api, and then to connect this simple maven EE project - to DataBase Server - currently my local machine's MySLQ Server. I also aim to keep it simple - only with web.xml…
0
votes
0 answers

JavaEE webApp with GlassFish Server and Firebase showing java.lang.NoClassDefFoundError

I am trying to build a webapp with JavaEE and glassfish server with firebase admin sdk. The server runs properly until it crashes after a login screen with a java.lang.NoClassDefFoundError: com/google/firebase/FirebaseOptions$Builder root cause : …
itwabi
  • 125
  • 10
0
votes
0 answers

Why does Wildfly read the same JPA persistence unit twice?

I use Wildfly 18 to deploy ear of my JavaEE application. My ear consists of ejb.jar and war. JPA stuff with persistence.xml is situated in separated jar which is a dependency of war. The problem is when I deploying ear, Wildfly reads the same…
nidhogg
  • 1
  • 1
0
votes
1 answer

Oracle NoSQL Connection Pool and transaction management

There is any implementations of connection pool or transaction management on oracle nosql 19 database (Key-Value Paier)? I want to use this database on my JavaEE 8 project. but can not understand : How this database managed connection pool ? …
mah454
  • 1,571
  • 15
  • 38
0
votes
1 answer

How can I run java on Windows?

I have a problem when running asadmin. When I double click on asadmin.bat file, the command prompt starts, than it opens a java black window (also a prompt), but both windows close instantly. If I run "asadmin" command from PowerShell (I use Windows…
user10587491
0
votes
0 answers

How to fix NotReadablePropertyException: Invalid property 'freePasses' of bean class

I am developing a small application on spring mvc and I want to put conditions in my input field "free passes" so that the user cannot add a number which is not between 0 and 10. when i click on the validate button the following error is…
Nawfal bougrine
  • 83
  • 4
  • 18
0
votes
1 answer

Cannot configure Hibernate with MySQL and TomEE in Java EE (wrong dialect?)

I am learning Java EE and for 2 days already I've been struggling with configuration of Hibernate to work with MySQL database on a TomEE server in a simple Java EE web application. Hibernate version: 5.4.10.Final (core and entity-manager…
ptr92zet
  • 173
  • 9
0
votes
0 answers

ClassNotFoundException during Weblogic 12c Java 1.8 EE app deployment while jars are there

I have a Java EE application that runs properly on my local Weblogic instance, but throws seems to be Hibernate 5 related exceptions. The most recent was java.lang.ClassNotFoundException: org.dom4j.io.STAXEventReader at…
0
votes
1 answer

JavaEE/Servlet/Tomcat Project is only recognizing JSP

I made a website using java servlets and JSP as well as HTML, CSS, and Javascript for the frontend, but for some reason, suddenly, all files except JSP and servlets are being ignored. Basically, all my CSS, HTML, and Javascript files are being…
bluesquare
  • 76
  • 1
  • 8
0
votes
1 answer

Why does the liberty-gradle-plugin fail on CompileJSP?

I am trying to get the liberty-gradle-plugin to run. I created a minimal build.gradle and it still fails: plugins { id 'io.openliberty.tools.gradle.Liberty' version '3.0' id 'war' } repositories { jcenter() } dependencies { …
Apollo
  • 1,296
  • 2
  • 11
  • 24
0
votes
1 answer

After Transaction is finished, we are returning object as null

I am working on the code which is calling, transaction after transaction. @Asynchronous @TransactionTimeout(value = 12, unit = TimeUnit.HOURS) public void runExport(Long id) { /* * some stuff that takes time */ …
Suule
  • 2,197
  • 4
  • 16
  • 42
0
votes
1 answer

Why my program is generating " java.lang.NoClassDefFoundError: Hi " when running java program on eclipse

My program was running fine on eclipse as well as through command line. But now it not running on eclipse, but it is still running through the command line. Now error on the eclipse console is:- java.lang.NoClassDefFoundError: Hi Caused by:…