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

Eclipse with Glassfish 4 DEBUG source lookup not working

I'm running Eclipse Kepler with Glassfish 4. I'm developing a set of bundles/plugins, which get deployed to the glassfish autodeploy folder. Also deployed to that folder are bundles from my target definition. The problem is when debugging the source…
Roland
  • 7,525
  • 13
  • 61
  • 124
0
votes
1 answer

Java EE, Maven project - CDI deployment failure in Glassfish4

I am working in a Java EE maven project and I'm experiencing problems with dependency injection when attempting to deploy to a Glassfish4 server. The maven project is structured in three separate modules under a top level pom like…
Dalamar42
  • 107
  • 2
  • 8
0
votes
2 answers

glassfish 4.0 admin console connection pool ping fails

With this error: Ping Connection Pool failed for postgreSQLPool. Connection could not be allocated because: FATAL: database "/localhost:5432/mydatabase" does not exist Pool configuration is as follows: Pool Name: postgreSQLPool Resource Type:…
user3344455
  • 1
  • 1
  • 1
0
votes
1 answer

Change the log language of DerbyDB/JPA

I'm using Eclipse to code a Java EE application. I deploy to Glassfish 4 AppServer. As DB I use the DerbyDB that is part of Glassfish. My Eclipse is set up in English language. But when I start the server (and Derby with it) I see this log: …
KFleischer
  • 942
  • 2
  • 11
  • 33
0
votes
1 answer

JSF calling method with non String parameters

I have in my JSF: The action is underlined in red in…
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
0
votes
1 answer

JSF 2.2 h:selectOneMenu Validation error. Based on non english chars?

My jsf facelets webapplication uses h:selectonemenu which is populated (from mysql DB) with names, written with english and thai characters. Deployed on glassfish-3.1.2.2 jsf 2.1, there is no problem at all. Deployed on glassfish-4.0 jsf 2.2 EE7,…
0
votes
1 answer

JSF custom converter fails on unicode string

Tweaked the converter from this answer // @FacesConverter(forClass = Crew.class) // no injection @ManagedBean @RequestScoped public static class CrewConverter implements Converter { @EJB private CrewService cs; @Override public…
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
0
votes
1 answer

Which dependencies do I need for Jersey 2.5.1 @JSON and @JSONP Annotations?

I'm using Netbeans 7.4 with Glassfish 4.0. I tried to follow some online tutorials, but I am stuck at to this point: @GET @JSONP @Produces({"application/json", "application/javascript"}) public JaxbBean getSimpleJSONP() { return new…
Jen-Ya
  • 328
  • 4
  • 14
0
votes
0 answers

Unwrap GlassFish 4 JDBC Connection

I'm trying to use these methods to access a JDBC Connection Pool on my GlassFish 4 server. However, the method at line 16 doesn't compile, because the parameter is invalid (it will only accept a pair of Strings). Am I missing an Oracle library on…
MTCoster
  • 5,868
  • 3
  • 28
  • 49
0
votes
1 answer

Can't deploy websocket application in glassfish4 server

I am following the JavaEE7 Hands on lab by arun gupta. https://github.com/javaee-samples/javaee7-hol I have deployed the application in JBoss Dev Studio +wildfly 8 server+Windows7. It's working fine. But when i deploy the same in…
Naidu
  • 95
  • 1
  • 10
0
votes
0 answers

Method getUserPrincipal in Websockets implementation for Glassfish is not working

I have created a WebSocket with the JEE7 standard API. I have a class annotated with @ServerEndPoint and three methods annotated with @OnOpen, @OnClose and OnMessage. I´m deploying the application in a Glassfish v4 and it works but when I invoke the…
0
votes
2 answers

Access remote glassfish server from ejb client

I have a Glassfish 4 server with a deployed application running on xubuntu 12.04 which can not be accessed remotely with an ejb client. I can access to a local glassfish server. I've seen too many forums where they explain that it is a glassfish…
roneypc
  • 315
  • 1
  • 3
  • 6
0
votes
1 answer

What happened to DigestRealmBase in Glassfish 4.0?

I successfully integrated my custom security realm in Glassfish 3.1.2.2 and it worked just fine. Now I am trying to port my project from GF3 to the newly released Glassfish 4.0. But I now get the following error when trying to configure my custom…
salocinx
  • 3,715
  • 8
  • 61
  • 110
0
votes
1 answer

Cannot create durable subscriber (Glassfish 4)

I am trying to test the durable subcription on glassfish 4, but getting an error. The code: Session session = con.createSession(false, Session.AUTO_ACKNOWLEDGE); TopicSubscriber subscriber = session.createDurableSubscriber((Topic)…
user3111560
0
votes
1 answer

NullPointerException in AppClient GF4

I am developing an application client that needs to access beans remotely on the gf server. From reading I thought I should be able to use injection annotations but this would not work for me. I then switched to using InitialContext looking up the…
onesixtyfourth
  • 744
  • 9
  • 30