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
5
votes
3 answers

Accesing JobContext from a partitioned step in JSR 352

I'm trying to pass an object between batchlets, but I've encountered a problem when trying to access the jobContext from a partitioned step (batchlet). According to the JSR 352 Specification 9.4.1.1 Batch Context Lifecycle and Scope: A batch…
5
votes
2 answers

ViewExpiredException error page not shown

I leave some tabs open with forms and when I press the command buttons (after some time when the session expires) I receive a java script alert saying: serverError: class javax.faces.application.ViewExpiredException viewId:/register.xhtml - View…
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
5
votes
2 answers

How to fix a javax.naming.NamingException: Lookup failed

I'm trying to persist an entity via a simple jsp form but it doesn't work. the exception that appear is : javax.naming.NamingException: Lookup failed for 'java:global/jee-projet-web'. I'm using glasfish as server. This is the code of my form: <%@…
fayabobo
  • 81
  • 1
  • 1
  • 7
5
votes
2 answers

Inject @SessionScoped CDI Bean to @Stateless EJB

I'd like to inject a sessionscoped CDI bean into a stateless EJB. At access time of the EJB the correct instance of the sessionscoped cdi bean (i.e. the one in the sessionscope of the caller) should be used. I know that I can solve this with a…
Korgen
  • 5,191
  • 1
  • 29
  • 43
5
votes
1 answer

How to setup an empty password for a MySQL connection pool in glassfish 4 from the GUI?

Im being unable to set an empty password for a MySQL connection pool from the GUI in glassfish 4. In previous versions of glassfish it used to work by simply putting "()" without the quotes. It doesnt work anymore for me in glassfish 4. By the way,…
Juan
  • 467
  • 1
  • 5
  • 19
5
votes
1 answer

How to upgrade Jersey 2.2 to Glassfish 4?

I've tried to upgrade the Jersey 2.2 to the Glassfish 4 by replacing the following jars at the [gf_home]/glassfish/modules with version…
Charlee Chitsuk
  • 8,847
  • 2
  • 56
  • 71
5
votes
1 answer

REST Service errors with: resource is not available Glassfish 4.0 JAX-RS 2.0

I am trying to deploy a simple JAX-RS service on Glassfish 4.0 and keep getting the following error: HTTP Status 404 - Not Found type Status report messageNot Found descriptionThe requested resource is not available. GlassFish Server Open Source…
Stu
  • 1,153
  • 2
  • 8
  • 16
5
votes
11 answers

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

Before posting this question here: I looked up at 1)Glassfish 3.1.2.2 in IDEA 11.1.4: "PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required" 2) How do I specify the jdk for a glassfish domain? 3)…
uLYsseus
  • 995
  • 6
  • 16
  • 37
5
votes
3 answers

CDI not working after migration to Java EE 7

I recently migrated a simple Java EE 6 project to Java EE 7. In detail this means I just changed the dependency from javax:javaee-api:6.0 to javax:javaee-api:7.0 and deployed it to Glassfish 4 instead of Glassfish 3. Afterwards the application did…
raeffs
  • 595
  • 5
  • 17
4
votes
1 answer

javax.ejb.EJBException: Transaction aborted while inserting record to Derby db table using Entity Manager

hi i'm working on Java EE 7 web application everything works perfect but when i try to create Order which have Many-to-one relationship with two entities i.e. Car and Customer i have tried all other answers that are posted around. please take a look…
weje
  • 69
  • 1
  • 7
4
votes
2 answers

Vaadin "Cookies Disabled" Message in Chrome

I created a Vaadin (8.2.0) web app in Netbeans and uploaded it on a Glassfish (4.1) server. I can access the app's home page in Edge and Firefox, however in Chrome I get this message: Cookies disabled This application requires cookies to function.…
Hamed
  • 1,175
  • 3
  • 20
  • 46
4
votes
2 answers

Jackson Error : java.lang.NoSuchMethodError: `com.fasterxml.jackson.databind.JsonNode.asText(Ljava/lang/String;)Ljava/lang/String`

I tried to validate a JWT authentication token, JWTVerifier verifier = JWT.require(Algorithm.HMAC256("secret")).withIssuer("siat").build(); String token=httpRequest.getParameter("token"); DecodedJWT decodedJWT = verifier.verify(token); following is…
CHHIBI AMOR
  • 1,186
  • 2
  • 13
  • 27
4
votes
0 answers

Deploying maven java web project in netbeans on a remote glassfish server is failing

I have a java web project working fine on my local glassfish server. I need to deploy it to a remote glassfish server using netbeans so I setup the server on an AWS instance of ubuntu and successfully connected it with netbeans. I am able to see…
PC.
  • 132
  • 2
  • 14
4
votes
1 answer

Deploying a logback enabled spring boot app to Glassfish 4/Payara generates gigs of logging

When I attempt to deploy a Spring Boot app to Payara (Glassfish 4) I'm getting huge logs that eventually use up all my disk space. The logging seem to be in some sort of recursive loop like this (see below). Although I can get a deploy working by…
PaulNUK
  • 4,774
  • 2
  • 30
  • 58
4
votes
1 answer

java.lang.NoClassDefFoundError: org/hibernate/service/ServiceRegistry

I am using hibernate-search 5.5.4.Final with hibernate-entitymanager 5.0.9 (matched with hibernate-core 5.0.9). But when i deployed the ejb maven module on glassfish 4.1. I obtained the following exception: Grave: java.lang.NoClassDefFoundError:…