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

Create Remote Consumer for JMS Queue in standalone app

I have a JMS implementation (producer and consumer) in my server Glashfish 4. The consumer code works when I executed as appclient in glashfish. Producer.java @Resource(lookup = "java:comp/DefaultJMSConnectionFactory") private static…
Gere
  • 2,114
  • 24
  • 24
0
votes
1 answer

could not get a field value by reflection hibernate JPA + GF 4

I am using JPA 2.1 with Hibernate 4.3.x on Glassfish 4, also tried the suggestion listed at https://coderwall.com/p/e5fxrw still get the below error. Could some one let me know what might be the issue ? javax.persistence.PersistenceException:…
Ayub
  • 599
  • 3
  • 10
  • 24
0
votes
1 answer

JSF Ajax CommandButton different level

I have an ajax request which outputs me a dataTable and form each row i also want to execute a button.Sadly no event gets invoked and i think it is because the second button is on a different level than the first search button. JSF looks something…
perotom
  • 851
  • 13
  • 33
0
votes
1 answer

Do glassfish application running on port 80

I have a java application running on glassfish 4.1, the url to access the system is a sobdomain, eg subdomain.mydomain.com:8060/ProjectName I wanted to make it work without entering the port (subdomain.mydomain.com/ProjectName) . I've tried to…
jucajl
  • 1,195
  • 3
  • 12
  • 29
0
votes
1 answer

How to add Glassfish 4.1 Server runtime to Eclipse Indigo?

I have been using Eclipse Indigo and would like to deploy my projects to the new Glassfish 4.1 server downloaded recently. The Glassfish Tool for Indigo plugin does not allow me to add a Glassfish 4.0 (and plus) server runtime and it only allows a…
alextc
  • 3,206
  • 10
  • 63
  • 107
0
votes
0 answers

GlassFish 4 glassfish-acc.xml file: What is the purpose of the name attribute of the target-server element?

In the GlassFish 4 glassfish-acc.xml file, what is the purpose of the name attribute of the target-server element? It seems that this file has something to do with IIOP. Different installs of GlassFish 4 have different values for that attribute, but…
XDR
  • 4,070
  • 3
  • 30
  • 54
0
votes
0 answers

Does glassfish support proxy protocol headers?

Does glassfish support proxy protocol headers? If so, how do I enable them? I'm using glassfish 4.1 b13 pre-release. I have not been able to find any documentation anywhere that states either: how to enable proxy protocol header support in…
XDR
  • 4,070
  • 3
  • 30
  • 54
0
votes
2 answers

Why is GlassFish 4 not validating the members of my @Valid @ElementCollection field?

I created the following Entity and embeddable: @Entity public class Person implements Serializable { @NotNull @Pattern(regexp = "([A-Z][a-z]*)*", message = "First Name must match pattern ([A-Z][a-z]*)*") private String firstName; …
0
votes
1 answer

Spring MVC asynchronous request timing out intermittently when DeferredResult passed to an Akka actor

I have implemented various Spring MVC REST endpoints to expose services that return a DeferredResult which is handed off to an Akka TypedActor to be completed. The application is deployed into a Glassfish 4 server. Generally the services execute and…
nickebbitt
  • 1,711
  • 1
  • 13
  • 13
0
votes
1 answer

GlassFish Server still showing as "Running" when I open http://localhost:8080/ but server status in NetBeans shows that server is not running

While working on NetBeans I am using GlassFish 4.0. The server is not running through NetBeans, as in it has not been started and yet http:// localhost : 8080/ shows that the server is running. What am I missing here?
nyxneha
  • 11
  • 1
  • 2
0
votes
3 answers

Glassfish TimeoutException when adding custom logger

EDIT: I have a static initializer block in my custom Handler. When I remove this it runs fine. I suspect there is something wrong in the static initializer. It tries to access some System properties and some LogManager properties. Im running…
Roland
  • 7,525
  • 13
  • 61
  • 124
0
votes
1 answer

Writing HK2 components in GlassFish 4?

In version 3 there is this guide on how to write components(including HK2 components): Oracle GlassFish Server 3.0.1 Add-On Component Development Guide This documentation is not available with GF4. Why not? Why am I asking? Because I want to write a…
Roland
  • 7,525
  • 13
  • 61
  • 124
0
votes
0 answers

Glassfish Tyrus ServerEndpoint instantiation failure - how can I diagnose the error?

I have a ServerEndpoint class that throws this error as soon as I attempt to connect to it from the client. I presume that some sort of dependency is missing, i.e a bundled library that is missing another jar, although it may be some other…
Atorian
  • 777
  • 10
  • 26
0
votes
1 answer

More than one logfile for Glassfish?

I'm running an application on GlassFish 4. I would like to have more than one logfile, so that I can log messages processed in MDBs(Message driven bean) into a special log file and not into the general Glassfish logfile. How can I do that?
Roland
  • 7,525
  • 13
  • 61
  • 124
0
votes
1 answer

How can I define Glassfish jdbcRealm values in Cloudbees

I want to set up jdbc realm for my glassfish app on cloudbees. According to glassfish4 setting JAAS authentication tutorial on cloudbees, it seem cloudbees sets the following values automatically: user_table to cb_users, group_table to cb_groups,…
DonKariro
  • 71
  • 7