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

Hibernate with jpa 2.1 SerialContext cannot be cast to DataSource

I am trying to get hibernate to work with JPA, glassfish and Java EE7. But I don't seem to have any luck so far. I constantly get this error that I cannot solve when I try to create an EntityManagerFactory. java.lang.ClassCastException:…
Davidto
  • 37
  • 2
  • 8
0
votes
0 answers

Shiro.ini file requires glassfish clean wipe to update

We're working with Apache Shiro for our user authentication on glassfish 4. We've run into an issue where any changes to the shiro.ini file don't properly get implemented. No matter how many times we push, even if we clean and build first, the…
Marcel Marino
  • 962
  • 3
  • 17
  • 34
0
votes
1 answer

Send a Message to JMS queue using java Swing

I have successfully developed and JMS queue using Oracle Glass-fish server 4.1 version, Then I could send and read messages successfully using java EE application, but I need to implement Sender code to a Swing application, I used same code as Java…
Ishara Kularatna
  • 152
  • 2
  • 16
0
votes
1 answer

javax.persistence.cache.retrieveMode and javax.persistence.cache.retrieveMode does not work with NamedQuery when used with Eclipse Link ORM

Query Hints not working in Eclipse Link 2.3.2/2.6.1 when used to fetch data from second level Cache Used Hints, @QueryHint(name = "javax.persistence.cache.retrieveMode", value = "USE"), @QueryHint(name = "javax.persistence.cache.storeMode ", value =…
Vittal B
  • 1
  • 5
0
votes
0 answers

How to enable PUT and DELETE in glassfish 4.0

PUT and DELETE don't work, because they are not allowed, I got 405 error. File web.xml (in folder with my project) looks like that:
LuckyProgrammer
  • 79
  • 1
  • 1
  • 8
0
votes
0 answers

How to fix Glassfish error

I am not a good Java programmer yet, but I dream of becoming one. I am practicing building an eCommerce web app with an online Affablebean project using java, my IDE is NetBeans, database is MySQL and MySQL workbench, the server on the Netbeans IDE…
kekule
  • 1
0
votes
2 answers

EJB Null point exception

I have a class with interface and a new class for which I call new ojbClass(params) - which contains an ejb call (code below). When it get's to call the ejb from that class, i get null point exception. Class calling EJB method inside public class…
0
votes
0 answers

stop the glass-fish server after closing the tab of the web application in netbeans?

like stopping the java application by clicking on the applet close using mouse listener, is there a way to listen mouse from browser. if it is there, then it should be able to stop the running server of the respective web application?
letmecheck
  • 1,183
  • 8
  • 17
0
votes
0 answers

HTTP Status 500 - Internal Server Error when return object

I noticed this glassfish error that is due to the REST methods where I return an object with which I produce json: @GET @Path("/myUrl") @Produces("application/json") MyObject getObject(@Context UriInfo info){ ... return new MyObject(...); } how to…
James13Y
  • 41
  • 4
0
votes
1 answer

Java Spring 4.01 automatic mapping

I am just starting to learn Java, and this is my first question on Stack Overflow, so please do not judge me too harshly ) I use Netbeans 8.02, GlassFish 4.0, JavaEE7, Spring 4.01. (No Maven. No Hibernate.) (New Project->Java Web->Web…
Lion
  • 1
  • 1
0
votes
1 answer

Nginx 404 not found for Java web service

I have no issue dealing with glassfish directly (with no Nginx). The issue comes when I access it through Nginx. I have two servers: MY_NGINX_IP and MY_GLASSFISH_IP:8080 Basically, the http://MY_NGINX_IP works just fine and displays the index file.…
Nabeel
  • 557
  • 4
  • 15
0
votes
2 answers

Acquired Connections grows abruptly leading to server crash

I have a Java application that schedules a cron job after every 1 min. It runs on Glassfish 4. We are using Hibernate with JTA Entity Manager which is container managed for executing the queries on SQL Server database. JDBC Connection Pool Settings…
Rashmi
  • 151
  • 1
  • 11
0
votes
1 answer

Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.0:run

I'm using javaee7 sdk from oracle. I have faced a problem. When I enter mvn cargo:run, it stoped at Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.0 for container glassfish4x for a long time. And at last, some…
0
votes
1 answer

How to run javaee7 sdk samples?

My teacher want me to run javaee7 sdk sample "annotation-war". Then I download the javaee7 sdk from http://www.oracle.com/technetwork/java/javaee/downloads/index.html. But, I don't know how to run it. I have tried the following steps: First, I…
hellozjf
  • 169
  • 5
  • 16
0
votes
0 answers

Netbeans is not able to deploy web application on Glassfish in Mac os Sierra

I am trying to deploy a web application from netbeans to the bundled glassfish server. but its not deploying and running. get stuck for long time(5 or 6 min) and says can't start glassfish server, check user name and password or server log for other…
Ahmed Raaj
  • 508
  • 4
  • 16