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

NullPointerException when using @Inject Annotation in JavaEE

I have the following service class: @Singleton public class QuotesLoaderBean { Properties quotes; Properties names; @Inject public QuoteRepository repo; public QuotesLoaderBean() { } @PostConstruct public void init() { InputStream quotesInput…
softwareUser
  • 398
  • 2
  • 6
  • 21
2
votes
1 answer

Hibernate filter does not apply for join entity

I am trying to understand hibernate filters, i thought that the filter is applied even if the query is not started from the filtered entity and can be applied if i just join to it. My entities: @Table(name = "SPM_SECTION", schema =…
ddarellis
  • 3,912
  • 3
  • 25
  • 53
2
votes
1 answer

Using BETWEEN in native query in JPQL

I tried to make a query using BETWEEN in JPQL, I already tested it in SQL and it works, but when I implemented in JPQL I got an error: Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services -…
newbie3
  • 93
  • 6
2
votes
0 answers

Compile java source code from string and save output to stream instead of a file

Hey I wanted to know if it is possible to compile java source code that is saved in a string and get and output stream of the bytecode without writing it into a file. If yes, I'd love to know how and it would save me a lot of time as I couldnt find…
tud_mb
  • 65
  • 6
2
votes
0 answers

What does apache Netbeans 12 tip for CDI "The element is not managed bean" mean?

I'm working on a new JEE8 project using Netbeans 12 as IDE and every thing work but I have a strange tip that goes like this: the element is not managed bean it has qualifiers but implements javax.enterprise.inject.spi.Extension on classes marked…
alibttb
  • 526
  • 4
  • 19
2
votes
2 answers

Context not active exception while injecting request scope bean in application scope class with Postconstruct method

when I tried to inject request scoped bean in application scope bean I got the following error. Method threw 'org.jboss.weld.contexts.ContextNotActiveException' exception. Cannot evaluate…
2
votes
0 answers

JAXB - Duplicate elements starting with lower case letter

The following test that I provide runs under WildFly 13 (JEE 7 / JAXB v2.2) correctly. Under WildFly 19 (JEE8 / JAXB v2.3) fails with the erroneous output that I attach. @Test public void test_marshaller() throws JAXBException { SPC spc = new…
Investigator
  • 1,431
  • 2
  • 17
  • 24
2
votes
0 answers

Quarkus: how to use point-to-point messaging with Artemis?

I am using quarkus version: 1.5.2.Final and the following dependency to include reactive messaging (I have a running docker instance of Artemis in between the sender and receiver project): io.quarkus
2
votes
0 answers

ID is null with GenerationType.IDENTITY although Postgres has a valid id

I read several similar posts here on SO but nothing has helped so far. I am using Java EE 8, Open Liberty 20.0.0.6 and PostgreSQL 12. I run my locally using Docker which initializes the schema with: CREATE TABLE IF NOT EXISTS PUBLIC.tab_todo ( …
Apollo
  • 1,296
  • 2
  • 11
  • 24
2
votes
1 answer

If I save variable in session scope, is it visible in application scope?

I did the following getJspContext().setAttribute("authUser", user, PageContext.SESSION_SCOPE);` In my LoginServlet and the following User currentUser = (User) getJspContext().getAttribute("authUser", PageContext.APPLICATION_SCOPE); In the other…
user13555090
2
votes
0 answers

Large number of duplicate string in memory/heapdump

I am using wildfly-9.0.1.Final on server. Allocated memory is 20 GB with UseG1GC and UseStringDeduplication(with default threshold) flag. I faced high memory usage on server, for troubleshooting I had collected heapdump. I used Eclipse MAT for…
mcacorner
  • 1,304
  • 3
  • 22
  • 45
2
votes
1 answer

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Enum

I get this error while trying to persist an entity 'UserAccount' into the database table. @Entity @Table(name = "user_account") public class UserAccount extends BaseEntity { @OneToMany(cascade = CascadeType.ALL) @JoinColumn(name =…
Vijay Kumar
  • 186
  • 1
  • 9
2
votes
2 answers

Canonicalize in kdc-options is automatically set to true in Windows

I have recently written a piece of code with JavaEE8 that authenticates users, requesting services from an application server, using Kerberos in an Active Directory domain. This includes a process which uses a keytab file to authenticate the server…
Daki
  • 97
  • 9
2
votes
0 answers

Use @WebFilter from another library without web.xml

I have a webfilter shared between all my webapps. @WebFilter(urlPatterns="/*") public class ApiOriginFilter implements Filter { @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
2
votes
2 answers

Error: A language with id 'R' is not installed. Installed languages are: []

I'm deploying a JavaEE app in a Wildfly running in a Docker container. This app uses the GraalVM to run a R script. The environment is set to use the GraalVM with Java 11, but when I execute the script, I'm getting the error: "A language with id 'R'…
1 2
3
31 32