Questions tagged [jakarta-ee]

Jakarta EE (formerly known as Java Enterprise Edition, Java EE, and J2EE) is a specification defining a collection of Java-based server and client technologies and how they interoperate. This is the master tag. For more specific API questions, please use [jsf], [servlets], [jpa], [cdi], [ejb], etc.

Java Enterprise Edition (Java EE) is a specification defining a collection of Java-based technologies and how they interoperate. Java EE specifies server and client architectures and uses profiles to define technology sets targeted at specific classes of applications. Numerous implementations are available in the form of both commercial products and open source projects. It is also possible to assemble full or partial implementations using constituent components.

From the Java EE 6 specification:

All Java EE profiles share a set of common features, such as naming and resource injection, packaging rules, security requirements, etc. This guarantees a degree of uniformity across all products, and indirectly applications, that fall under the "Java EE platform" umbrella. This also ensures that developers who are familiar with a certain profile, or with the full platform, can move easily to other profiles, avoiding excessive compartmentalization of skills and experience.

Java EE is currently migrating to the Eclipse Foundation under the top-level project EE4J, with the intent of introducing a more open community process with a faster release cycle. Under this process, Java EE has been rebranded as Jakarta EE.


References

Specifications


Official documentation


Official tutorials


Java EE learning resources


Java EE version history


Java EE on Social Media

29439 questions
101
votes
24 answers

An internal error occurred during: "Updating Maven Project". java.lang.NullPointerException

I'm developing a Java EE web project. When I try to add a dependency, this error message appears. I use Eclipse Kepler. An internal error occurred during: "Updating Maven Project". java.lang.NullPointerException Could you help me? Thank you.
achref05
  • 1,653
  • 4
  • 16
  • 18
98
votes
7 answers

Stateless and Stateful Enterprise Java Beans

I am going through the Java EE 6 tutorial and I am trying to understand the difference between stateless and stateful session beans. If stateless session beans do not retain their state in between method calls, why is my program acting the way it…
Stanley kelly
  • 1,088
  • 1
  • 8
  • 9
98
votes
4 answers

What are the differences between Servlet 2.5 and 3?

I'm rolling J2EE code that adheres to Servlet 2.5 and I'm wondering what are the major differences between 2.5 and 3. Pointers to official Sun docs and personal experiences are most appreciated. If I shouldn't be concerning myself with 3 for the…
Max A.
  • 4,842
  • 6
  • 29
  • 27
95
votes
20 answers

How to convert map to url query string?

Do you know of any utility class/library, that can convert Map into URL-friendly query string? Example: I have a map: "param1"=12, "param2"="cat" I want to get: param1=12¶m2=cat final output relativeUrl+param1=12¶m2=cat
Ula Krukar
  • 12,549
  • 20
  • 51
  • 65
95
votes
4 answers

Servlet Filter: How to get all the headers from servletRequest?

Here is how my WebFilter looks like @WebFilter("/rest/*") public class AuthTokenValidatorFilter implements Filter { @Override public void init(final FilterConfig filterConfig) throws ServletException { } @Override public void…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
93
votes
4 answers

JPA: difference between @JoinColumn and @PrimaryKeyJoinColumn?

What's the exact difference between @JoinColumn and @PrimaryKeyJoinColumn? You use @JoinColumn for columns that are part of a foreign key. A typical column could look like (e.g. in a join table with additional…
Kawu
  • 13,647
  • 34
  • 123
  • 195
91
votes
16 answers

Java EE 6 vs. Spring 3 stack

I'm starting a new project now. I have to choose technologies. I need something light, so no EJB or Seam. On the other hand I need JPA (Hibernate or alternative) and JSF with IceFaces. Do you think that such a stack on Spring 3 deployed on Tomcat is…
Piotr Gwiazda
  • 12,080
  • 13
  • 60
  • 91
91
votes
18 answers

java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer

I am trying to build a simple hello world application for two days using Jersey + Google app engine. For simple AppEngine project I followed these tutorials and both works just…
M-Wajeeh
  • 17,204
  • 10
  • 66
  • 103
90
votes
3 answers

what is java:comp/env?

what is meant by java:comp/env ? What does the look up like : Context envContext = (Context)initContext.lookup("java:comp/env"); do ? I understand that a look-up like : (DataSource)envContext.lookup("jdbc/MyDatasource") looks up for the name…
saplingPro
  • 20,769
  • 53
  • 137
  • 195
89
votes
4 answers

Java EE Web Profile vs Java EE Full Platform

What is the difference between a Java EE Web Profile certified server (like JOnAS) and a Java EE Full Platform certified server (like JBoss AS)?
Voulzy
  • 1,157
  • 3
  • 10
  • 11
89
votes
2 answers

When to use Stateful session bean over Stateless session bean?

A stateful session bean is defined as follows: Stateful Session Beans The state of an object consists of the values of its instance variables. In a stateful session bean, the instance variables represent the state of a unique client-bean…
sheidaei
  • 9,842
  • 20
  • 63
  • 86
88
votes
4 answers

JPA Multiple Embedded fields

Is it possible for a JPA entity class to contain two embedded (@Embedded) fields? An example would be: @Entity public class Person { @Embedded public Address home; @Embedded public Address work; } public class Address { public…
Steve Kuo
  • 61,876
  • 75
  • 195
  • 257
86
votes
2 answers

What is local/remote and no-interface view in EJB?

I am trying to understand what the purpose and why we need the different client views in EJB. Could someone try to explain?
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
83
votes
6 answers

How to set up JAX-RS Application using annotations only (no web.xml)?

Is it possible to set up a JAX-RS application using annotations only? (using Servlet 3.0 and JAX-RS Jersey 1.1.0) I tried and had no luck. Using some web.xml seems required. Configuration A (working, but has web.xml configuration) web.xml ... …
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
83
votes
13 answers

The meaning of NoInitialContextException error

I am writing a client for my EJB and when trying to execute it, I get the following exception : javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an …
Attilah
  • 17,632
  • 38
  • 139
  • 202