Questions tagged [glassfish-5]

GlassFish 5 is the reference Java EE 8 application server.

92 questions
0
votes
1 answer

Glassfish5 not starting

i have tomcat working fine, the error is not even about the port, which i know how to change, is this some sort of java version compatibility problem? i'm a student so i don't know much here's the output $ asadmin start-domain domain1 Exception in…
0
votes
0 answers

GlassFish with Eclipse, Ping Connection Pool failed Keystore was tampered with, or password was incorrect

I know this question has been answered many times but none of these solutions work for me. Environment Details GlassFish Version: 5.0.1 JDK version: 1.8.0_202 OS: Windows 10 Database: MySQL 8.0.31.0 Problem Description I have created this JDBC…
0
votes
0 answers

Glassfish 5 Error while adding JDBC Connection pools

I am trying to install and run an application on Glassfish version 5. I downloaded it from here. I am using jdk1.8.0_231, I have tried multiple times but it does not let me add any resource. It even shows the following error when deleting a property…
Asgar
  • 1,920
  • 2
  • 8
  • 17
0
votes
1 answer

Could not initialize class sun.security.ssl.SSLExtension when deploying spring boot with mssql database to glassfish 5.1

I am new to glassfish server and I am trying to deploy a Spring boot application in glassfish 5.1. My Spring boot application communicates with database via JPA and Hibernate. When I compile and deploy with mysql, deployment went fine. However, when…
0
votes
1 answer

Cannot save to geometry field from app deployed in Glassfish to Postgres13 with Postgis3.1.7

I have this weird issue where I cannot read or write to geometry fields in my Database. INSERT INTO digital_addresses(gps_coordinates, digital_address) VALUES (ST_SetSRID(ST_MakePoint(?, ?), 4326), ?) fails with the error: exception in get…
0
votes
1 answer

Create a self signed certificate for localhost and import it in Glassfish

I am developing a REST server that runs with Jersey on Glassfish, and I want to make it run on HTTPS on localhost. I have found many tutorials for generating a CA cert, others for generating .cer / .crt / .key / .csr / ... files, others for…
Romain Guidoux
  • 2,943
  • 4
  • 28
  • 48
0
votes
1 answer

Issue with glassfish in netbeans

I am having issue with glassfish 5.0 in netbeans 12.0. using java EE 8, therefore it will not open localhot:4848. netbeans localhost
So Pe
  • 1
0
votes
1 answer

Spring boot 2.4.5 REST WS WAR into glassfish 5 error in endpoint running app

Hello everyone can someone help me understand why this problem occurs... Basically I have created a REST WS with Maven and have built a WAR file to deploy into Glassfish 5 and have an error when I access one of the endpoints. Otherwise if I deploy…
Henrique C.
  • 948
  • 1
  • 14
  • 36
0
votes
1 answer

OpenJDK 16 and Glassfish 6.1.0 deployment causes a SAXException

I've recently been restoring my Java EE setup after a computer crash and I thought I'd try Open JDK 16 and Glassfish 6.1.0 but on deploying my application I get the following exception which I've never seen before: java.io.IOException:…
zobbo
  • 117
  • 2
  • 13
0
votes
1 answer

Can't connect Java 8 (291) web application on Glassfish 5.1.0 to SQL Server 2014 instance

I have a JSF web application that worked under Java 6, Glassfish 4.1, SQL Server 2012, Nebeans 8 but I am receiving an error under Java 8, Glassfish 5.1.0, SQL Server 2014, Netbeans 12. It varies some, but it is usually a handshake, socket, or…
Kamurai
  • 143
  • 2
  • 4
  • 19
0
votes
0 answers

Trying to run a Spring Boot application on a Glassfish 5.0

I'm trying to run a Spring boot application using a Glassfish 5.0 server and getting this error: java.lang.InstantiationException at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:86) at…
0
votes
1 answer

Why CDI interceptor injected in a singleton is not called by the Glassfish 5.1 container

The CDI interceptor that records the method entry and exit in the log file is not being called for the singleton class by the container? @Inherited @InterceptorBinding @Retention(RUNTIME) @Target({METHOD, TYPE}) public @interface Logit { } Here is…
Darvin
  • 148
  • 8
0
votes
3 answers

why Glassfish server throws NoSuchMethodError when creating an instance of java.time.LocalDate with ZoneId

I have this code that creates an instance of java.time.LocalDate. I compiled it with JDK 14 and it runs without any error: public void foo(Date d){ LocalDate d1 = LocalDate.ofInstant(d.toInstant(), ZoneId.systemDefault()); …
Darvin
  • 148
  • 8
0
votes
0 answers

Eclipse does not display my project files on project explorer

When I double click on any project (go into) in project explorer it won't open, to display my project content, this problem happened after installing glassfish tools on eclipse for the server. I wanted to know where i can find out what the error is…
0
votes
1 answer

class MyClass cannot be cast to class MyClass (MyClass is in unnamed module of loader org.glassfish.[...].WebappClassLoader@1)

Why this error sometimes in deploy phase appens in Glassfish / Payara application server? I can guess that the application server is trying to use two different classes of two different classloaders but is there a way to prevent it to do this…
Delayer
  • 409
  • 1
  • 5
  • 17