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

GlassFIsh4 unable to inject into WebSocket Endpoint

I'm trying to use websocket on GlassFish 4, but CDI seems doesn't work for WebSocket. @ServerEndpoint("/websocket") public class WebSocket { @Inject private TestBean bean; ...... } The bean will always be null. I have searched google,…
bjgoblige
  • 13
  • 2
1
vote
1 answer

Using SIGAR to get oracle process info, from a web app server (glassfish4)

I have been working on a web monitor using sigar to gather the System information, but now i need to get the Oracle's RAM and CPU usage. I did it using sigar.getProcCpu(pid).getTotal() function. But when i deploy the app on glassfish 4, i get the…
JoseGarcia
  • 11
  • 1
1
vote
3 answers

JMS 2.0: Shared-Durable-Consumer on Topic vs Asynchronous-Consumer on Queue; Ref. Official GlassFish 4.0 docs/javaee-tutorial Java EE 7

Ref: Official GlassFish 4.0 docs/javaee-tutorial Java EE 7 Firstly, let us start with the destination-type of: topic. As per GlassFish 4.0 tutorial, section “46.4 Writing High Performance and Scalable JMS Applications”: This section describes how…
1
vote
1 answer

Primefaces 4.0RC1 menuBar with model attribute model throws Exception when rendering view

I have updated my primefaces version to 4.0RC1 since it supports JSF 2.2. (Over Glassfish 4) i'm using a primefaces menubar to display my app menu, it used to work fine in primefaces 3.5 but it doesnt work anymore.
Juan
  • 467
  • 1
  • 5
  • 19
1
vote
0 answers

What does it take to get a War from Play 2.1.1 for deployment into Glassfish Server

I have been trying to deploy a Play 2.1.1 application that has been running in Netty as a stand alone web application. For IS/Infrastructure purposes we are obliged to host the application in Glassfish. We have been building the War with the…
Yoztastic
  • 862
  • 2
  • 8
  • 21
1
vote
1 answer

how to send jms reply in an enterprise java applications

HI guys I have to develop an application where i have to build a bridge between two enterprise application and I am using JMS to establish the communication between these two application. Here I am using Message Driven Bean to send the JMS message…
monty
  • 23
  • 5
1
vote
1 answer

primefaces-push with glassfish-4 and Atmosphere: filter or servlet that does not support asynchronous operations

Using atmosphere-runtime-2.0.0 together with glassfish 4 and primefaces-4.0.RC1 i get spammed with the below error stacktrace. This only happens on one of my glassfish-4 installations (linux+openjdk) but not the other one running the same app on…
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
1
vote
2 answers

Lost Date-Information with JAX-RS 2.0 and Glassfish 4

i implement an simple REST-WebService with JAX-RS 2.0 and Glassfish 4. My problem is, if i send an Date or Calendar to the WS, the pojo lost the Dateinformation an the values are NULL. In my WebService i set the Date tmp.setDate(1) and in my…
Tim
  • 643
  • 3
  • 12
  • 23
1
vote
2 answers

How JAXB/Jersey unmarshall Boolean values?

I have an issue with some RESTful services that takes a transfer object in parameter (basically an XML object that will be unmarshalled to a POJO). @XmlRootElement(name = "myPojo") public class MyPojo { @XmlElement(name = "myField") private…
Laurent
  • 156
  • 2
  • 11
1
vote
2 answers

Installing Java EE 7 SDK on Debian 7.1.0

For all the day I'm trying to install Java EE SDK 7 on my computer in which it is installed Debian 7.1.0. My problem is that the process of installation start well but for an weird reason it remains stucked during the creation of the domain when it…
Mazzy
  • 13,354
  • 43
  • 126
  • 207
1
vote
1 answer

Problems to use embedded EJBContainer in Glassfish 4.0

I'm working on Junit tests do validate SessionBeans in my project. There are a local session bean with no interfaces and I want to lookup it in my test. So, I put this dependence in pom.xml of my ejb module (same of the test):
Diego Pessoa
  • 93
  • 1
  • 10
1
vote
1 answer

JSF: Bean constructor called twice on initial loading of page

I am reading Java EE 7 tutorial. In chapter 13.12, there is an example application, ajaxguessnumber. I run the example in Glassfish 4 and everything works fine. I then put System.out.println in bean constructor and I realized that the constructor…
CodeHelp
  • 1,328
  • 5
  • 21
  • 37
1
vote
1 answer

Calling a remote ejb on a different glassfish 4.0 instance

I have two servers installed. Both are running an own Glassfish 4.0 domain. On one server, I've installed an Singleton Remote EJB. This Glassfish has an IIOP-Listener specified (name=UF enabled=true network adress=192.168.10.95 listener…
user2637851
  • 41
  • 1
  • 4
1
vote
1 answer

Websocket client can not be deployed to Glassfish

Dear Stack Overflow Geeks, I'm trying to create a very basic Java client-server app using Java EE 7 and the intention is to send a message via websocket using JSR 356 implementation. I've programmed and deployed the server successfully following…
cSn
  • 2,796
  • 3
  • 23
  • 29
1
vote
3 answers

Glassfish javax.ejb.EJBException

I have problem trying to deploy Java Enterprise web application with EJB and JSF web module. Application builds successfully but when it gets deployed to Glassfish 4 server, I get this exception javax.ejb.EJBException at…
Vuk Stanković
  • 7,864
  • 10
  • 41
  • 65