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

A message body writer for Java class ... and MIME media type text/html was not found

I am using the jms/atmosphere framework to make communication between two applications. One of the applications is a message producer for a topic, sending custom objects of the following type: @XmlRootElement public class A implements…
mejas
  • 297
  • 1
  • 5
  • 17
15
votes
3 answers

Java EE scenarios that cannot be handled by Tomcat

Tomcat only implements the web container of the Java Enterprise Edition architecture. In contrast, e.g. GlassFish implements a full Java EE stack. This has been discussed a lot on stackoverflow. However, for a Java EE beginner like me it is hard to…
Matthias
  • 7,432
  • 6
  • 55
  • 88
15
votes
5 answers

Glassfish in real world

Are there any companies/web-sites that use Glassfish in production? I am new to J2EE and deploy JRuby on Rails alongside a JAX-WS Metro application in Glassfish v3 Prelude. Sometimes the quirks make me go WTF and rip my hair out. I haven't had…
mannicken
  • 6,885
  • 4
  • 31
  • 38
15
votes
0 answers

WebSocket Error during Handshake Unexpected code 200

I have been using GlassFish 4 as my server. I am opening a WebSocket connect using this statement: webSocket = new WebSocket(link); Where: link = 'ws://localhost:8080/CollabEdit/Document/file333B1CDF85-DDDC-E411-8299-F82FA8BE8622'; And in the…
manpreetSingh
  • 654
  • 4
  • 8
  • 20
15
votes
1 answer

accessing wsdl on Tomcat

I have a web service and I was deploying it on GlassFish. I accessed its wsdl through http://localhost:10697/APIService/APIServiceService?wsdl. Now I ported the WAR file to a Tomcat 6.0.24 and it is deployed. However I am trying to access its wsdl…
Krt_Malta
  • 9,265
  • 18
  • 53
  • 91
15
votes
9 answers

Stateless session bean with instance variables

I have a stateless session bean that contains one public method, several private methods, and some instance level variables. Below is a pseudo code example. private int instanceLevelVar public void methodA(int x) { this.instanceLevelVar = x; …
Preston
  • 3,273
  • 4
  • 26
  • 35
15
votes
1 answer

Cant access to java.util.HashMap$Entry with modifiers "public final"

My problem is, that my app works fine run locally on Tomcat server, but throws errors on server with installed glassfish. Whole problem is that i'm iterate looking through HashMap in JSTL. Server throws an stack as below: Servlet.service() for…
T.G
  • 1,913
  • 1
  • 16
  • 29
14
votes
6 answers

JavaEE solution configuration best practices

We build 3-tier enterprise solutions that typically consists of several webapp and ejbjar modules that all talk to a db and have several external integration points. Each module typically needs its own configurations that can change over the…
AmanicA
  • 4,659
  • 1
  • 34
  • 49
14
votes
3 answers

Clustering a stateless Java EE application with Glassfish on Amazon AWS

What's the best way to deploy a stateless Java EE 6 application in a distributed environment in order to achieve high availability and scalability? My application is stateless. Therefore, I don't need to replicate any session state (HTTP session,…
Theo
  • 3,074
  • 7
  • 39
  • 54
14
votes
4 answers

GlassFish in Eclipse complains "GlassFish v3 requires a JDK 1.6 and not a JRE"

I am running: Eclipse Java EE IDE for Web Developers. Version: Helios Service Release 2 Build id: 20110218-0911 I have also installed Java EE 6 SDK Update 2 which includes: GlassFish Open Source Edition 3.1 Java EE 6 Code Samples Java EE 6 API…
Grunge Freak
  • 1,009
  • 2
  • 12
  • 19
14
votes
2 answers

Where are the Glassfish access logs

Where are the glassfish access logs located? I would expect them to be in domains/domainX/logs. Is there a setting I need to change to activate access logging? Thanks
Captain Giraffe
  • 14,407
  • 6
  • 39
  • 67
14
votes
2 answers

How to add glassfish tools to eclipse oxygen 3a

I downloaded Eclipse Oxygen but i don't get glassfish tools installed in this IDE. It's a Oxygen 3A 64 bit running on a JDK 8 Update 172. When i try to install the tools via Marketplace it states that the tools are not available. Screenshot…
frank
  • 1,007
  • 1
  • 6
  • 13
14
votes
1 answer

Websockets not connected behind proxy

This is quite common problem, but I cannot find a solution to my specific case. I'm using Glassfish 4.1.1 and my application implements Websockets. On a client side I'm connecting to WS-server simply by: var serviceLocation = "ws://" +…
Luxor
  • 351
  • 1
  • 3
  • 17
14
votes
2 answers

HTTP 500 Internal Server Error in simple REST based program. Confused in GET and POST while receiving/sending response from server

I am implementing a basic client server architecture using REST services for the first time. This time I making it more complicated with including some more classes and services with sharing class objects as parameters between client and server. I…
sandeep.ganage
  • 1,409
  • 2
  • 21
  • 47
14
votes
1 answer

Glassfish 3.1 returns an error when started Unable to start server due following issues: Launch process failed with exit code 1

This is the trace : Launching GlassFish on Felix platform ERROR: Error parsing system bundle export statement: org.osgi.framework; version=1.6.0, org.osgi.framework.launch; version=1.0.0, org.osgi.framework.wiring; version=1.0.0,…
rolando
  • 271
  • 2
  • 3
  • 9