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
13
votes
6 answers

How to use 3rd party libraries in glassfish?

I need to connect to a MongoDB instance from my EJB3 application, running on glassfish 3.0.1. The Mongo project provides a set of drivers, and I'm able to use them in a standalone Java application. How would I use them in a Java EE application? Or…
Hank
  • 4,597
  • 5
  • 42
  • 84
13
votes
1 answer

How to use alternate version of Mojarra with Glassfish 4 (Netbeans/Maven)

I've been Using Eclipse/Ant for some time and decided to take a look at Netbeans/Maven for my JSF development. Along the way, I thought I'd try to use a version of Mojarra that is newer than the one I have installed in glassfish/modules. I can't…
CraftWeaver
  • 707
  • 1
  • 8
  • 21
13
votes
6 answers

Glassfish / Payara javax.ejb.AccessLocalException: Client not authorized for this invocation in server.log

I was trying figure out the cause of another exception for my dynamic web app here - https://github.com/double-whammy/affablebean I made a small change and I got a new exception - javax.ejb.AccessLocalException: Client not authorized for this…
james
  • 1,667
  • 5
  • 26
  • 38
13
votes
5 answers

Glassfish server adapter not shown in list in Eclipse

I successfully installed Glassfish Tools for Kepler. However besides Apache, Basic, JBoss and ObjectWeb I do not see an entry for GlassFish in server wizard (File->New->Other->Server). I tried to install Glassfish Tools both from Eclipse Marketplace…
kolobok
  • 3,835
  • 3
  • 38
  • 54
13
votes
7 answers

Derby vs PostgreSql Performance Comparison

We are doing research right now on whether to switch our postgresql db to an embedded Derby db. Both would be using glassfish 3 for our data layer. Anybody have any opinions or knowledge that could help us decide? Thanks! edit: we are writing some…
Austin
  • 139
  • 1
  • 1
  • 3
13
votes
4 answers

Inject a EJB into a JSF converter with JEE6

I have a stateless EJB that acceses my database. I need this bean in a JSF 2 converter to retreive an entity object from the String value parameter. I'm using JEE6 with Glassfish V3. @EJB annotation does not work and gets a NPE, because it's in the…
Michael Bavin
  • 3,944
  • 6
  • 31
  • 35
13
votes
8 answers

Unable to Mock Glassfish Jersey Client response object

I am having problems with creating a mock Response object to use with my unit tests. I am using org.glassfish.jersey.core.jersey-client version 2.3.1 to implement my RESTful client and mockito version 1.9.5 to help me with mock objects. Here is my…
13
votes
12 answers

Why can't I reach Glassfish admin gui?

Either I start Glassfish domain from NetBeans or from the asadmin console, I can't reach the admin panel. When I navigate to http://localhost:4848, first there's a page saying "The Admin Console is starting. Please wait.", then it tries to redirect…
juzraai
  • 5,693
  • 8
  • 33
  • 47
13
votes
5 answers

Invalid ejb jar: it contains zero ejb.

I have 2 modules: ejb and war, and ear module, that contains them. Modules build successfully, but when I try to deploy ear to glassfish, I recieve this…
Mary Ryllo
  • 2,321
  • 7
  • 34
  • 53
13
votes
2 answers

Where is the p:fileUpload uploaded file saved and how do I change it?

I use the simple File upload of Primefaces in development with Netbeans. My test example is similar to to the Primefaces manual. My question: where does the file get uploaded on my local computer? How can I change the path for it? Thx! The jsf…
seinecle
  • 10,118
  • 14
  • 61
  • 120
13
votes
2 answers

Bash Script, Kill process by pulling from PID file

This is what I have right now in the bash script: ps aux | grep glassfish | grep domain1 | gawk '{print $2}' | xargs kill -9 The problem with this is that if someone else is logged in and pulling something related to glassfish, it wil pull that PID…
Joshua Sutton
  • 141
  • 1
  • 1
  • 3
13
votes
1 answer

How to update Mojarra version in GlassFish

I want to update my JSF application to use Mojarra version 2.1.8. I added these lines into the POM file of the WAR package: org.glassfish javax.faces
user1285928
  • 1,328
  • 29
  • 98
  • 147
13
votes
3 answers

Where to find the "user library" for the Eclipse JPA Facet with for GlassFish 3.1.2?

I have Eclipse (Indigo) and GlassFish 3.1.2 The "New JPA Project" wizard has the error "At least one user library must be selected." But there's nothing in the list. Is there already a JPA implementation in the GlassFish directory, and I should…
user550738
13
votes
2 answers

Where to install GlassFish on Linux?

DISCLAIMER: I'm relatively new to Linux. I debated putting this on SuperUser or ServerFault because the answer does require an explanation of Linux as a system (and not a specific programming problem), however I'm interested in this from a Java…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
12
votes
3 answers

Glassfish Logging

Is there anyway to get glassfish to delete some of the old log files automatically? Yesterday we had a disk full issue due to glassfish logging. There is not apparent way to do this in the Admin Console, unless we are just ignorant.
arinte
  • 3,660
  • 10
  • 45
  • 65