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

jpql left join condition

I don´t get that simple query working and i don´t now why. i have three entities (just semantics code): Profile { @OneToMany Set clubs String username ... } ProfileClubMapping { @ManyToOne Profile profile @ManyToOne Club…
perotom
  • 851
  • 13
  • 33
0
votes
0 answers

Why is JPA Optimistic Locking incrementing my entity version (@Version) twice during one transaction?

I am developing a Java EE application using GlassFish 4.1, EclipseLink and Derby and noticed today that when I create an new Person entity the version of the newly created entity is 2 instead of 1. The following is my Person Entity. @Entity public…
Reed Elliott
  • 223
  • 2
  • 15
0
votes
1 answer

Implementing different URL paths in Jersey

I am trying to do something like the below using jersey : import javax.ws.rs.*; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ResourceBundle; public…
Little Code
  • 1,315
  • 2
  • 16
  • 37
0
votes
0 answers

WebSockets and MS-SQL

WebSockets whenever execute SQL queries, at that point of time, WebSocket session expires and then the page gets refreshed and a new session is created. I do not want my page to refresh.
manpreetSingh
  • 654
  • 4
  • 8
  • 20
0
votes
3 answers

Maven project for Spring MVC Deploying in GlassFish Error(s)

I have a Spring MVC web app created with Maven project. I try to deploy/run it in GlassFish, and I receive the following error(s). The error(s) below: cannot Deploy springMvcJdbcTemplate deploy is failing=Error occurred during deployment: …
7d0
  • 79
  • 1
  • 2
  • 13
0
votes
2 answers

Is Glassfish 4.1 supported in AIX 6.1.0.0?

I'm using GlassFish 3.1.2.2 on a AIX machine and it is working fine. The company's security policy requires me to upgrade it to the latest version, but everytime I try to deploy my application (the same that is working fine in version 3.1.2.2) I get…
Carlos Ferreira
  • 565
  • 1
  • 8
  • 15
0
votes
1 answer

Socket called on wrong port

I am having a web server running glass fish 4 on port 8080 in my local. I am also having a standalone java socket server running in local on port 9010. When I try to access a webservice from Objective C on my glass fish server using…
Naveen Ramanathan
  • 2,166
  • 1
  • 19
  • 21
0
votes
0 answers

When and where to do key configuration at JHipster like data source and app/web server credentials

Facing issues while working with GalssFish / TomcateEE7. Though Yo installation is not giving any errors and creates war, facing few issues while deploying the created war like , expected name space is java.com.sun but org.jcp... etc. Embedded…
0
votes
1 answer

How to solve Target Unreachable, 'null'?

Hello everyone I'm very new to javaweb and I tried to create my first javaweb project, off course by following some tutorial. However when some action were being invoke I received an error. Does anyone can help! Here is what I…
Anirudh Lou
  • 781
  • 2
  • 10
  • 28
0
votes
1 answer

toy web service on Eclipse- trouble with glassfish4 server

I am new to Java EE, and am trying to learn how to create a web service. I followed the instructions given at this link- http://www.eclipse.org/webtools/community/education/web/t320/Implementing_a_Simple_Web_Service.pdf to create a simple Hello…
user3516726
  • 626
  • 6
  • 15
0
votes
0 answers

Deploying GF4.0 in Solaris

Im trying to install Glassfish 4.0 in a Solaris system, outside the users home folder. I set up asenv.conf file and i can create the domain, but performing several different actions like restarting the domain or enable secure admin I get the…
0
votes
2 answers

JAX-RS on Glassfish 4.1 Returning Http Status Code 1 instead of 200

I've created a simple JAX-RS class on Glassfish 4.1 with the following method: @GET @Produces("application/json") public ArrayList getVendorsJson() { VendorModel model = new VendorModel(); return model.getVendors(ds); } If dump…
user3253156
  • 381
  • 1
  • 2
  • 10
0
votes
0 answers

could not load class javax.rmi.corba.enum desc vmcid: omg minor code: 57 completed: maybe

I'm trying to understand what exactly caused this exception. My project uses the glassfish4 server. It is an ejb application. Problem happens when I inject a facade object into managed bean in web container (@EJB annotation is used to inject…
Michał Ziembiński
  • 1,124
  • 2
  • 10
  • 31
0
votes
1 answer

EJB Session beans/methods transaction attributes

I am became in charge EJB 3.1/JPA part of our project running on Glassfish 4.0. I am quite new to EJB and so not very confident in Session beans(and/or their methods) transaction attributes. I am dealing with stateless session beans. I read that…
Alexander
  • 1
  • 1
0
votes
1 answer

Remote lookup to another Glassfish from a Servlet

I'm trying to run a remote lookup to another Glassfish from a Servlet. So, I was following the link documentation (http://docs.oracle.com/cd/E19798-01/821-1752/beanv/index.html). First I created a Sateless Session Ben called CalculatorBean, packaged…