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

Websockets server implementation real performance for high concurrent production environment

I'm evaluating the substitution of some http pooling features of my production application with the new JEE7 supported Websocket feature. I'm planning to use Wildfly 8 as my next production server environment and I've migrated some of my websockets…
0
votes
1 answer

GlassFish 4 Error: FATAL: FATAL: JSF1073: javax.el.ELException

I'm trying out things in Java EE 7 and I have build an example application which can be found here https://github.com/kenparker/moviplex7.git. During the process I have learned how hard is to get things working mainly because of problems with the…
ken
  • 471
  • 9
  • 19
0
votes
0 answers

Java Persisence - Tables are created, but not the data

My connection pool pinged successfully Tables are created. Data that I wanted to insert into that table not inserted. Any guess..any help! Here is my code ` http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> …
0
votes
0 answers

PHP RESTful Unsupported media type error

I think it's giving a better performance than it was before. The new development is that though it has not been inserting but at least it issues an understandable error of "Unsupported Media Type" and not displaying code as it was earlier. What…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
0
votes
2 answers

glassfish 4 EJB 3 standalone client jndi lookup

I have problem with calling remote ejb. I have successfully deployed remote EJB: public interface IHelloWordlHome extends EJBHome { mybeans.IHelloWordl create() throws RemoteException, javax.ejb.CreateException; } public interface IHelloWordl…
Srneczek
  • 2,143
  • 1
  • 22
  • 26
0
votes
1 answer

Can't load class in HQL query creation

After upgrading glassfish to 4 version and hibernate to 4.3.5, I have strange problem with class loading. So, I creating such HQL: SELECT new list(s.id, s.name, s.serviceGroup.id, s.serviceGroup.name, count(t.id), sum( COALESCE( t.dealerFeeActual,…
0
votes
1 answer

Check if a user is enabled with Glassfish 4 JDBCRealm

I'm trying to create a login page which authenticates the users via a JDBCRealm on my Glassfish server (i think this is the easiest way), so far i managed to get it working. But in the User table in the DB i have a "is_active" column, when this…
user3578571
  • 43
  • 1
  • 5
0
votes
2 answers

JAX-RS in Glassfish path selection not working

Glassfish 4, very simple application. I'm using Kepler, created a dynamic Web service project using Glassfish 4 as the server, allowed Eclipse to generate web.xml and glassfish-web.xml. The context names is /calls. Application package…
Steve11235
  • 2,849
  • 1
  • 17
  • 18
0
votes
1 answer

NoSuchProviderException for smtp when using JavaMail 1.5.x with logback 1.1.2 SMTPAppender in glassfish 4

I am attempting to use the SMTPAppender from logback 1.1.2 in glassfish 4 to send email alerts for all logged errors, whether they are logged by glassfish itself, by its various components / modules / libraries, or by my code in a deployed ear. At…
XDR
  • 4,070
  • 3
  • 30
  • 54
0
votes
1 answer

Glassfish 4 Web Profile - Cannot access remote EJB

I cannot access remote EJB beans of our application server within a web application running on Glassfish 3 web-profile using jndi lookup. Using full profile for our web-application or even testing with a console application we have no problem…
djmj
  • 5,579
  • 5
  • 54
  • 92
0
votes
0 answers

Why Glassfish 4 loses web socket messages?

I try to use web socket for messages (Glassfish 4 implementation). When I use session.getBasicRemote().sendText it works correctly but if I use session.getAsyncRemote().sendText some messages are lost. For example: for (int i = 0; i < 200; i++) { …
dmitrievanthony
  • 1,501
  • 1
  • 15
  • 41
0
votes
1 answer

Java ee 7 query.getResultList is null

I always get an null pointer exception because the results list is null and not empty. I thought that "problem" has been solved? Query query = em.createNamedQuery("findMaxTranslationId"); query.setMaxResults(1); List results =…
perotom
  • 851
  • 13
  • 33
0
votes
1 answer

Why can't I redeploy Glassfish applications?

We're migrating from a Server 2008R2 box with Glassfish 3 over to a Server 2012R2 box with Glassfish 4. Everything went swimmingly :-) until I modified one of the applications and attempted to do my first redeploy on the new box. The Glassfish GUI…
Brian Knoblauch
  • 20,639
  • 15
  • 57
  • 92
0
votes
1 answer

Java EE 7 dynamic user roles

My problem is the integration of a security system in my java ee 7 web application with glass fish 4. I have seen several examples of authentication declarative but also programmatic but none of them covered my problem. In my application i have 2…
perotom
  • 851
  • 13
  • 33
0
votes
1 answer

Faces Servlet Application URL JSF/Glassfish

So I have let's say an application named MyApplication. I deploy it with a virtual server on glassfish and all is well since I set the default welcome page. Let's say the virtual server is to listen on mydomain.com I goto mydomain.com and i see my…
drankupon
  • 83
  • 6