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
31
votes
4 answers

PermGen space error - Glassfish Server

I am running java web application using Hibernate and glassfish Server. I am getting java.lang.OutOfMemoryError: PermGen space exception when after I deploying it several times. I tried -XX:MaxPermSize=128M in my Environment variables, but it…
devan
  • 1,643
  • 8
  • 37
  • 62
31
votes
3 answers

Glassfish JAX-WS side by side SSL / insecure EJB webservice

Is it possible to run a single @WebService bean as both secure and insecure at the same time, preferably using the same URL except for the http/https protocol difference? I am able to run the service either secure or insecure…
Justin
  • 4,097
  • 1
  • 22
  • 31
30
votes
6 answers

How to run glassfish 4 on port 80 instead of 8080? root access is not an issue

Did some google on it and the solution was to redirect using iptables or mod in apache? Since my application uses websockets the above solution breaks my websocket connectivity and I again have to connect to my websockets using port 8080. Is there…
anandaravindan
  • 2,401
  • 6
  • 25
  • 35
30
votes
8 answers

Java, JPA, Glassfish, Invalid resource : jdbc/__default__pm

I use Glassfish 3.1.2.2 (build 5), JPA, EclipseLink, MySQL I created MySQL pool via Glassfish admin panel. Ping to MySQL from GF admin panel is ok. I created app with persistence.xml:
Victor Mezrin
  • 2,797
  • 2
  • 32
  • 48
30
votes
2 answers

Metro vs Java's JAX-WS?

What is/are the difference/s of Java's JAX-WS and Metro? Are they the same of are they two different JAX-WS implementations? According to my research, JAX-WS is already a part of JDK 6. However, JAX-WS does not come with the standard bundle of JDK…
Arci
  • 6,647
  • 20
  • 70
  • 98
29
votes
9 answers

How to configure Glassfish Server in Eclipse manually

I have GlassFish server3.1.2.2 pre installed on my machine. Which I want to use in my Eclipse Luna How do I manually configure it to use in Eclipse? When I tried using Eclipse Market Place i got an error No repository found at…
InCh
  • 529
  • 1
  • 5
  • 18
28
votes
8 answers

Glassfish server does not start. NullPointeException

I just downloaded the GlassFish 5.0 archive - Full Platform, unzipped it, I run it through the command line. asadmin start-domain problem: Exception in thread "main" java.lang.NullPointerException at…
Oleksandr
  • 450
  • 1
  • 6
  • 13
28
votes
4 answers

Why am I getting Maven error: "Unable to determine if resource X exists in http://maven.glassfish.org/content/groups/glassfish"?

Whenever we execute our site goal in Maven, we get a long list of dependency-related errors in our console log. The errors appear to be generated during the Dependency report creation part of the build. All of the errors seem to be generated when…
Matt Vukas
  • 3,225
  • 3
  • 26
  • 37
27
votes
2 answers

Xerces error: org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl

I'm developing a web application using JSF 2.0, NetBeans 6.9.1, GlassFish Server 3.1, mojarra 2.0.3, and JasperReports 3.7.6. Included in my project library is the jar file "xerces-2.8.0.jar". This file was imported as part of the JasperReports jar…
Sean
  • 971
  • 4
  • 12
  • 21
27
votes
2 answers

What is glassfish?

I'm downloading Java EE, and there seems to be a ridiculous number of different download options. I'm not sure which one I should choose. Java EE seems to be packaged with GlassFish. Can anyone tell me what this is and what good it does…
well actually
  • 11,810
  • 19
  • 52
  • 70
27
votes
5 answers

Java 8 Lambda Expression Within REST Service not working

If I put a Java 8 Lambda expression in a REST service, it crashes. If I remove the lambda expression, it works. It does not matter if I use the lambda expression or not. Just the existence the lambda is enough to crash. Everything else Java 8…
David Jensen
  • 575
  • 1
  • 7
  • 10
26
votes
1 answer

Provider org.glassfish.json.JsonProviderImpl not found at javax.json.spi.JsonProvider.provider(JsonProvider.java:97)

How to run Java API for JSON Processing(JSR 374) in eclipse?I am trying to parse JSON string to JsonParser(javax.json.stream.JsonParser). Also added javax.json-api-1.0.jar in the build path. At runtime, there is an exception. My code is import…
Shaurya Manhar
  • 261
  • 1
  • 3
  • 5
26
votes
4 answers

How to log the start and the completion of DB transactions in Hibernate

sql_show = true this property in hibernate prints the sql that is run, but i want to see the begin transaction and complete transaction statements as well so that i can track the transaction duration and see the query run in which…
Bhuvan
  • 4,028
  • 6
  • 42
  • 84
26
votes
3 answers

Will it be possible to use Java 8 on Glassfish 3?

We currently use Glassfish 3 and I really want to use Java 8. I tried upgrading to Glassfish 4, but I experienced two bugs in the Glassfish 4 code so I had to revert back to Glassfish 3. Will Glassfish 3 work with Java 8 or will I have to upgrade…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
25
votes
6 answers

Connecting a MySQL database to Glassfish classpath is not set or classname is wrong

I'm swapping out a derby database for a MySQL one. I had everything working before but after what I thought was the proper configuration I'm getting the error: Caused by: javax.resource.ResourceException: Class name is wrong or classpath is not set…
Randnum
  • 1,360
  • 4
  • 32
  • 48