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
0 answers

JSP request.contextPath

Software version: Glassfish 4.1.x In a JSP, when trying to access the context path, the following code works (for me): ${pageContext.request.contextPath} However, when shorten to: ${request.contextPath} then, either it does not evaluate and…
pntran84
  • 463
  • 1
  • 3
  • 11
0
votes
2 answers

Glassfish 4.1 java.lang.OutOfMemoryError exception

My application has been running on glassfish server for quite some time now and today one of application user warned me that server was shut down unexpectedly. In server log I see following stack-traces (10 identically stack-traces before server was…
user4341206
  • 647
  • 1
  • 7
  • 26
0
votes
1 answer

Glassfish 4: Why do I have many old transaction logs? (In /logs/server/tx/)

Looking at directory myDomain/logs/server/tx, I see many (over 300) extent.* files from various dates (some are over 2 months old). I'm trying to understand (1) why do I have so many of such files, (2) at what circumstances are they created/deleted…
S. D.
  • 788
  • 5
  • 15
0
votes
2 answers

How to deploy play framework 2.4 application on glassfish and read application.conf

I tried to deploy play framework 2.4 application on glassfish. I used maven play2 plugin and made war file with the following instruction. https://play2-maven-plugin.github.io/play2-maven-plugin/1.0.0-beta4/war-packaging.html After that, I tried to…
0
votes
2 answers

Where would i put .war file in glassfish server?

I have started WebApplication1 from netbeans, now where would i put the .war file in glassfish server? Here? /home/shibly/GlassFish_Server/glassfish/domains/domain1/applications/__internal I see an empty folder named WebApplication1 in…
cola
  • 12,198
  • 36
  • 105
  • 165
0
votes
0 answers

closeListener in p:dialog not invoked

Very simple dialog. I want a method to be called when it is closed by clicking on the x. However the listener is not called. It's not in the generated source code either. I'm using Primefaces 2.1 with Glassfish4. xhtml:
Binh
  • 99
  • 12
0
votes
0 answers

Glassfish doesn't deploy all modules of the war

I am using netbeans 8 and glassfish 4.1. I am trying to deploy a war on glassfish. But all the modules of the war do not get deployed. There are a total of 4 modules out of which only 2 modules get deployed. The same war deploys correctly on the…
wib
  • 425
  • 3
  • 17
0
votes
2 answers

Get Glassfish 4.1.1 from JMX

I wan to get Glassfish version from JMX using Java code. I tried to search in JConsole tool but still I can't find it is there any way to get this data?
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
1 answer

GlassFish server not start in eclipse

i have tired setup glassfish server in eclipse , i have do not understand what is my fault? 1. jdk1.7.0_71 2.glassfish 4.1 3.Eclipse Luna enter image description here
brids
  • 25
  • 2
  • 11
0
votes
1 answer

Runtimeexception on admin console of GlassFish

I downloaded the latest version (4.1.1) of GlassFish, unzipped to a local folder, started the domain with command asadmin start-domain from the bin directory. I Opened the admin console of the server on web browser and clicked the new button on…
Johnyzhub
  • 382
  • 2
  • 4
  • 18
0
votes
1 answer

Why can't I ping my database from JDBC Connection Pool?

I've been following this link to set up a MySql connection pool for glassfish server (located on a Debian server machine). When trying to ping the database (located on a CentOS server machine), I get the following error from glassfish server: Ping…
0
votes
1 answer

Remove jsessionid from wicket6/glassfish4 application

I was tasked with modifying a wicket6/glassfish4 application so that the session id changes as soon as a user logs in. This is to avoid the problem of Session Fixation. I used the replaceSession() method (from the wicket Session class), which does…
0
votes
2 answers

Glassfish does not show my webservices

I have a very simple webservice as follow: package testSmart; import javax.jws.*; @WebService public class Add { @WebMethod public int addElem(int i, int j){ return i+j; } } Now when I use the following…
HMdeveloper
  • 2,772
  • 9
  • 45
  • 74
0
votes
1 answer

JPA Unidirectional ManyToMany unable to delete

I am working on an web application running on GlassFish 4.1.1, using EclipseLink 2.6.1. I have a unidirectional ManyToMany relationship between Users and Projects, and when I remove elements from User.projects and merge the User, the join rows are…
thomjah
  • 43
  • 5
0
votes
1 answer

How do I increase the max pool size for JMS queue with Glassfish Server

I am dropping messages on an MDB in a loop and I can see in my logs that I keep running out of available connections. Caused by: com.sun.messaging.jms.JMSException: MQRA:CFA:allocation failure:createConnection:Error in allocating a connection.…
john.p.doe
  • 411
  • 2
  • 10
  • 21