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
0 answers

MySQL driver not able to load using Netbeans-8.2/glassfish-4.1/linux-7.4

I am developing Restful WebService using NetBeans 8.2, Glassfish 4.1 on my Rhel-7.4 Linux OS, MySQL as my database. I am unable to load the MySQL driver. Using the services in NetBeans, I was able to successfully add my SQL driver and test the…
mcmattu
  • 101
  • 1
  • 2
  • 5
0
votes
0 answers

namedNativeQuery binding not working with payara or Glassfish 4.1

Here is the environment setup and the important dependencies : Spring boot 1.5.6 dev Server tomcat 8 production Server Glassfish 4.1 org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile The following code works perfectly…
Toumi
  • 2,925
  • 4
  • 37
  • 31
0
votes
2 answers

Utf-8 text in javascript not showing properly when served by Glassfish

My script is saved in uft-8 encoded file: test.js function sayhi(){ alert('Γειά σου!') } In html file (also utf-8) I got :
PKey
  • 3,715
  • 1
  • 14
  • 39
0
votes
1 answer

Unable to use Jenkins Blue Ocean in glassfish

I have deploy jenkins in glassfish 4 and my jenkins is working except for Blue Ocean.I see blank Blue Ocean Page. Stack trace java.lang.NoSuchMethodError:…
0
votes
0 answers

Cannot access webapp deployed in Docker container

I'm currently getting into Docker (or trying to), so I set up a little webapp. I used Eclipse to create a maven-Project, built a .war-file and deployed it (to check if it works) locally on a Glassfish server. This worked, and I could access the…
Flo
  • 223
  • 3
  • 14
0
votes
1 answer

Google Compute Engine and Glassfish can't access from outside

I created an instance (CentOS7) in GCE. I then installed Glassfish 4. However, I can't seem to access it via http/https. [ank@instance-1 bin]$ sudo ./asadmin start-domain Waiting for domain1 to start ......... Successfully started the domain :…
ads
  • 1,703
  • 2
  • 18
  • 35
0
votes
0 answers

Could not find or load main class Files.Microsoft while starting GlassFish 4.0

I am trying to start glassfish, but all the time get this error PS C:\glassfish4\bin> ./asadmin start-domain mydomain Waiting for mydomain to start .Error starting domain mydomain. The server exited prematurely with exit code 1. Before it died, it…
B.Misha
  • 107
  • 9
0
votes
1 answer

Limitations of jboss AS 7 over glassfish

We have a 10 years old java application, right now we are using jboss 7 server. we find it too slow. So for migrating to glassfish, kindly suggest me the lilitations of jboss AS 7 over glassfish 4...
0
votes
0 answers

How set QUOTED_IDENTIFIER on for MSsql pool on Glassfish

How can I do this setup ? I test with add property and put on the url ==> this not work jdbc:sqlserver://myserver:xxxx;InitializationString=(set QUOTED_IDENTIFIER on);DatabaseName=mydatabase I test with additionnal sql when connection is establish…
bug007
  • 57
  • 6
0
votes
1 answer

How to deploy EJB and War modules at same time in NetBeans 8.2 and GlassFish 4.1.1

I have a problem to deploy EJB and WAR modules at the same time in NetBeans 8.2 on GlassFish 4.1.1. The following message is shown: [[ Exception Occurred :Error occurred during deployment: Exception while preparing the app : Could not resolve a…
Mahyar Esteki
  • 189
  • 2
  • 12
0
votes
1 answer

Unable to start glassfish server in ubuntu 16

I am unable to start my glassfish server in ubuntu 16. The error I am seeing is "GlassFish requires Java SE version 6. Your JDK is version 0" Now here are my settings : JAVA_HOME : /usr/lib/jvm/java-9-oracle Entry in asenv.conf : …
Anveshan
  • 614
  • 1
  • 9
  • 21
0
votes
0 answers

glassfish server.policy (JAAS) URLPermission Failed Permission Check POST

I have a library that communicates to various devices. These devices post information back to the library on port 8080. In Glassfish 4.1 I get a large number of these log messages. Interesting I'm getting data from the…
David B
  • 1
  • 2
0
votes
0 answers

Trying to run Vaadin web app project on Netbeans but run into nosuchmethoderror

Currently, I am developing a Vaadin web app project on Netbeans using a Glassfish 4 server. The server deploys WITHOUT error, but when I try to go to another page via a link on the project (basically I just click a button), it runs into the…
0
votes
1 answer

glassfish 4.1.2 web container not started

I have a maven project on NetBeans 8.2 and Glassfish 4.1.2 Recently I started facing an issue of running JPA queries with the following error. Warning: java.lang.IllegalStateException: This web container has not yet been started at…
0
votes
1 answer

Setup apache2 to forward to Glassfish 4

I have a fresh Ubuntu 16.04 server and a simple html website running with apache 2. An SSL certificate is also installed. Apache2 is already configured to forward automatically to https. Furthermore I have a java application running on Glassfish 4…
codyLine
  • 509
  • 2
  • 8
  • 26