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

Starting a Seam 3 project using Maven from scratch

I want to start writing a Seam 3 project from scratch using Maven and configure it to be deployable to both of Glassfish 3.1 and JBoss 6 or 7. Any references or tutorials explaining how my pom.xml file should look like if I don't want to use…
zigortmay
  • 45
  • 1
  • 3
2
votes
1 answer

java.net.SocketTimeoutException in org.apache.tomcat.util.net.NioBlockingSelector

I have a spring boot application running on tomcat. The application is very lightweight like 15ms SLA but serves good traffic between 5000 and 10000 per second. The typical incoming payload size between 1 and 1.5Kb. For very few requests (like < 5)…
AeganR
  • 21
  • 4
2
votes
2 answers

Java EE: how to access local EJB from web module?

I have created a local EJB that I want to access from a web module in the same VM. My code looks like this: @EJB private UserBeanLocal userBean; public UsuarioManagedBean() { InitialContext c = new InitialContext(); userBean =…
Lucia
  • 4,657
  • 6
  • 43
  • 57
2
votes
3 answers

In Netbeans 6.9, how to change Application Server

In Netbeans 6.9.1, i've created a web application wiht Glassfish Server 3. (Undert the server textbox, java ee version defautls to "Java EE 6 Web"). Now I've installed an Apache tomcat 7 (actually it sees it as 6 because the 7 version was not…
AgostinoX
  • 7,477
  • 20
  • 77
  • 137
2
votes
1 answer

Execute some arbitrary sql in the current transaction in JPA 2.0

I am new to JPA 2.0/EclipseLink/Glassfish/JEE6, and have kind of a basic question. I have a DAO in which most of the entities are mapped directly to columns using JPA annotations, so I use the EntityManager, and it works great with no issues. …
Kevin Pauli
  • 8,577
  • 15
  • 49
  • 70
2
votes
1 answer

JSF authentication logout

I know that this question seems to be answered by a lot of other threads, but I can't find a solution with JSF 2.0 with Glassfish 3.0.1 for logout an user. I tried either with a BASIC authentication and FORM authentication using j_security_check as…
markov00
  • 3,682
  • 2
  • 24
  • 25
2
votes
2 answers

glassfish v3 multiple domain hosting

I have a website running with glassfish and I want to now use the same server to host another domain on a completely new domain name. What are the steps involved in configuring glassfish to support this?
Farouk Alhassan
  • 3,780
  • 9
  • 51
  • 74
2
votes
1 answer

How to deploy a JDO based EAR file on GlassFish?

I'm really desperate right now, because I'm building a little application that is split up into several projects. There is a web application that uses Vaadin and an EJB container that should do the persistance stuff with JDO and DataNucleus. The…
Christian Smolka
  • 159
  • 1
  • 10
2
votes
1 answer

Trouble injecting resources with Java EE 6 and Glassfish 3.1 using @Resource

I'm having trouble trying to use the @Resource annotation with Java EE 6 and Glassfish 3.1 (embedded). I want to look up a JNDI datasource, so I'm trying to get it working with the default datasource in Glassfish. In my code I…
Ryan J
  • 2,502
  • 5
  • 31
  • 41
2
votes
3 answers

Glassfish hangs on OS X 10.5/Java 6

I want to play around with glassfish on a Mac, but I'm having trouble getting it to start. I've followed the installation instructions and created a default domain, which seemed to go fine, but when I try to start it (asadmin start-domain domain1)…
Kris Pruden
  • 3,280
  • 4
  • 25
  • 30
2
votes
2 answers

maven-glassfish-plugin can't get maven-metadata.xml

I have used this plugin for one year.But several days ago,it stopped when tried to get some metadata.xml files from ocean.net.au. Downloading: http://maven.ocean.net.au/release/org/apache/maven/maven-plugin-api/maven-metadata.xml Downloading:…
Dean Chen
  • 3,800
  • 8
  • 45
  • 70
2
votes
1 answer

Problem with using spring bean from eagerly-fetched JSF managed bean in Glassfish

I'm working on a project using JSF 2.0 and Spring 3.0.5, which is running on Glassfish 3.1 open source edition. Then I have a ApplicationScoped managed bean declared with 'eager': @ManagedBean(eager = true) @ApplicationScoped public class…
julian
  • 21
  • 3
2
votes
0 answers

Glassfish 5.1 can't add resources

Am trying to add resources to my glassfish via xml file, but am getting the following errors Outputs: Via web: An error has occurred The system cannot find the path specified: An error has occurred The system cannot find the path specified: Via…
2
votes
3 answers

Can I create servlets at runtime?

I have a website with several servlets. Each page like index, about, FAQ, contact us and so on, have a servlet connected to them. I am also planning to make it possible to add additional pages with a button create new page, so that when somebody…
whirlwin
  • 16,044
  • 17
  • 67
  • 98
2
votes
1 answer

fop in glassfish fail to render external resources

I am generating a PDF file via fop 1.0 out of a java library. The unit tests are running fine and the PDF is rendered as expected, including an external graphic: If I render…
Wintermute
  • 1,521
  • 1
  • 13
  • 34
1 2 3
99
100