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
1
vote
1 answer

EclipseLink fix not available in Eclipse - Jersey POST/PUT not working

I am using Eclipse Luna (versions 4.4.2) and Glassfish 4 to build a REST web-app using JAX-RS. All POST and PUT operations, which were previously working fine, are now throwing this error on the webserver: Warning: StandardWrapperValve[Jersey Web…
Tom O'Brien
  • 1,741
  • 9
  • 45
  • 73
1
vote
1 answer

How can i make Glassfish server accept multiple concurrent requests?

Am using glassfish 4.1.1 (Windows 7) to host my REST services. I created a simple endpoint that returns a "Hello" string. I then created a client, which sends 50 concurrent requests to perform GET request, but the server only seem to process them 5…
Karthik Balasubramanian
  • 1,127
  • 4
  • 13
  • 36
1
vote
1 answer

JEE, eclipselink, glassfish4.0 can't persist entity

I have a strange problem with my rest application I'm developing. I have created entity class as well as dao class to manage them. Now, when I deploy the application to the server, I can see that my database schema is being updated. Now i have…
kacperb333
  • 11
  • 1
1
vote
0 answers

JAX-RS/Jersey handling HTTP Header in a strange manner when it should produce JSON

A strange thing happens with us, when using Jersey 2.19 on GlassFish 4.1. We are currently migrating old servlet based json services to JAX-RS. With the old servlets, we didn't have any problem with encoding (used JAXB/MOXy for marshalling /…
csabee
  • 217
  • 2
  • 12
1
vote
1 answer

How to set session timeout in / glassfish-web.xml configuration file?

I'm trying to set session timeout in / glassfish-web.xml configuration file, but it is not working (using glassfish4 and NetBeans):
Ernestas Gruodis
  • 8,567
  • 14
  • 55
  • 117
1
vote
1 answer

Can't build my project in NetBeans, I am using Glassfish Server. Every time when I run I got an error the module has not been deployed

GlassFish Server, deploy, SOCKS server general failure, false D:\vaheed@i3\projects\recsol\nbproject\build-impl.xml:1048: The module has not been deployed. See the server log for details. BUILD FAILED` Server Log GlassFish Server Open Source…
1
vote
0 answers

Creating SSL network listener in glassfish4 - how to enter new keystore password?

The goal is to enable SSL on created network listener, by using .jks file which contains required certificates: But entered someKeystore.jks is password protected, and https connection is not working. How can I enter this keystore password in…
Ernestas Gruodis
  • 8,567
  • 14
  • 55
  • 117
1
vote
1 answer

JPA, MySQL and GlassFish crud error

I am using JPA, MySQL and GlassFish in a simple java web servlet netbeans project. It is possible to access (login) but list, edit, destroy and create doesn´t work... "org.apache.jasper.JasperException: java.lang.ClassCastException: model.Person…
user1801745
  • 391
  • 2
  • 18
1
vote
1 answer

Error on hibernate second level caching (Spring 4, Hibernate 4)

I got an error in my glassfish4 and netbeans. Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service…
teodoro
  • 247
  • 7
  • 21
1
vote
1 answer

Failed to send an email after migration from Glassfish 2.1 to Glassfish 4.1

I did a migration of my Client WebApp. Previously, it was running on Glassfish 2.1 and JDK 1.6. Now, it's on Glassfish 4.1 and jdk 1.8. When I try to send an email from my WebApp, the same ".war" packaged in JDK 1.6 (Project facets 1.6) works…
1
vote
1 answer

build-impl.xml : 1052 :The module has not been deployed. See the server log for details

I have seen all answers from stackoverflow and tried each one of them but not able to solve this error as mentioned below (glassfish 4). Exception while deploying the app [SpirngDemo] : org.xml.sax.SAXParseException; lineNumber: 13; columnNumber:…
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
1
vote
1 answer

GlassFish 4.0 CDI deployment failure + Apache Spark

I'm trying to deploy maven application to GlassFish 4.0 on Eclipse using Java 8 and maven-glassfish-plugin. Simplified version of the application has only 1 resteasy service, and maven dependencies. From the moment I add Apache Spark dependency,…
zoran jeremic
  • 2,046
  • 4
  • 21
  • 47
1
vote
2 answers

Glassfish 4.1: war inside ear does not expose webservices

I am currently working on upgrading an application from Java7 running on Glassfish 3.1.2.2, to Java8 running on Glassfish 4.1. The application is packaged as an ear-file, containing an ejb-jar, and a war. The war in turn contains some…
Tobb
  • 11,850
  • 6
  • 52
  • 77
1
vote
1 answer

Delegate a "task"(Ex:Runnable) inside a method of a Session Bean

I have a Stateless EJB method(ejbMethod1) that needs to call a web service operation(wsOper1), if this call fails It needs to call another web service operation(wsOper2). My problem is: I don't need the returning of wsOper2 to return from…
nms
  • 325
  • 1
  • 14
1
vote
0 answers

WebSocket connection to 'ws://localhost:8080/CollabEdit/echo' failed: Error during WebSocket handshake: Unexpected response code: 404

I am trying to use websockets in my Servlets project. J2EE ver. :3.1 Server: Glassfish 4.0 But I get an error that says : WebSocket connection to 'ws://localhost:8080/CollabEdit/echo' failed: Error during WebSocket handshake: Unexpected response…
simi kaur
  • 1,257
  • 3
  • 15
  • 19