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

How Do I Use @ConversationScoped

I am writing a JSF 2.0 application, and I want to use CDI annotations instead of the "equivalent" JSF annotations. In other words, @Model or @Named instead of @ManagedBean, and @Inject instead of @ManagedProperty. The only thing I cannot get to…
AlanObject
  • 9,613
  • 19
  • 86
  • 142
12
votes
1 answer

Glassfish debug from command line

I'm running Glassfish on a remote machine. Is there a command to start GF in debug mode from the command prompt? The remote machine runs Ubuntu 10.04, my machine runs Windows 7 (not sure if this is important). I connect without a problem and…
Sean
  • 971
  • 4
  • 12
  • 21
12
votes
2 answers

Where can I configure the thread pool behind the @Asynchronous calls in Java EE 6?

I recently learned that I can easily make any session bean method Asynchronous by simply adding the @Asynchronous annotation. E.g. @Asynchronous public Future processPayment(Order order) throws PaymentException { ... } I know that…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
11
votes
4 answers

Where does glassfish save your class/project after deployment on Windows?

I am using Glassfish3.1 on Windows XP. After deploy a web service project using Netbeans, it works fine. But when i go to install-path\glassfish-3.1\glassfish\domains\domain1\applications I don't see my application. under…
neo
  • 2,461
  • 9
  • 42
  • 67
11
votes
5 answers

I forgot the Glassfish3 master-password, how can i reset it?

I forgot the master-password of my Glassfish 3.1.2.2. Is there a way to reset it? I spent a lot of time "googling around" but i didn't find a suitable answer.
kKdH
  • 512
  • 1
  • 8
  • 17
11
votes
1 answer

JAAS configuration and LDAP login module in JavaEE 6

I'm writing a question here because I haven't been able to find the solution myself for months. My situation: I have a client-server application written on java which uses Java2ee 6 and EJB3.0. The server side is deployed on the glassfish 3.0. I…
Oleg
  • 467
  • 1
  • 8
  • 17
11
votes
2 answers

Glassfish + Postgres can't ping connection pool

I try to make login page for web application using Glassfish 3.1 and Postgres. I have local database (localhost:5432). This is my connection pool: Pool Name:pacjentauth Resource Type:javax.sql.DataSource Datasource…
Iwo Kucharski
  • 3,735
  • 3
  • 50
  • 66
11
votes
3 answers

Where do glassfish keep war file deployed from web (admin console)?

I am deploying geoserver from web console but I can't find the war. Where do glassfish all those file when deploying from web?
kinkajou
  • 3,664
  • 25
  • 75
  • 128
10
votes
1 answer

Glassfish 3.1.2's JDBCRealm has a new Password Encryption Algorithm field. What is it for?

The Glassfish JDBC realm features several different properties you can set. I am interested in the Digest Algorithm and Password Encryption Algorithm properties (that's how they show up in the admin console). The second one is new as of Glassfish…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
10
votes
1 answer

Issues with Impersonating a WCF Secure Web Server using Glassfish / Metro

I am attempting to construct a Glassfish hosted web service that impersonates (for development testing) a WCF hosted web service. I have the WSDL from the WCF hosted service, and I can construct the Java service and Java client from the WCF-hosted…
rcaschultz
  • 173
  • 6
10
votes
2 answers

dynamic @PersistenceContext unitName attribute for container-based EntityManager

basically, what i wanna do is assigning 'unitName' attribute of @PersistenceContext with a value that i will get from the Session at runtime. in details; my application will be a SaaS application and i will have separate DBs for every different…
Joe Javac
  • 111
  • 2
  • 6
10
votes
2 answers

JPA 2.0 (logging and tracing through) with Glassfish 3.0.1 and NetBeans 6.9.1:

I am using JPA 2.0 (EclipseLink provider) with Glassfish v3.0.1 and NetBeans 6.9.1 and am NOT able to see the queries and other logging information from JPA 2.0. Essentially I want to be able to see all the SQL statements which are being generated…
Alex H
  • 431
  • 5
  • 13
10
votes
2 answers

Add Java EE Security Roles dynamically without using deployment descriptor

I'm developing a Java EE 6 application using Glassfish 3.1, B06. To secure my app, i'm using a JDBCRealm and programmatic security. This works fine to check username and password. But when it comes to declaring security roles, i have a problem: To…
Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174
9
votes
1 answer

Consuming local EJB, in the same Container but different ears

I'm triying to consume a Local EJB in the same Glassfish, but different ears. But Glassfish can't found the local EJB or can't consume I read this: According to the JavaEE tutorial, the client of a @Local bean "must run in the same JVM as the…
Kaltresian
  • 961
  • 3
  • 14
  • 32
9
votes
5 answers

CDI Injection of an EJB leads to NullPointerException

I am new to Java EE 6 and CDI. I have read a couple of tutorials and the weld documentation. However something that should work from my understanding doesn't so I need help. I have the following situation. I created a Java EE 6 Application with…
Philip Markus
  • 91
  • 1
  • 3