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
47
votes
7 answers

org.glassfish.jersey.internal.RuntimeDelegateImpl NOT FOUND

I am using jersey for my project and tring to parse a URI from a string. UriBuilder.fromUri("http://localhost:8000").build(); The code is simple, but I get a error below java.lang.ClassNotFoundException:…
Spark8006
  • 635
  • 1
  • 7
  • 15
47
votes
3 answers

Location of GlassFish Server Logs

I have NetBeans IDE installed on a Windows 7 64-bit machine. Obviously, NetBeans comes with the GlassFish server. I am currently having problems with a project and would like to check the server logs. Where are these stored please?
Matthew
  • 4,477
  • 21
  • 70
  • 93
47
votes
9 answers

How do I specify the JDK for a GlassFish domain?

I've got GlassFish 2.1.1 installed. I have a 1.5 and a 1.6 JDK installed. Even though my JAVA_HOME variable is set to the 1.5 version (and both "java -version" and "javac -version" display 1.5), whenever I start my glassfish domain it always states…
edwardmlyte
  • 15,937
  • 23
  • 58
  • 83
44
votes
7 answers

sun.reflect.annotation.TypeNotPresentExceptionProxy error when deploy web-ear

When I try to deploy ejd-ear, web-ear on to glassfish server. I added an ejb client dependency in web project. The ejb-ear deploys successfully. But when I try to deploy web-ear, it throws an exception…
Oops
  • 441
  • 1
  • 4
  • 3
40
votes
8 answers

Could not open ServletContext resource

This is quite similar question to one older but the solution did not work for me. I have a WAR package. In web.xml contextConfigLocation
kuncajs
  • 1,096
  • 1
  • 9
  • 20
39
votes
2 answers

glassfish-web.xml vs sun-web.xml vs web.xml

Could someone explain the main differences (or provide a link to) between glassfish-web.xml, sun-web.xml and web.xml? Can I use just glassfish-web.xml in my webapp and skip the others?
sasha_trn
  • 1,935
  • 2
  • 23
  • 30
39
votes
4 answers

How to refresh JPA entities when backend database changes asynchronously?

I have a PostgreSQL 8.4 database with some tables and views which are essentially joins on some of the tables. I used NetBeans 7.2 (as described here) to create REST based services derived from those views and tables and deployed those to a…
andand
  • 17,134
  • 11
  • 53
  • 79
37
votes
5 answers

Glassfish 3.1.1 - How to enable secure admin for different domains?

I have a glassfish server runing. it has 3 different domains - d1,d2, and d3. now when I try to run asadmin enable-secure-admin command, how to i specify which domain i want to enable?
neo
  • 2,461
  • 9
  • 42
  • 67
37
votes
1 answer

glassfish v3 vs tomcat 7

Which one do you recommend for web and why?
Attila Nyers
  • 1,183
  • 2
  • 13
  • 22
36
votes
2 answers

How to prevent eclipse from deploying test classes on Tomcat?

I have a Maven project, containing the typical folders src/main/java and src/test/java and I am using Eclipse 3.7 with m2e 1.0.and Maven Integration for WTP 1.4.0 . Eclipse is used during development to deploy the application on an server (Tomcat or…
Ralph
  • 118,862
  • 56
  • 287
  • 383
36
votes
2 answers

Default EJB transaction mode for asynchronous methods?

When I have an @Asynchronous method in an EJB, and I don't specify the @TransactionAttribute, then how exactly does the container handle the transaction boundaries? Obviously, it can't use the calling thread's transaction, so what does it do? Same…
Mike Baranczak
  • 8,291
  • 8
  • 47
  • 71
34
votes
7 answers

Sharing a persistence unit across components in a .ear file

In a Java EE 6 application where I'm using .ear packaging, I'd like to create a persistence unit that can be accessed from components in different .jar files. However, I'm not sure how to define this persistence unit. With the @PersistenceContext…
bamoida2010
  • 361
  • 1
  • 3
  • 4
32
votes
5 answers

Which Maven GlassFish plugin to use?

I've been trying to integrate deploying java .war's in GlassFish V3 through Maven. While I have found a few plugins, none of them look to be very active: Maven Glassfish Plugin Eskato's Wordpress Blog on Maven And I got the most information out…
Nick Klauer
  • 5,893
  • 5
  • 42
  • 68
32
votes
9 answers

Setting a parameter as a list for an IN expression

Whenever I try to set a list as a parameter for use in an IN expression I get an Illegal argument exception. Various posts on the internet seem to indicate that this is possible, but it's certainly not working for me. I'm using Glassfish V2.1 with…
Loren_
  • 2,597
  • 3
  • 20
  • 29
32
votes
3 answers

Jersey Grizzly REST service not visible outside localhost

I'm trying to write a REST service in java using Jersey and Glassfish Grizzly. I have a very simple case working internally, but can't seem to call on the server from an external address. I've tried using a variety of different pairs of machines…
user1596250
  • 329
  • 3
  • 5