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
20
votes
2 answers

WebSockets: wss from client to Amazon AWS EC2 instance through ELB

How can I connect over ssl to a websocket served by GlassFish on an Amazon AWS EC2 instance through an ELB? I am using Tyrus 1.8.1 in GlassFish 4.1 b13 pre-release as my websocket implementation. Port 8080 is unsecured, and port 8181 is secured with…
XDR
  • 4,070
  • 3
  • 30
  • 54
20
votes
1 answer

GlassFish vs tomcat

I would like to start using JEE6 in the next project that I have to work on at my job, but there is also a limitation (sort of): Tomcat 5.5 My question is, what improvements would bring GlassFish to the table (security/speed) vs the existing…
Bogdan
  • 349
  • 1
  • 4
  • 15
20
votes
5 answers

"The system cannot find the path specified." error message when trying to start GlassFish with asadmin

I tried to follow The Java EE 6 Tutorial and start GlassFish with the command below. But I got an error message. How to solve this? C:\glassfish3\bin>asadmin start-domain --verbose The system cannot find the path specified.
Jonas
  • 121,568
  • 97
  • 310
  • 388
20
votes
3 answers

How to notify all (same) Singleton beans in a Glassfish 3.1 Cluster?

I have a JEE6 application that runs on an Glassfish 3.1.2 cluster. One @Singleton Bean contains some kind of (readolny) cache. A User can press a button in the GUI to update the cache with (updated) content from the database. This works well in a…
Ralph
  • 118,862
  • 56
  • 287
  • 383
19
votes
1 answer

Possible to change ejb parameter at runtime for @Schedule annotation?

Probably a silly question for someone with ejb experience... I want to read and change the minute parameter dynamically for one of my EJB beans that uses the Java EE scheduler via the @Schedule annotation. Anyone know how to do this at runtime as…
simgineer
  • 1,754
  • 2
  • 22
  • 49
19
votes
1 answer

Glassfish 3.1 default principal to role mapping

I am working with glassfish and jaas module. I configured my web.xml in this way. ALL Page for admin /*
user789148
  • 369
  • 1
  • 5
  • 15
19
votes
4 answers

UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl

There are errors when using DI in Jersey Rest application: org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at…
J.Olufsen
  • 13,415
  • 44
  • 120
  • 185
19
votes
2 answers

GlassFish Error: JAX-RS EJB support is disabled

I am trying a simple app using Jersey JAX-RS + EJB 3.1 on GlassFish 3.1.2.2. All seemed to look pretty well with Jersey REST on GlassFish until I added EJB. When deploying the war file, I got this error. SEVERE: Error when configuring to use the EJB…
Adrian M
  • 7,047
  • 7
  • 24
  • 26
19
votes
2 answers

Cannot use an EntityTransaction while using JTA

I'm receiving this error: javax.servlet.ServletException: java.lang.IllegalStateException: Exception Description: Cannot use an EntityTransaction while using JTA. While trying to use JPA and JAVAEE, Glassfish. My persistence.xml file is as…
andreaxi
  • 931
  • 5
  • 15
  • 28
18
votes
3 answers

Can I (and how) lookup CDI managed beans using javax.naming.Context#lookup in EJB module?

Can I (and if so, how?) lookup CDI managed beans using javax.naming.Context#lookup in EJB module? I'm using GlassFish v3. I suppose that I can use @Named, but what is JNDI name of CDI managed bean? I want to lookup them from unmanaged POJOs so I…
zacheusz
  • 8,750
  • 3
  • 36
  • 60
18
votes
3 answers

java.lang.NoClassDefFoundError: org/glassfish/jersey/internal/inject/Binder when started Tomcat Server

I am building REST API in Java with Jersey and Maven. I used Tomcat 9 as my server. Everything works fine until I tried to install RestAssured, Hamcrest, and JUnit today. Suddenly all of my endpoints threw out 500 Internal server errors. The root…
Vincent acent
  • 465
  • 2
  • 7
  • 15
18
votes
6 answers

Best way to deploy on Glassfish V3

What is the best way to deploy my web project (or ear project) to remote server and glassfish? How to use ant-deploy.xml and build-impl.xml that netbeans create for this purpose? Using autodeploy folder and separately adding sun-resources.xml to the…
Nav
  • 4,450
  • 10
  • 53
  • 84
18
votes
2 answers

How can i config module and application name for JNDI Lookups

In EJB 3.1 JNDI Lookups can be made with different Lookup-Names: java:global[/]//! java:global[/]//
Michael W.
  • 531
  • 2
  • 7
  • 17
18
votes
2 answers

httpOnly Session Cookie + Servlet 3.0 (e.g. Glassfish v3)

By default, Glassfish v3 doesn't set the httpOnly flag on session cookies (when created as usual with request.getSession()). I know, there is a method javax.servlet.SessionCookieConfig.setHttpOnly(), but I'm not sure, if that's the best way to do…
Chris Lercher
  • 37,264
  • 20
  • 99
  • 131
18
votes
3 answers

JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext; error=2, No such file or directory

In my OS X Yosemite, I'm trying to start-domain in terminal: sh asadmin start-domain mythMobile and I get error: JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext" (in directory…
Almas Adilbek
  • 4,371
  • 10
  • 58
  • 97