Community
See all
Members (1,182)
Arun Gupta's profile photo
Bruno Borges's profile photo
Markus Eisele's profile photo
Glenn Holmer's profile photo
Alejandro Tellez's profile photo
Patryk Bęza's profile photo
Gustavo patiño's profile photo
Alberto Gori's profile photo
Nuno Barrocas's profile photo
Lunang C's profile photo
Luis Rodriguez's profile photo
K. kahn's profile photo
Antonio J. Vélez Q.'s profile photo
Kathleen Van Assche's profile photo
Blaise Doughan's profile photo
Philip Durbin's profile photo
Ravinath Fernando's profile photo
Heather VanCura's profile photo
David Archuleta's profile photo
Victor Herrera's profile photo
Abhinandan Patil's profile photo
埃尔甘杜尔亚西尔's profile photo
jesus armando macias benitez's profile photo
Cesar Hernandez's profile photo

Stream

Join this community to post or comment

Ramesh Chand

Discussion  - 
 
 
Constants are like Statics in C#
In this article, we will learn Constants and how it is different from Statics in C# Constant fields act like static fields but do not have a storage location in memory.They are “visible” to …
1
Add a comment...
 
hi,
I encountered an error 500 in accessing glassfish admin console. I'm currently using glassfish version 4.1. When i look at the glassfish server log, there is an error that says "error in creating tree form" . can you help me with this issue? thanks
1
Add a comment...
Core JAVA tutorial provides a high quality core JAVA concepts tutorial for beginners.Core JAVA tutorial explains for beginners core java concepts examples.
1
Add a comment...

Edilmar Alves

Discussion  - 
 
Hi, I have used GF 3.1.2.2 for many years and now I need to install a letsencrypt SSL certificate to secure my webapp. The webapp is running fine with a new keystores.jks file that I created with letsencrypt cert. But Admin Console doesn't log and server.log arises this error:

[#|2016-05-17T11:31:15.344-0400|SEVERE|glassfish3.1.2|org.glassfish.admingui|_ThreadID=72;_ThreadName=Thread-2;|javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target;
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target;
restRequest: endpoint=https://localhost:4848/management/domain/anonymous-user-enabled
attrs={}
method=GET|#]

What do I need to do to solve this?
I tried to reinstall GF, overwrite the keystore.jks after install, but this doesn't work too.
1
Edilmar Alves's profile photoRaymond Tant's profile photo
8 comments
 
+Edilmar Alves yes the instance will have to be restarted. That is why the SSL is usually on the front end reverse proxy.

Add a comment...

umar saeed

Discussion  - 
 
please anyone tell me how to solve the glassfish (https) ssl certificate problem?its weird because due to this my Android application not connecting with glassfish.
1
Raymond Tant's profile photo
11 comments
 
Did any of this help?

Add a comment...

Jürgen Kress

Discussion  - 
 
GlassFish Images on Docker Hub by Bruno Borges
2
1
Add a comment...
 
Hey guys... Does anyone know whatever happened to the FighterFish project?
I have this specially tuned OSGi container and would like to know if I can deploy Glassfish 4.1 inside it as OSGi bundles
1
Add a comment...
 
Does anyone know why when I deploy an ear with some ejb modules and some web modules on Glassfish 4.1 I must redeploy from 3 to 10-15 times before the ear is correctly deployed ?

Here seems that the notion of bit is this: "a random number between 0 and 1 depending on the humidity, the pressure, the inclination of the notebook and so on..." :) :) :)

Sometime I receive:

javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: com/fasterxml/jackson/module/jaxb/JaxbAnnotationIntrospector
root cause
org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: com/fasterxml/jackson/module/jaxb/JaxbAnnotationIntrospector
root cause
java.lang.NoClassDefFoundError: com/fasterxml/jackson/module/jaxb/JaxbAnnotationIntrospector

Sometime the ear was correctly deployed...
1
Add a comment...

Ken Fogel

Discussion  - 
 
You can never have too many tutorials. Here is one on converting the NetBeans generated JPA controller class into one that can be used for EE 7 and GlassFish. http://netbeans.dzone.com/nb-class-glassfish-translating-jpa

My other tutorials on using GlassFish, JPA, MySQL and JSF can be found there as well.
1
Ken Fogel's profile photoJason Lee's profile photo
3 comments
 
OK. That makes perfect sense. Thanks again for the tutorial. :)
Add a comment...

Jürgen Kress

Discussion  - 
 
Finance and Investment Software on the NetBeans Platform by Brian Jenkins
1
Add a comment...

About this community

GlassFish is an open source, production-ready, Java EE-compatible application server.

Ramesh Chand

Discussion  - 
 
Please advise
 
I have a Java application that schedules two cron jobs after every 1 and 15 mins. It runs on Glassfish 4. We are using Hibernate with JPA Entity Manager for executing the queries on SQL Server database.

JDBC Connection Pool Settings are Initial and Minimum Pool Size:16 Maximum Pool Size:64 Pool Resize Quantity:4 Idle Timeout:0 Max Wait Time:0

JDBC Connection Pool Statistics after 22 Hours run NumConnUsed 0 count NumConnAcquired 14404 count NumConnReleased 14404 count NumConnCreated 16 count NumConnFree 16count

