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:

915 questions
104
votes
19 answers

org.hibernate.hql.internal.ast.QuerySyntaxException: table is not mapped

I have example web application Hibernate 4.3.5 + Derby database 10.10.1.1+ Glassfish4.0 with IDE NetBeans 8.0Beta. I have the next exception: Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: CUSTOMERV is not mapped at…
Vlad Dobrydin
  • 2,387
  • 3
  • 10
  • 8
31
votes
8 answers

Glassfish Admin Console throws java.lang.IllegalStateException when creating JDBC Pool

A week ago I downloaded Glassfish 4.1. Did a zip install. Attempted to use Admin Console to create a JDBC Connection Pool. Received this error message: java.lang.IllegalStateException: getOutputStream() has already been called for this…
George
  • 489
  • 2
  • 7
  • 20
29
votes
4 answers

How to run glassfish 4 on port 80 instead of 8080? root access is not an issue

Did some google on it and the solution was to redirect using iptables or mod in apache? Since my application uses websockets the above solution breaks my websocket connectivity and I again have to connect to my websockets using port 8080. Is there…
anandaravindan
  • 2,083
  • 6
  • 23
  • 35
28
votes
5 answers

File upload doesn't work with AJAX in PrimeFaces 4.0/JSF 2.2.x - javax.servlet.ServletException: The request content-type is not a multipart/form-data

Important : The issue which is discussed in this thread has been fixed as of PrimeFaces 5.1 final (community release) released on Monday, October 6, 2014 (just a few minutes ago from now). I attempted on JSF 2.2.8-02 (or api, impl). As such, if you…
Tiny
  • 24,933
  • 92
  • 299
  • 571
26
votes
5 answers

Java 8 Lambda Expression Within REST Service not working

If I put a Java 8 Lambda expression in a REST service, it crashes. If I remove the lambda expression, it works. It does not matter if I use the lambda expression or not. Just the existence the lambda is enough to crash. Everything else Java 8…
David Jensen
  • 565
  • 1
  • 7
  • 10
23
votes
4 answers

CDI : WELD-001408 Unsatisfied dependencies, how to resolve it?

I do a small test project with CDI. My application is composed of an EJB EAR and WAR, all deployed on Glassfish 4. I'm using Hibernate 4.3.4 to access the database. My goal is to verify that a class in an EJB (DAO) can receive an injection of an…
Scandinave
  • 1,148
  • 1
  • 12
  • 33
15
votes
3 answers

Is EntityManager really thread-safe?

I'm talking about the basic usage here: @Stateless public class BookServiceBean implements BookService { @PersistenceContext EntityManager em; public void create(Book book) { this.em.persist(book);} } Googling the above question, StackOverflow…
Ken Y-N
  • 12,690
  • 21
  • 62
  • 98
15
votes
2 answers

cannot get SLF4J working with glassfish 4

I have configured glassfish 3 to use SLF4J in the past by using the SLF4J JUL bridge and it worked fine. The problem I'm having now is that if I use my same setup, SLF4J complains about there being duplicate SLF4J bindings on the classpath and…
Walter
  • 1,068
  • 1
  • 15
  • 37
15
votes
2 answers

Configure Jackson as JSON Provider in JAX-RS 2.0

I want to use Jackson as JSON provider for my JAX-RS 2.0 webservice. For JAX-RS I use Jersey 2.0 in GlassFish 4. With JAX-RS 1.x I can add com.sun.jersey.api.json.POJOMappingFeature
Tim
  • 633
  • 1
  • 11
  • 22
14
votes
4 answers

Default glassfish 4.0 password in netbeans

Well, more than a question this is an answer, I was trying to see for Glassfish 4.0 default admin password to access its console but I didn't find any satisfactory answer, some suggested to change admin-keyfile on glasssfish folder which can also…
Wiston Coronell
  • 1,451
  • 1
  • 16
  • 22
13
votes
1 answer

Can WebSockets and HTTP server both run on the SAME port number?

I have been using GlassFish server, where, index.html is sending the control to servlet file which is sending the control to another nextStep.html file, which is working on WebSockets. Right now, I am confused, as I am getting an error: WebSocket…
manpreetSingh
  • 564
  • 4
  • 7
  • 19
13
votes
2 answers

How can I define a JAX-RS service that processes multi-part data in JEE?

This is what I have so far: This initializes my REST service package com.dothatapp.web.rest; import javax.servlet.annotation.MultipartConfig; import javax.ws.rs.ApplicationPath; import…
Ioannis Deligiannis
  • 2,580
  • 5
  • 20
  • 43
12
votes
6 answers

Glassfish / Payara javax.ejb.AccessLocalException: Client not authorized for this invocation in server.log

I was trying figure out the cause of another exception for my dynamic web app here - https://github.com/double-whammy/affablebean I made a small change and I got a new exception - javax.ejb.AccessLocalException: Client not authorized for this…
james
  • 1,427
  • 5
  • 23
  • 37
12
votes
2 answers

Where can I find Glassfish 4 source code?

I am trying to debug my web application under Glassfish 4 but since I only have jee7 API deps in my maven pom.xml I can not. Is there a maven dependency that is linked to the glassfish source code? is there another way that I can get it? Thanks
Ioannis Deligiannis
  • 2,580
  • 5
  • 20
  • 43
12
votes
13 answers

Glassfish 4 Admin not running from Netbeans 7.4 (Password Incorrect)

I am trying to run Glassfish 4 using Netbeans 7.4 IDE, but I am receiving an error dialog like Please check server admin user name and password properties. Also please check the server log file for other possible causes. I am passing the correct…
sokid
  • 763
  • 3
  • 9
  • 16
1
2 3
60 61