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

File upload write path Glassfish 4

In order to get a file from HTML and copy it into a specific folder using Java and Glassfish 4. This is my jsp : <%@page contentType="text/html" pageEncoding="UTF-8"%>
eento
  • 761
  • 4
  • 20
  • 53
0
votes
1 answer

Jersey 2.7 + GlassFish 4 CDI deployment failure

I'm trying to learn Java specifically in making a RESTful Web Service. I'm using Intellij IDEA 13 as IDE, GlassFish 4.0 as server and Jersey 2.7. Here is the screenshot of the project's structure: When I tried to deploy the project, it always…
Samuel Adam
  • 1,327
  • 4
  • 26
  • 45
0
votes
0 answers

Persistence unit not resolved Maven project with Glassfish 4 and Netbeans 7.4

I created a Maven web project using Glassfish 4 and Netbeans 7.4. This is my pom.xml :
eento
  • 761
  • 4
  • 20
  • 53
0
votes
1 answer

Glassfish 4 Admin cannot run on NetBeans 8.0

I have installed JDK 8.0 and installed NetBeans IDE 8.0. I can start the embedded GlassFish Server 4.0. But I cannot enter Glassfish Domain Admin Console. I get the following messages ... **Warning: Context path from ServletContext: differs from…
Aung Myat Hein
  • 4,018
  • 1
  • 36
  • 42
0
votes
1 answer

Glassfish 4 cannot start with jdk1.7.0_51

I have updated the server the to JDK 1.7.0-51. But when i try to start the domain1 in glassfish, the console show me JVM failed to start: java.io.IOException: Cannot run program "/usr/java/jdk1.7.0_51/bin/java" (in directory…
David SK
  • 814
  • 7
  • 21
0
votes
1 answer

Autocomplete in Hibernate 3, no JTA, no EJB, no JPA

As I read in the PrimeFaces showcase, a converter is needed for my autoComplete to work, so I did as follows:
Rasshu
  • 1,764
  • 6
  • 22
  • 53
0
votes
2 answers

Missing class org.hibernate.ejb.hibernatePersistence in a maven web project

I am building a maven web project ( jsf+ejb3+jpa2) named " tuto.maven" using eclipse kepler, glassfish4.0, postgresSql 9.1, but where I try to run the project on a server a problem occurs "cannot Deploy tuto.maven deploy is failing=Error occurred…
fati lem
  • 69
  • 2
  • 12
0
votes
1 answer

WebSocket disconnect on .send()

I'm trying to make a web server with Glassfish 4, and I'm using a WebSocket to communicate back and forth. The only problem is that whenever I try to send anything from my browser to the server, I get disconnected with an "RSV bit(s) incorrectly…
thislooksfun
  • 1,049
  • 10
  • 23
0
votes
1 answer

Stop GlassFish wrapping Jersey exceptions

Here's a JAX-RS end-point: @Path("logout") @POST public void logout(@HeaderParam("X-AuthToken") String apiToken) { try { authenticationService.logout(apiToken); } catch (ExpiredApiTokenException exc) { throw new…
Steve
  • 8,066
  • 11
  • 70
  • 112
0
votes
1 answer

Servers node not listed in services window in Netbeans 7.4

Trying to access my glassfish 4 server in Netbeans 7.4 and there are no "Server" or "Server Manager" under tools and there are no "Server" node in the Services window. I added all the necessary plug-ins and I did access localhost:4848 and had the…
Argyle Ghost
  • 141
  • 5
  • 14
0
votes
1 answer

Spring 4 websocket not closing on application shutdown

So this is a strange one. I have a basic Spring 4 websockets application running on Glassfish 4 using RabbitMQ for the message broker, nothing fancy. I was testing the durability of the websocket clients (one in java and one in javascript using…
agaddie
  • 51
  • 3
0
votes
1 answer

Make GlassFish v4 App on CloudBess

After some research I found CloudBess a really cool free Java Hosting server. The problem is when I'm creating APP it takes many many time (I'm still waiting...) and just don't happen nothing Like this image If anyone knows other free GlassFish…
user1877745
0
votes
1 answer

JSP Code not running on server

I have recently started learning jsp and have chosen eclipse as my working IDE, and Glassfish 4 as server. After finishing all the necessary setups I created my first jsp script and after running it on glassfish localhost server I got an error…
allocated
  • 1,295
  • 3
  • 13
  • 16
0
votes
0 answers

Glassfish 3.1.2.2 and Ubuntu 12.04 LTS Server-Edition

I unzipped Glassfish-Server 3.1.2.2 as usual and called "./asadmin start-domain" to start the server and the admin web-interface. This always worked with Ubuntu 10.04 LTS. Now I tried the same procedure with Ubuntu 12.04 LTS... The login window…
salocinx
  • 3,715
  • 8
  • 61
  • 110
0
votes
0 answers

java.lang.IllegalStateException: isHexDigit exception

After few times running my application it throws following exception, I need to restart GlassFish to be able to run the application again. java.lang.IllegalStateException: isHexDigit at…
AlexCartio1
  • 238
  • 3
  • 9
  • 29