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
14
votes
1 answer

meaning of this glassfish warning: context path differs from bundle

I'm not quite sure what this error message is indicating: INFO: visiting unvisited references INFO: visiting unvisited references INFO: visiting unvisited references INFO: visiting unvisited references INFO: EJB5181:Portable JNDI names for…
Thufir
  • 8,216
  • 28
  • 125
  • 273
14
votes
8 answers

JSF tags not being rendered as HTML

I'm following the Java EE firstcup tutorial using Netbeans and Glassfish. When I execute the JSF web tier I've been instructed to code, the browser gets the same JSF markup coded in the .xhtml file, and the tags are not rendered as HTML tags. I know…
mmutilva
  • 18,688
  • 22
  • 59
  • 82
14
votes
2 answers

java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Obje

I'm a newbie with maven, spring, embedded glassfish, dependency conflicts ( I don't know how to see them and how to solve them)... and I can't fix this problem alone even if I've spent hours trying to. I don't encounter this problem with embedded…
user3178994
  • 251
  • 3
  • 5
  • 11
14
votes
4 answers

Servlet init() method equivalent in JAX-RS

I am working on an application which is running on Glassfish. I am supposed to convert the servlets to proper restful stuff, by using jax-rs and jersey. I have been trying to find a workaround for init() method, but till now i failed. Here is the…
denizdurmus
  • 1,289
  • 1
  • 13
  • 39
14
votes
3 answers

Set/configure the EJB Timer Service’s DataSource

I'm trying to use the Timer Service in EJB 3.1 in my app. @Stateless @LocalBean public class StatelessTimerSessionBean { @Schedule(minute = "*", second = "0", dayOfMonth = "*", month = "*", year = "*", hour = "9-17", dayOfWeek = "Mon-Fri") …
ejohansson
  • 2,832
  • 1
  • 23
  • 30
14
votes
4 answers

Where do @Context objects come from

I've been searching everywhere, but can't seem to find a clear answer... What is the mechanism whereby a server (glassfish for my problem) injects actual objets that are annotated with @Context? More specifically, if I wanted to write a class that…
Kricket
  • 4,049
  • 8
  • 33
  • 46
13
votes
5 answers

GlassFish 3: how do you change the (default) logging format?

The question originated from here: http://www.java.net/forum/topic/glassfish/glassfish/configuring-glassfish-logging-format - without an answer. The default GlassFish 3 logging format is very annoying, much too…
Kawu
  • 13,647
  • 34
  • 123
  • 195
13
votes
3 answers

persistence.xml with Glassfish 3.1.1

I am very new to glassfish, JPA and so on and I have really problems with setting that up. What I am planning to do is a simple RESTful service with a persistent backend. I am using glassfish3 as application server and already deployed a simple REST…
Eddy
  • 1,451
  • 2
  • 10
  • 10
13
votes
7 answers

DCH class error with JavaMail

I'm attempting to set up a simple logging test with JavaMail in Java EE 6, using the jar files provided with Glassfish 3.1. There seems to be a wealth of questions out there on this subject, but I haven't found any answers that have helped yet. My…
Steve Ferguson
  • 792
  • 3
  • 10
  • 21
13
votes
3 answers

How to deploy portlets to Liferay?

I have faced problems in trying to install new portlets to Liferay running on Glassfish domain. I figured out the flow very lately and want to share it with others also. So, please read the answer and hope this helps someone :) (Pre requisites for…
mico
  • 12,730
  • 12
  • 59
  • 99
13
votes
7 answers

Cannot install Glassfish tools in Eclipse Photon / Eclipse IDE

Eclipse cannot install glassfish tools. under Oracle folder of server there is only options for Webllogic and cloud, The glassfish option appears only ONE time whe I first tried to install it. an after it no longer shows up I have tried to remove…
usertest
  • 2,140
  • 4
  • 32
  • 51
13
votes
4 answers

Automatically start JavaDB (Derby) on GlassFish

I am planning to deploy GlassFish v3 open source edition to a production environment. It comes with JavaDB (Apache Derby) which is just what I need. The only problem is that JavaDB is not started by default when GlassFish starts. I would have to…
del.ave
  • 1,888
  • 5
  • 17
  • 23
13
votes
3 answers

No injection source found for a parameter in rest-service with jaxrs

I have the problem, that two methods of my rest service bring the error on deploy, that there is no injection source. My Service looks like this: @Path("/chatservice") public class ChatServiceImpl implements…
Daniel Müssig
  • 1,582
  • 1
  • 14
  • 26
13
votes
4 answers

Cannot deploy an application to Glassfish 4.1 in Eclipse

I have Glassfish 4.1 and Eclipse Luna installed on Ubuntu. When I tried to run a simple web application (jsp + servlet + java bean) I`ve received the following error: Publishing to Glassfish 4 at localhost[domain1].. has encountered a problem. …
user3601262
  • 651
  • 1
  • 7
  • 22
13
votes
1 answer

The specified directory is not a valid GlassFish installation

I'm trying to install GlassFish 4 with Eclipse on Windows 7 64bit. Everything goes fine, but when I try to set server root here's what happens (dir exists):
RichardK
  • 3,228
  • 5
  • 32
  • 52