Questions tagged [glassfish-3]

GlassFish is an open source, production-ready, Java EE-compatible application server.

GlassFish is a Java EE open source application server.

This tag is for questions specific to GlassFish version 3 (GlassFish version 3.1.1 was released in August 2011).

The Java EE 6 platform used by GlassFish v3 introduced the lightweight Web Profile for Web-centric applications, and included the then latest versions of technologies such as JAX-RS 1.1, JavaServer Faces(JSF) 2.0, Enterprise JavaBeans (EJB) 3.1, Java Persistence (JPA) 2.0, Context and Dependency Injection (CDI) 1.0 and more.

See here for version 3 (and other legacy version) downloads.


For more modern versions of GlassFish, visit the Eclipse GlassFish home page.

For general questions about GlassFish use the tag.

1612 questions
55
votes
11 answers

Encoded slash (%2F) with Spring RequestMapping path param gives HTTP 400

This is not a duplicate referenced question, because it is Spring specific. Whoever added that (3 years after the fact!) didn't bother to read the question or comment thread to see what the real answer was. The accepted answer isn't quite the…
Jim
  • 3,476
  • 4
  • 23
  • 33
52
votes
3 answers

How to set response header in JAX-RS so that user sees download popup for Excel?

I wrote code that generate Excel file using REST JAX-RS and I confirmed that the generated Excel file is in GlassFish server directory. But my goal is when user click on the button (which generate Excel .xls), I want download popup to show up asking…
Meow
  • 18,371
  • 52
  • 136
  • 180
41
votes
5 answers

How should I log uncaught exceptions in my RESTful JAX-RS web service?

I have a RESTful web service running under Glassfish 3.1.2 using Jersey and Jackson: @Stateless @LocalBean @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @Path("users") public class UserRestService { private static…
Ashley Ross
  • 2,345
  • 2
  • 23
  • 43
36
votes
7 answers

OpenSSO/OpenAM alternatives

Warning! I'm on a bit of a fishing trip here, and I'm not even sure if the questions that I'm asking entirely make sense. Please be kind with your responses! :) I recently took over a project that is currently based on a Java + Linux + Tomcat +…
David S
  • 12,967
  • 12
  • 55
  • 93
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
30
votes
7 answers

"Certificate has expired" in log by starting Glassfish 3.1.2

Today by starting my glassfish I saw an error message about a certificate that has expired... Can someone help me and say what I can/must do? Here the message: ... [exec] [exec]…
Francesco
  • 2,350
  • 11
  • 36
  • 59
27
votes
1 answer

Where should beans.xml be placed?

I've just upgraded to NetBeans 7.1 from 7.0. On opening a JSF managed bean it "helpfully" told me that it couldn't find my beans.xml file so would I like it created for me. I knew I had a beans.xml file under WEB-INF but I said yes anyway to see…
wobblycogs
  • 4,083
  • 7
  • 37
  • 48
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
23
votes
1 answer

How to get rid of WARNING: PWC4011: Unable to set request character encoding to UTF-8

This is on GlassFish 3.1, using PrimeFaces over Mojarra and salted with MyFaces CODI. On just about every request the following message appears: WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context /com.myapp_war_0.1,…
AlanObject
  • 9,613
  • 19
  • 86
  • 142
22
votes
1 answer

Glassfish 3.1.2 - Difference Between default-config and server-config

What is the difference between default-config and server-config? If I want to adjust a thread pool size for example, do I need to do it in both places? If just one, which one?
sdoca
  • 7,832
  • 23
  • 70
  • 127
21
votes
10 answers

Unable to start Glassfish 3.1 even though port not occupied

I'm having trouble starting Glassfish 3.1 on a newly setup Debian "Squeeze" server. This is a testing server that has been setup and the Glassfish installation was copied from a working server to this other server. I tried running: # ./asadmin…
Mark Bouchard
  • 851
  • 1
  • 9
  • 20
21
votes
6 answers

How to install the GlassFish 3 server adapter with Eclipse Helios 3.6

Question as stated in the title: how to install the GlassFish Server Adapter on Eclipse Helios 3.6?
Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
20
votes
1 answer

How to create custom 404 messages in JSF 2.0?

Currently in my app when a user types some illegal destination in the URL bar, sees this: I would like to make it more beautiful and customize it with my own markup and a bit of css. -Do i need to program that on my app or i have to configure that…
javing
  • 12,307
  • 35
  • 138
  • 211
19
votes
1 answer

Glassfish 3 has two configurations

I wanted to setup JDBC realm in Glassfish 3.1 and I am following this blog http://blog.gamatam.com/2009/11/jdbc-realm-setup-with-glassfish-v3.html But I notice in Glassfish 3.1 that there are two configuration namely default-config and…
Mark Estrada
  • 9,013
  • 37
  • 119
  • 186
18
votes
4 answers

Accessing Hibernate Session from EJB using EntityManager

Is it possible to obtain the Hibernate Session object from the EntityManager? I want to access some hibernate specific API... I already tried something like: org.hibernate.Session hSession = ( (EntityManagerImpl) em.getDelegate()…
Bogdan
  • 5,368
  • 9
  • 43
  • 62
1
2 3
99 100