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
1 answer

How to fix 'Unable to retrieve EntityManagerFactory for unitName null'

I am using Glassfish 5.0 with a Java Web App built in Maven framework. I have set up the Connection Pool and it is connected when you ping it. I have placed the persistent.xml file in src/main/java/META-INF with the config:
0
votes
1 answer

How can i add second resource adapter to work with ibm mq (WebSphere) and ActiveMQ (Artemis) at the same time?

I want use ActiveMQ (Artemis) and IBM MQ at the same time. ActiveMQ built-in Wildfly Application Server where was deployed my application. I want use two resource adapters, first for ActiveMQ and second for IBM MQ, but I can not configure it. Here…
rgaponov
  • 133
  • 1
  • 7
0
votes
0 answers

Error 404 instead of 403 if a page is forbidden with Java EE 8 API security

I use a @CustomFormAuthenticationMechanismDefinition to ask login and password to the users. When users are not allowed to view a JSF page, they receive a 404 error code. Shouldn't it be a 403 error code?
user1643352
  • 2,635
  • 2
  • 19
  • 25
0
votes
0 answers

javax.persistence.OptimisticLockException not wrapped by Hibernate

I'm writing a regular JEE8 application with JPA with @Version (OptimisticLock). My DAO is a CDI bean marked with @Transactional(value = TxType.REQUIRED) when an update is conflicting: org.hibernate.StaleObjectStateException should be wrapped in…
0
votes
1 answer

Create only objects used in Java EE

Given the EJB below, will the container be intelligent enough to only create the object that is used? @Stateless public class MyBean { @EJB Clazz1 obj1; @EJB Clazz2 obj2; public void run(int x) { if (x == 1) …
ps0604
  • 1,227
  • 23
  • 133
  • 330
0
votes
1 answer

CDI injection always null

Hi I'm trying to Inject an object in my code. But for some reason it will keep null. The following things I tried; Adding a PostConstruct(which isn't called...) Removing other parts of CDI to just get the first Injection working. Also checked if…
0
votes
0 answers

JPA JTA - use of EntityManager.persist() and of EntityManager.remove() on the same entity object (same entity ID attribute)

I have two methods, one that stores an entity object (EntityClass1 entity bean) using .persist() passing the EntityClass1 ID and another that is in charge to remove the entity object with the same ID. I have a configuration in which i call, in a…
tcoddis
  • 21
  • 5
0
votes
1 answer

JPA - JTA - two big problems (on .persist() and on .remove()) - MySQLIntegrityConstraintViolationException

Firstly i would like to apologize if i could not find anything about what i would like to describe that really solved my problems. This does not mean that i fully searched in the site. Although i have been spending too much time (days). I am also…
tcoddis
  • 21
  • 5
0
votes
0 answers

I am trying to connect IBMMQ with my spring boot application but the connection should be through spid(pki). any one have some idea how to do?

I am trying to write a spring boot program which will connect to existing ibmMQ. But the pain is it should be done through spid(pki) certificate. I don't know how to do that. Please help me..
0
votes
2 answers

WildFly expression variables

Is there any complete list of variables supported in WildFly web configuration expressions (eg rewrite filters)? Like %U, %h, %p...
user1050755
  • 11,218
  • 4
  • 45
  • 56
0
votes
1 answer

CDI extension dynamic update property

I read some documents about CDI custom extensions and read some sample codes like Properties loader on this links : Link-A - Link-B. I wrote a simple cdi extension like this codes . public class SystemStatisticExtension implements Extension…
mah454
  • 1,571
  • 15
  • 38
0
votes
1 answer

Disabling database transaction in stateless bean

In WildFly 14, I have a @Stateless bean that runs two selects with different connections/databases: InitialContext context = new InitialContext(); DataSource ds = (DataSource)context.lookup("jndi/to/db/1"); Connection conn =…
ps0604
  • 1,227
  • 23
  • 133
  • 330
0
votes
0 answers

How write deserializer in json-binding (java ee 8) which transforms null values to " "?

What I should write in this method? public String deserialize(JsonParser parser, DeserializationContext ctx, Type rtType) { while (parser.hasNext()) { } return ""; }
0
votes
0 answers

Required class javax.faces.FactoryFinder does not exist in selected libraries

I'm trying to create managed bean in eclipse's dynamic web project. There I need to add support for @ManagedBean annotation. I tried this way.. Right Click on Project > Properties > Project Facet > Checked JavaServer Faces > Download Library > then…
Asif Mushtaq
  • 3,658
  • 4
  • 44
  • 80
0
votes
0 answers

GET 404 - existing image not found in directory

I have found many contributions to the core problem of my question, but no adequate solution. I built a Java EE Web Application, which is based on a few HTML pages. These are formatted by the following styles.css: * { font-family: sans-serif; …
rzett
  • 193
  • 2
  • 16