Questions tagged [glassfish]

GlassFish is a Jakarta EE compatible application server from the Eclipse Foundation.

Eclipse GlassFish is a Jakarta EE open source application server.

The latest GlassFish release as of April 2023 is version 7.0.4. See the downloads page for more recent releases.

GlassFish 3.0 was the first application server to completely implement Java EE 6. GlassFish 4.0 introduced Java EE 7 support, and GlassFish 5 for Java EE 8. GlassFish is the reference implementation for Java EE JSR's (EE 6, EE 7, EE 8). GlassFish 6 implements Jakarta EE 9.1.

GlassFish 7 supports Jakarta EE 10. It compiles and runs on JDK 11 to JDK 20.

Jakarta EE 10 includes the latest versions of technologies such as:

  • Jakarta REST (JAX-RS) 3.1
  • Jakarta Faces (JSF) 4.0
  • Jakarta Security 3.0
  • Jakarta Contexts and Dependency Injection (CDI) 4.0 and more.

There is an official Twitter handle @GlassFish.

On 4 November 2013, Oracle announced an end to commercial Oracle support for GlassFish. In 2018 GlassFish moved from Oracle to the Eclipse Foundation. In 2021 and 2022 GlassFish was once again commercially supported.


References:


Legacy versions of GlassFish (upto and including GlassFish 5.0.1) can be downloaded from the original (pre-Eclipse) web site.

7713 questions
18
votes
6 answers

Glassfish Server start-domain domain1 won't start

I recently downloaded Glassfish 4.0 and I want to use it in NetBeans for making some Web Applications, but when I want to start the domain1 (asadmin> start-domain domain1) I keep getting this error:"There is a process already using the admin port…
Srdan Ristic
  • 3,203
  • 5
  • 18
  • 23
18
votes
2 answers

JSR-353 How to add null values using javax.json.JsonObjectBuilder

AS the javax.json docs suggest the way to create a JsonObject is using the provided builders like: JsonBuilderFactory factory = Json.createBuilderFactory(config); JsonObject value = factory.createObjectBuilder() .add("firstName", "John") …
Marcel Overdijk
  • 11,041
  • 17
  • 71
  • 110
18
votes
5 answers

Maven location (when installed indirectly with Netbeans/Glassfish)?

Where is the maven home directory when you install Netbeans with Glassfish? I have searched for 'mvn' in the Program Files directory and my user directory in Windows 7 but it turns up nothing. In the Maven settings in Netbeans for 'Maven Home' it…
csss
  • 1,937
  • 2
  • 14
  • 24
17
votes
2 answers

Glassfish 3.1.2 and Eclipse

I just downloaded the Glassfish version 3.1.2, this is not yet an official release. I need this version because my web application is using websockets. The problem I have now is with the Glassfish plugin for eclipse, he is not recognizing the new…
Mirea Vasile
  • 421
  • 1
  • 8
  • 12
17
votes
2 answers

Security constraint in web.xml for authenticated users without role memberships

I am quite desperate, because I think there must be an easy solution to my problem but I am searching - to no avail. I am using a custom Realm in Glassfish 3.1.1. This custom realm (implements AppservPasswordLoginModuleInterface) takes a security…
msaladin
  • 405
  • 1
  • 5
  • 12
17
votes
10 answers

Cannot start GlassFish 4.1 from within Netbeans 8.0.1 Service area

On Windows 7 I downloaded the 'netbeans-8.0.1-javaee-windows.exe' installer from this site https://netbeans.org/downloads/. The installer installs GlassFish 4.1, Java 1.8.0_20 and NetBeans 8.01. After installation, whenever I try to start the…
Dominique Bijnens
  • 353
  • 1
  • 2
  • 9
16
votes
2 answers

How to interpret a Java thread stack?

In line with this question: How to get stack trace of a thread I am wondering if anyone could point to information about interpreting Java thread stacks extracted with jstack. My situation is that I've got a Java EE 5 application running on…
16
votes
5 answers

Why do we use multi application server instances on the same server

I guess there is a good reason, but I don't understand why sometimes we put for example 5 instances having the same webapplications on the same physical server. Has it something to do with an optimisation for a multi processor architecture? The max…
Sebastien Lorber
  • 89,644
  • 67
  • 288
  • 419
16
votes
2 answers

How can I bind a DataSource to an InitialContext for JUnit testing?

I'm trying to run JUnit tests on database "worker" classes that do a jndi lookup on an InitialContext to get a DataSource. The worker classes are usually running on a Glassfish v3 App Server which has the appropriate jdbc resources defined. The code…
Brad H.
  • 315
  • 1
  • 4
  • 11
16
votes
5 answers

Glassfish as an OSGi Container

I'm evaluating OSGi containers and the subject came up of using Glassfish to contain my OSGi application components. My question is: Is Glassfish good for this? Does anybody have any experience using it in this way? Background: - The application is…
kender
  • 181
  • 1
  • 6
16
votes
1 answer

What is the relationship between Weld and HK2

This might be a silly question, but I am puzzled by it and I could not find any clear explanation anywhere. HK2 is a dependency injection framework implementing JS330, the foundation of Glassfish V3 and V4. As far as I can see it is used by…
user2465039
  • 894
  • 1
  • 11
  • 28
16
votes
3 answers

Lightweight alternative to Jetty

Usually Jetty is mentioned as the lightweight alternative when it comes to servlet containers like Tomcat and App Servers like Glassfish. I want to run a RESTful service on CloudFoundry. Using jetty-runner java -jar…
Alex
  • 8,245
  • 8
  • 46
  • 55
16
votes
1 answer

How to make Jersey use GZip compression for the response message body

I am trying to write a simple Jersey application that sends files from a Jersey client to a Jersey server and back. However, the files only seem to be encoded on the way from the client to the server but not the other way. I wonder how I can change…
Rafael Winterhalter
  • 42,759
  • 13
  • 108
  • 192
16
votes
4 answers

Unable to Connect to JDBC Connection Pool from Glassfish

I am running GlassFish Server Open Source Edition 3.1.2.2 (build 5) with MySql I have created a JDBC Connection Pool using NetBeans. Googled this problem I found that adding it is a classpath issue. Connecting a MySQL database to Glassfish classpath…
karx
  • 557
  • 2
  • 6
  • 16
16
votes
2 answers

Glassfish vs Tomcat for RESTful Services

I have a .net development background but relatively new to Java world. We have started development of RESTful services (public web APIs) with JAX-RS to be consumed mostly by mobile platforms (Android, iPhone, windows phone etc.) We need some…
Adil
  • 3,248
  • 1
  • 22
  • 27