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

Error when publishing CXF WebService to Glassfish4

When publishing a CXF WebService to Glassfish4, I get the following error message: deploy is failing=Error occurred during deployment: Exception while deploying the app [...] : The lifecycle method [close] must not throw a checked exception.…
0
votes
2 answers

Updated Glassfish 3.1 to 4.0, application fails with Nullpointerexception

I updated my glassfish server from 3.1 to 4.0, and I have to web applications. Both of them use Spring 3.1, Hibernate 3.5 and Icefaces 3.1, and both have the same configuration. When I start one application, it loads, and I can use it. But when I…
KatieAmber
  • 77
  • 12
0
votes
1 answer

Team Development Strategy for Glassfish

Our developers must first develop the application on their local and then version to dev environment for testing as a version. I have currently two ideas. 1) Every developer installs to his own computer a glassfish server. When the change is ready,…
Half Diminished
  • 193
  • 1
  • 11
0
votes
2 answers

Tables for entities with boolean fields not created

i tried to switch a connection pool in GlassFish 4 from MySQL to Derby. I am using Spring-Data-JPA with JPA/Hibernate. The problem is that not all tables are created with the derby pool. The tables for entities which have at least one boolean field…
Marcello90
  • 1,313
  • 4
  • 18
  • 33
0
votes
1 answer

Why vaadin duplicates View's methods invocation?

Navigator class: @CDIUI @Title("RUT — Remote University Tool") public class NavigatorUI extends UI { public static final String MAINVIEW = MainView.NAME; @EJB private TestCRUDService testCRUDService; @EJB private…
user2966560
  • 379
  • 2
  • 5
  • 16
0
votes
2 answers

JPA, relationship between entity, table and class name

I am new to JPA and have a question concerning naming. I recently had some trouble where I got errors saying something like that there where two entities with the same name in my persistence unit. (I was stupid and did not save the error message) I…
numfar
  • 1,637
  • 4
  • 18
  • 39
0
votes
1 answer

viewParam returning a null value

I am trying in my application to get the id of the current user when he create a document to register that document with the id of the user. But when using the user id in the doument bean is allways null. Here is my code : …
MeknessiHamida
  • 185
  • 1
  • 8
  • 28
0
votes
1 answer

Why won't GlassFish start?

I am trying to start GlassFish 4, but I get these error messages: Bad Network Configuration. DNS can not resolve the hostname: java.net.UnknownHostException: duboiss-mini-2: duboiss-mini-2: nodename nor servname provided, or not known Help?
tbodt
  • 16,609
  • 6
  • 58
  • 83
0
votes
0 answers

JavaEE7 Tutorial Websocket dukeetf2, socket remains open after browser tab closed

In the JavaEE7 tutorial dukeetf2 websocket example: Why does the server keep sending the messages after the browser tab on the client is closed? Why is the ETFEndpoint @OnClose never called? I understand that the timer service keeps hitting send…
Sphynx
  • 492
  • 5
  • 13
0
votes
1 answer

websockets spring glassfish 4

I am trying to build a simple didactic websocket application using spring 4.0, jsf and glassfish 4.0. I have created a maven web project (because this app has another web component(jsf)), and from this app i`m trying to setup some websockets. …
Videanu Adrian
  • 972
  • 3
  • 16
  • 41
0
votes
1 answer

Execute batch job (JSR 352) on startup

I have a batchjob and need to run it up the application. He makes the call for the job, but the job does not reach the method. BatchRuntime.getJobOperator().start(JOB_NAME, new Properties()); Throws no errors. So it seems that he is looking for the…
DudisRoyer
  • 15
  • 7
0
votes
1 answer

Develop and deploy RESTful web service

I followed Creating a RESTful Web Service Using NetBeans IDE. I implemented all the steps from step no 1 to 6 successfully and able to test my REST web service on my machine. But now I want to deploy my web service for stand alone Glassfish v4…
Manoj Fegde
  • 4,786
  • 15
  • 50
  • 95
0
votes
3 answers

Spring Security deployment error

For the last 4 hours I've been trying to solve the issue, but I simply can't see what is wrong with it.. [And it's not even a midnight yet :) ] I'm having a trouble to deploy a Spring MVC application on Glassfish server. Here's the output of…
xagaffar
  • 683
  • 8
  • 16
0
votes
1 answer

Grizzly supported war deploy failed in Glass fish

In my glass fish server 4.0 deploying of normal war files done well. But while deploying Grizzly commet application war file deploying is failed. Is their any another way to make glass fish to deploy the Grizzly enabled applications. And error I got…
user2976215
  • 51
  • 1
  • 8
0
votes
2 answers

Problems deploying Jersey 2.x webapp on Glassfish 4.0

Like many others, I've experienced issues deploying Jersey webapps onto Glassfish 4.0. I've scoured similar postings but have not found anything that resolved the deployment errors I've been seeing. The apps I'm trying to deploy/run did so…
samseven
  • 33
  • 1
  • 6