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
0
votes
1 answer

Cannot use JPA in Glassfish v4

On Glassfish v4, in this ultra-simple application, I am getting the error: javax.persistence.PersistenceException: No Persistence provider for EntityManager named local when I access the URL: localhost:8080/demo/main I thought Glassfish v4 is…
necromancer
  • 23,916
  • 22
  • 68
  • 115
0
votes
0 answers

Glass fish 4 start failed in netbeans 7.3.1

I've installed Netbeans 7.3.1 with GlassFish Server 4 but when I run web application(JSF-primcefaces + Hibernate) the default jsp(index.xhtml) page or any other pages I got the…
Guest Guest
  • 411
  • 1
  • 6
  • 9
0
votes
2 answers

EJB unknown abstrat schema but it exists in the DB

I'm blocked on this problem for many hours and I don't understand the problem as it works fine with another entity of my project. I created a Java EE project with Glassfish 4, JPA 2 and EJB 3 in Eclipse IDE. I'm using a mysql database for storing. I…
Atn Casa
  • 3
  • 3
0
votes
1 answer

Why can't the login page for form-based authentication be written in JSF?

I'm just starting down the track of developing web apps and have started with JSF 2.2 on Java EE 7, GlassFish 4. I thought I'd start with the very basics. I just want to protect the entire site, so every page you navigate to would first require you…
Paul
  • 328
  • 3
  • 16
0
votes
1 answer

EclipseLink Expecting to find object/array on stack

I am getting the belo error while deploying an EAR (example of chapter 8 - EJB 3 in Action ) in glassfish4. I didn't find anything much on this error. Please help me resolve this error. SEVERE: Exception while deploying the app [chapter8-ear] :…
Kiran Mohan
  • 2,696
  • 6
  • 36
  • 62
0
votes
1 answer

Passing JSF URL parameters to CDI Bean

I am in the process of redesigning a project and I've come across what I think is a bug but Im confused as to where the bug is originating from. Basically all I am trying to do is pass a URL parameter to the backing bean. Nothing magic and there are…
tarka
  • 5,289
  • 10
  • 51
  • 75
0
votes
1 answer

Do I need to include the Jersey Jars in my EAR on Glassfish4.0 server?

I am trying to use Firefox poster to test a Jersey restful webservice running on Glassfish 4.0. I am getting a HTTP Server 500 error returned to the Poster output when I return a java class as xml. I do not get an error when I return a String as…
spartikus
  • 2,852
  • 4
  • 33
  • 38
0
votes
1 answer

glassfish 4 & MySQL & JSTL

I'm using Netbeanse 7.3.1 + Glassfish 4. I wrote simple web application using JSTL <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
Kuzmit4
  • 1
  • 2
0
votes
1 answer

Does Glassfish or applications require a restart after deploying a shared library?

If I have a glassfish application that depends on a shared library that is running, I deploy the shared library again with updates, do I have to restart the application that depends on that shared library or will the application pick it up?
ColinMc
  • 1,238
  • 3
  • 16
  • 33
0
votes
2 answers

Constants in EL 3.0 - Function 'T' not found

I believe the syntax for constants in EL 3.0 is #{T(java.lang.Integer).MIN_VALUE} but then glassfish throws a javax.el.ELException: Function 'T' not found. Here's the full stack trace: javax.el.ELException: Function 'T' not found at…
synti
  • 67
  • 7
0
votes
1 answer

Cannot create a session after the response has been committed - PrettyFaces MultiPageMessagesSupport on Glassfish4

I have a Java EE app where I use JSF2 + PrettyFaces + EBJ3 + Glassfish I just recently updated to Glassfish4 which is the default Server implementation for Java EE 7 and I started getting issues with PrettyFaces. I have configured on my…
guilhebl
  • 8,330
  • 10
  • 47
  • 66
0
votes
2 answers

Declarative security for java ee application

I'm creating a web application using Java ee. I have a glassfish v4 server and right now I'm trying to get the security to work by specifying security constraints in my web.xml file. My application is called linkUI, and I wanted to try to create a…
numfar
  • 1,637
  • 4
  • 18
  • 39
-1
votes
0 answers

Issue with compiling .jsp files in Glassfish after updating Java version

I have glassfish 4.1 running on AWS Linux Machine. Recently I tried updating java on that machine. Everything works fine, But I am getting issues with compiling .jsp files. The previous java version : java version "1.8.0_20" Java(TM) SE Runtime…
Divya
  • 1
-1
votes
1 answer

How to fix java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory

I have adf 1.2.2.1.4 application in glassfish 4.1 and my reports didn't work and show this error: i'm using jasper report 5.6.0 i have this jar : 1- jasperreports-5.6.0 2- jasperreports-chart-themes-5.6.0 3- jasperreports-fonts-5.6.0 4-…
Mohamed.ha
  • 31
  • 5
-1
votes
1 answer

Out Of Memory Error even Heap Memory is not Completely Use

I am facing Out of memory error in java heap space I am using glassfish server for deployment of my maven based application, and Java JDK is 1.7. I have configured my glassfish server domain.xml as MaxPermSize is 512M and Xmx is 1024M , as…