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
4
votes
1 answer

Glassfish, Netbeans 7.4: Module has not been deployed

I'm new to java ee. Made my first persistence application but can not be deployed. The error is: NetBeans: Deploying on GlassFish Server profile mode: false debug mode: false force redeploy: true In-place deployment at…
Hussain Ali
  • 76
  • 1
  • 5
4
votes
1 answer

Can implementing Java copy constructor result in same instance?

I've implemented a copy constructor in Java 8 and use it like this: User user = // some object LOG.debug("{}", user); this.userAccount = new User(user); LOG.debug("{}", this.userAccount); Output: User@2799061 User@2799061 It's the same object! How…
matsa
  • 346
  • 5
  • 16
4
votes
2 answers

Custom realm in Glassfish 4: login module not found

I am trying to create a custom realm and login module for Glassfish 4. I followed the procedure outlined in The glassfish 4 Application Development Guide p. 4-6, "Creating a Custom Realm". I also followed the steps in this article. I created a…
Rick
  • 362
  • 5
  • 16
4
votes
2 answers

Using web.xml to configure JX-RS with Glassfish 4 is causing errors

I am trying to create a Java EE application utilizing JX-RS. I have got it working using the following configuration: @ApplicationPath("rs") public class MyApplication extends Application { @Override public Set> getClasses() { …
Kevin
  • 4,070
  • 4
  • 45
  • 67
4
votes
1 answer

JSF1064: Primefaces can't load resources

I know this problem has been brought up many times, and I have read pages of forum posts from Google and I still haven't found a clear solution. The issue is that some primefaces resources fail to be served which causes a timeout exception: JSF1064:…
Michael Kucinski
  • 473
  • 7
  • 13
4
votes
2 answers

Handling Invalid Enums with JAX-RS and MOXy

I am currently attempting to unmarshal a JSON object provided via a REST PUT using Glassfish 4 (which uses Jersery 2.0 and EclipseLink 2.5). The JSON object consists of a several properties including a String value that gets mapped to a Java…
lucasweb
  • 1,736
  • 5
  • 28
  • 42
4
votes
2 answers

Glassfish eclipse Plugin with jdk 8

Im trying to launch glassfish-4 using glassfish-eclipse-plugin. Unfortunately it does not seem to recognize the JDK-8 Release candidate i just installed (The "Finish" button stays disabled). Finish button will be enabled if i select a java 7…
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
4
votes
1 answer

Gateway Pattern using Java EE

I am using the gateway pattern in a Java EE project at which I have: A stateful session bean with extended presistence context. The bean has transaction attribute set to not supported in order to stop any transaction to be commited into the…
bob-cac
  • 1,272
  • 2
  • 17
  • 35
4
votes
2 answers

Why am I getting NullPointerExceptions in my JSPs when I upgrade from Glassfish 3 to 4?

I upgraded from Glassfish 3 to 4 and now my JSPs are throwing NPEs. I haven't changed any code so it must be a difference in Glassfish. JSP code that used to look like this: Now gives me a NPE unless I change it to…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
4
votes
1 answer

What is the correct way to get parameter from URL in JSF

Here my JSF page:
Vololodymyr
  • 1,996
  • 5
  • 26
  • 45
4
votes
2 answers

Issue migrating application to glassfish 4

I've an application running smoothly in glassfish 3.1.2.2 and decided to test drive glassfish 4.0, but what seemed to be simple task is quickly turning in a configuration nightmare. Things just don't work as expected. Long story short, after…
Carlos Ferreira
  • 565
  • 1
  • 8
  • 15
4
votes
2 answers

Jersey REST get returns java.lang.NoSuchMethodError

I'm trying to get a response from a working REST webservice. I have come up with the following looking at the documentation: void postRest() { Client client = ClientBuilder.newClient(); WebTarget webTarget =…
dendini
  • 3,842
  • 9
  • 37
  • 74
4
votes
1 answer

I can't fine the Java EE SDK to include it in my projects after installing

I'm head over heels here ! I downloaded Java EE 7 SDK from this link http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-7-downloads-1956236.html During the installation. I was forced to install GlassFish. Unlik the Java SE…
Muhammad Gelbana
  • 3,890
  • 3
  • 43
  • 81
4
votes
1 answer

does glassfish support password aliases in jvm args?

I'm trying to use an aliased password as a jvm arg, but the aliased password does not seem to be provided to the web app. Here is my domain.xml config: -Dmy_password=${ALIAS=my_password_alias} However, trying to retrieve…
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
4
votes
1 answer

Primefaces push with GlassFish 4.0

Has anyone succeed in using above configuration? I am trying to use push with growl from primefaces. I am using primefaces 3.5 GlassFish 4.0 and Atmosphere 2.0.0.RC5 My config is as follows: Push Servlet
CodeSamurai777
  • 3,285
  • 2
  • 24
  • 42