The number of acquired connections keeps on incrementing and the Glassfish 4 crashes after around 10 days with below exception.

RAR5117 : Failed to obtain/create connection from connection pool [ com.beonic.tiv5 ]. Reason : com.sun.appserv.connectors.internal.api.PoolingException: java.lang.RuntimeException: Got exception during XAResource.start:

Please suggest how to optimize Glassfish so that it doesn't crash.
1
Add a comment...

Ramesh Chand

Discussion  - 
 
I have a Java application that schedules two cron jobs after every 1 and 15 mins. It runs on Glassfish 4. We are using Hibernate with JPA Entity Manager for executing the queries on SQL Server database.

JDBC Connection Pool Settings are Initial and Minimum Pool Size:16 Maximum Pool Size:64 Pool Resize Quantity:4 Idle Timeout:0 Max Wait Time:0

JDBC Connection Pool Statistics after 22 Hours run NumConnUsed 0 count NumConnAcquired 14404 count NumConnReleased 14404 count NumConnCreated 16 count NumConnFree 16count

The number of acquired connections keeps on incrementing and the Glassfish 4 crashes after around 10 days with below exception.

RAR5117 : Failed to obtain/create connection from connection pool [ com.beonic.tiv5 ]. Reason : com.sun.appserv.connectors.internal.api.PoolingException: java.lang.RuntimeException: Got exception during XAResource.start:

Please suggest how to optimize Glassfish so that it doesn't crash.
2
2
Andrew Listiev's profile photoGianluca Tessarolo's profile photo
11 comments
 
Watch out, the exception says "during XAResource.start", probably as Andrew has noticed you have configured a unnecessary XADataSource, go to pool configuration and modify the resource type from javax.sql.XADataSource to javax.sql.DataSource
Add a comment...

Edilmar Alves

Discussion  - 
 
Hi,
I would like to know if it is possible to re-read config files (web.xml, ejb-jar.xml, persistence.xml, etc) without undeploy/deploy the app. I have a webapp used by many enterprises, where I just config a new database for each new enterprise, without to be necessary to change the Java code. The problem is that, for each new enterprise, I have to undeploy/deploy the app because config files are changed, mainly ejb-jar.xml and persistence.xml.
1
Dmitriy Porollo's profile photo
6 comments
 
Rebel supports CLI
Add a comment...

Edilmar Alves

Discussion  - 
 
Is it possible do restart the connection pools to databases without restart all the Glassfish Server? I have an environment with many databases/many webapps, and sometimes it is needed to restart some database server, but I didn't like to restart GF. The webapps uses Firebird, PostgreSQL or MySQL database servers.
1
Raymond Tant's profile photoEdilmar Alves's profile photo
9 comments
 
+Raymond Tant I thinks its better to test a specific table, because you may choose a table with little records
Add a comment...

Allen Peter

Discussion  - 
Training | Training in Noida, Delhi/NCR, Javatpoint offers best hadoop training, java training, sap training, php training, .net training, android training, oracle training, software testing training, python training, seo training, c training, c++ training, web designing training with live projects for ghaziabad, noida, delhi or ncr students.
1
Add a comment...
 
I need help with this problem
When I type asadmin I get "The system cannot find the path specified."

I'm using glassfish3 on Windows7 x64, I already installed jdk6

Please your help fiends
Thanks
1
Jason Lee's profile photoRaymond Tant's profile photo
2 comments
 
make sure your JAVA_HOME variables are set and c:\glassfish3\bin is in the PATH
Add a comment...

Vikas Malviya

Discussion  - 
 
Hey Hi to all the members. I am facing a problem with netbeans and glassfish server. I am trying to deploy my web application on a remote glassfish server from my laptop. I am getting this error "Starting of server GlassFish Server 4.0 College is not supported. Please, start the server manually."
I am using linux mint as my development machine and on remote machine windows 7 is the os. Netbeans 8.0.2, glassfish 4.0 is being used on both machines.
I have tried all the solutions found by googling but not able to resolve. Please help me. Thanks
1
Jennifer Sears's profile photoVikas Malviya's profile photo
3 comments
Add a comment...

Jeff Brower

Discussion  - 
 
I have a new GoDaddy SSL Certificate that I cannot seem to get installed in Glassfish 3.  The one that expired was from GoDaddy, it would seem that I could just install it the same way, BUT NO!!!

I would appreciate ANY help in figuring this out - Google is not my friend here.  Loads of instructions and none of them seem to work.  Certainly one of the 784 members here has a GoDaddy Certificate that they have installed and working so am begging you -- please, please, please share.

GoDaddy says that “the GoDaddy G2 root certificate has not yet been added to the Oracle root certificate program” and that means that there is an additional step if you are using Glassfish - but they are not helpful at all and have zero support links for Glassfish on the site.
1
Philip Durbin's profile photo

Jürgen Kress

Discussion  - 
 
free Java & middleware trainings – Virtual Technology Summit available on-demand
1
Add a comment...

Jürgen Kress

Discussion  - 
 
Whats new in GlassFish 4.1? by C2B2
/
1
Add a comment...