Questions tagged [glassfish-4]

Fourth version of the popular Java EE open source application server and the reference implementation of the Java EE 7.

Java EE 7 brings the new versions of the many Java enterprise and Web technologies, such as EJB 3.2, JMS 2.0, JPA 2.1, Servlet 3.1 etc. GlassFish is an open source server that represents a reference implementation of Java EE standard. In its fourth version, GlassFish offers the complete Java EE 7 (JSR-342) platform. It is a first certified application server that fully supports Java EE 7.

This tag is for questions specific to version 4. For generall questions to GlassFish see:

908 questions
6
votes
1 answer

How to change EclipseLink in GlashFish 4.0?

I want to change EclipseLink from 2.5.0 to 2.5.1 in GlashFish 4.0. I have downloaded the OSGi bundle and replaced the following jar…
Tiny
  • 27,221
  • 105
  • 339
  • 599
6
votes
4 answers

Why clean glass fish admin console doesn't work?

My system is: Mac os X 10.9 Mavericks Oracle JDK 7u45 (the latest) Glassfish 3 and Glassfish 4 is the same I go to the download page of glass fish and download the zip. i do init the glassfish domain using: asadmin start-domain domain1 Go to…
Juvinao
  • 233
  • 3
  • 10
6
votes
2 answers

How to make each user access resources at a specific location according to their authority/role in JAAS?

I'm using GlassFish server 4.0 in which I have assigned different authorities/roles to different users. A user may have multiple authorities/roles. For example, an admin user may be associated with ROLE_ADMIN (to perform administrative tasks) and…
Tiny
  • 27,221
  • 105
  • 339
  • 599
6
votes
1 answer

How can I configure a Swagger in Glassfish 4 without a web.xml?

The Swagger documentation covers a number of different ways to configure Swagger in an application. Unfortunately all of them leverage web.xml and rely on hard coding the api version and base url in the web.xml Is there a way to configure Swagger…
lucasweb
  • 1,736
  • 5
  • 28
  • 42
6
votes
1 answer

Arquillian with Glassfish V4

There is an official, "Arquillian GlassFish Embedded 3.1", plugin. Should this work with Glassfish V4, or is it a headache in the making? Is there some other way to test Glassfish V4 with Arquillian?
le3th4x0rbot
  • 2,493
  • 23
  • 32
6
votes
6 answers

Glassfish 4, JSF 2.2 and PrimeFaces FileUploadEvent not working together

After upgrading to GlassFish 4 and JSF 2.2 Primefaces FileUploadEvent stop working. With JSF 2.1 it was working with no problem. Everything is working fine except file uploading. Is there something that I am missing? GlassFish 4 JSF 2.2 …
Pinchy
  • 1,506
  • 8
  • 28
  • 49
5
votes
2 answers

Is the GlassFish project still alive?

I wonder if the GlassFish project is dead or still alive? I am realy a fan of glassfish from the early first days. I started projects with GlassFish2 and have lot of customers using GlassFish3. Since a few months I try to migrate some of my projects…
Ralph
  • 4,500
  • 9
  • 48
  • 87
5
votes
1 answer

Why does Weld in GlassFish 4.1 call @PreDestroy method on already destroyed ViewScoped beans after call to invalidateSession?

I noticed this morning that my JSF application running on GlassFish 4.1 was throwing the following error when my users log out of the web application: WELD-000019: Error destroying an instance null of Managed Bean [...MyAuthenticator] with…
Reed Elliott
  • 223
  • 2
  • 15
5
votes
1 answer

Netbeans 7.3.1 add server Glassfish 4.1

I updated Glassfish server from 4.0 to 4.1 but now if i add it in Netbeans 7.3 I have "Not a valid GlassFish Server installation" .Netbeans doesn't find Glassfish. How can i solve without install Glassfish 8.0.1?
Alex
  • 2,075
  • 5
  • 27
  • 39
5
votes
1 answer

deploying web app to external glassfish4 instance with maven cargo plugin

I'm trying to deploy an app using cargo, this is the config for it: org.codehaus.cargo cargo-maven2-plugin 1.4.9
5
votes
2 answers

java.lang.IllegalArgumentException: URLDecoder: Incomplete trailing escape () pattern

I have a URL like, http://localhost:8080/Project-war/utility/Login.jsf?fallback=%2FProject-war%2Fpublic_resources%2FShowDetails.jsf%3Fid%3D9 This URL is formed, when a login page is requested. The return URL to which the request is to be redirected…
Tiny
  • 27,221
  • 105
  • 339
  • 599
5
votes
2 answers

Primefaces dialog from bean only shows once

I'm trying to show a dialog from a bean as described in this PrimeFaces ShowCase. The thing is everything works as expected and dialog shows up, BUT if I close the dialog and then press the button again, the dialog won't show up unless the page is…
dic19
  • 17,821
  • 6
  • 40
  • 69
5
votes
0 answers

No [ManagedType] was found for the key class [entitiy class] in the Metamodel

I am working on a project using spring-data-jpa(1.3.2.RELEASE), eclipselink(2.5.1) over netbeans(8.0) with glassfish server(4) and maven. The project is running fine until the second deployment in the running server. This is the…
cdesh
  • 113
  • 8
5
votes
2 answers

JPA and Postgres sequence pre-allocation size setup incorrectly

I am not able to perist any Entity because of a problem with sequence. I use Glssfish 4, Postgres 9.3 + JPA + EJB3 and Netbeans 8. Below the excpeption: Finest: persist() operation called on: MyUser{id=null, email=a@e.it, password=test, …
user3556667
5
votes
1 answer

Java EE7 websocket initialization - implement logic before first @OnOpen

I think this is more a design specific question, than direct coding issue. I want to implement a websocket service which serves an updated dataset from a foreign http:// resource to the clients. but i want to have the data available before the first…
raptaML
  • 140
  • 8