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

Hosting for Java EE 7 Restful Webservice MySQL database

I have developed Restful Web service using Java EE 7, Netbeans 7.3.1 and MySQL database on GlassFish 4.0 webserver. Now I am looking to host/deploy it on online server. I have searched for hosting provider for Java EE 7 with MySQL database on…
Developer
  • 25,073
  • 20
  • 81
  • 128
1
vote
1 answer

Java EE 7 + GlassFish 4 - Run bean on startup

Using CDI is there a way to cause a bean to be instantiated when the application server starts up? I would like to be able to do something like:- @Singleton @Startup public class StartupBean { ... } Unfortunately, although the @Singleton annotation…
cbl.adp
  • 244
  • 1
  • 4
  • 16
1
vote
1 answer

Glassfish 4.0 JAX-RS empty HTTP POST MultivaluedMap form parameters

I'd like to ask a question related to an issue I encountered with Glassfish 4.0 Web application deployment. I created a REST Web service application with JAX-RS and deployed it on Glassfish 3.1.2 with no issue. Recently I tried deploying it on…
1
vote
1 answer

CDI / Weld Unsatisfied dependencies problem

I have a strange CDI / Weld issue that I just can't figure out a solution for. I've just installed GlassFish 4 with the intention of moving our main product over to it but when I try to deploy it I get the stack trace shown below in the log files…
wobblycogs
  • 4,083
  • 7
  • 37
  • 48
1
vote
1 answer

Primefaces DataTable+LazyDataModel won't pass setPropertyActionListener in request scope

I have a Primefaces DataTable based on LazyDataModel. I successfully managed to load data in the table but I am not being able to use setPropertyActionListener to show the selected items in a Dialog nor to edit rows. I am using request scope and I…
Erick Martinez
  • 805
  • 1
  • 9
  • 11
1
vote
1 answer

Upgrade from Netbeans 7.2.1 to Netbeans 7.3.1 classpath error

I recently upgraded from Netbeans 7.2.1 to Netbeans 7.3.1. I have an existing GWT project using JDK 7 EE. Upon setting up Netbeans 7.3.1 to point to Glassfish 4 and redeploying to the new server, I see this warning in the output window of…
Engineer2021
  • 3,288
  • 6
  • 29
  • 51
1
vote
2 answers

Spring Webflow: Error Rendering view java.lang.UnsupportedOperationException at javax.faces.context.ExternalContext.getClientWindow

I'm using mojarra 2.2, gf4, swf 2.3.2. The problem comes during loading of the pages in webflow. the error comes when webflow (i think) is sending the pages to faces for rendering. I have tried with swf2.0.8 upto the current swf2.3.2. INFO: …
1
vote
1 answer

Exception starting filter WebSocket filter netbeans 7.3 glassfish 4

i am trying to implement simple video transfer between two html pages using java websocket api. The webcam server captures the webcam and sends to server endpoint which broadcasts to every connected clients. The webcam server code
1
vote
1 answer

Log4j2 on EJB module with glassfish java.lang.NoClassDefFoundError: org/slf4j/ILoggerFactory

I have a EJB Module using Netbeans and glassfish 4, and log4j2. I have a Singleton Session Bean with an schedule. This is my class: import javax.ejb.EJB; import javax.ejb.Schedule; import javax.ejb.Singleton; import…
xav56883728
  • 315
  • 1
  • 8
  • 20
1
vote
2 answers

Is there a way to use Hibernate 4.2.2 with Java EE 7 and Glassfish 4?

I'm made a small test project using Java EE 7 and Hibernate 4.2.2 and Glassfish 4. Here are my pom.xml (web) javax javaee-web-api
1
vote
1 answer

Maven Glassfish plugin for glassfish 4

I recently upgraded to the recently released Glassfish 4.0 together with Java EE 7. But I am having issues on using the Maven Glassfish plugin. It doesn's seem to pick the values stored in my project pom.xml
guilhebl
  • 8,330
  • 10
  • 47
  • 66
1
vote
1 answer

Bug in GlassFish 4 or Tyrus: Decoder#willDecode is called twice for each ByteBuffer?

I wrote the most simple application that uses WebSockets. My back end is GlassFish 4 build 89, my front end is a JavaFX 2.2 application client that uses Tyrus 1.0 RC3, the reference implementation of Java API for WebSockets. GlassFish uses Tyrus too…
Martin Andersson
  • 18,072
  • 9
  • 87
  • 115
1
vote
2 answers

JSF 2.2 html5 friendly page

Some sources indicate that it's possible to use non-obtrusive jsf:id attributes in a JSF2.2 page. https://weblogs.java.net/blog/edburns/archive/2012/11/01/html5-friendly-markup-jsf-22 http://www.apress.com/9781430244257 The taglib descriptors use…
Cloud
  • 458
  • 1
  • 13
  • 34
1
vote
1 answer

Cannot perform CDI in Glassfish 4.0

I am trying to run a particularly simple test case using the latest promoted build of Glassfish 4.0. I have tried placing META-INF/beans.xml in all possible permutations including its own jar in WEB-INF/lib The best I get is the following errors…
necromancer
  • 23,916
  • 22
  • 68
  • 115
0
votes
0 answers

Force Glassfish4 to use Guava from ear

I have a maven project with an EJB and a war. For my use case, I have to use minIO which uses guava-30.1.1-jre. I am using GlassFish version 4 and inside the modules of GlassFish, an older version of Guava can be found. For war, I can use
Asgar
  • 1,920
  • 2
  • 8
  • 17