Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [glassfish]

GlassFish is an open-source application server project for the Java EE platform.

Filter by
Sorted by
Tagged with
0 votes
1 answer
140 views

Payara / Glassfish 5 - [NCLS-SECURITY-05054] The SSL certificate has expired - cert_81_trustis_fps_root_ca81

Today noticed the error message below the logs of my Payara5 server and since Glassfish is so popular these days, I spent a bit of time to find out what to do. [2024-01-31T16:44:11.325+0000] [Payara 5....
Scream's user avatar
  • 11
0 votes
0 answers
88 views

Why is file upload slower in HTTPS, is Azure throttling me?

I have an Azure server "A" with Windows Server 2016. I have an Azure server "B" with Windows Server 2019. Both are using the same code, same Glassfish Version and configs. In ...
José Daniel Osorio Pacheco's user avatar
0 votes
0 answers
114 views

HTTP Status 400-Bad Request Glassfish "The request sent by the client was syntactically incorrect"

error message on android application After reading these QNAs: https://stackoverflow.com/questions/12990717/spring-mvc-the-request-sent-by-the-client-was-syntactically-incorrect https://stackoverflow....
achhainsan's user avatar
0 votes
1 answer
32 views

Glassfish domains start automatically without intervention?

Steps to Recreate pkill -f glassfish. pkill -9 java. Repeat this a couple of times for being sure. ps -aux| grep 'glassfish_domain_name/config' It shows it is running from root user. All domains ...
achhainsan's user avatar
0 votes
0 answers
55 views

Proxy Error - Java Web Applications / Glassfish / MySQL / Apache

I have some Java Servlet Web applications running on Glassfish, on an AWS Linux server. The applications are integrated with a MySQL database, installed on the same server. Also, access management is ...
EduOK's user avatar
  • 1
0 votes
0 answers
39 views

How do I enable DEBUG for glassfish domain server.log via linux command line?

There are lots of INFO in logging.properties file. Which one should I change to DEBUG/FINE for getting detailed logs? https://stackoverflow.com/questions/5140168/manually-changing-glassfish-domain-xml-...
achhainsan's user avatar
0 votes
0 answers
19 views

Why should not one start a glassfish server from root user if the server is located in "user1" directory? [duplicate]

Today, an issue happened. Our company went down. I was trying to start that server. I did it from root. When I do ./asadmin list-domains it would show "domainX not running" even though it ...
achhainsan's user avatar
0 votes
1 answer
174 views

Script to Automatically Start a glassfish domain once it's down?

Steps to reproduce this issue: Glassfish domain called domain1 goes down. Now, start that domain again. Assume there are multiple domains, around 8 of them And different servers have varying amount ...
achhainsan's user avatar
0 votes
1 answer
77 views

How to find which one port is the actual port number of glassfish domain?

<network-listeners> <network-listener protocol="http-listener-1" port="8080" name="http-listener-1" thread-pool="http-thread-pool" ...
achhainsan's user avatar
0 votes
2 answers
63 views

Is there a way to check if a new application has been deployed recently in glassfish in linux?

I am not sure if I made it clear. This is what I want to check. Say someone deployed a new .ear file few days ago that changed the version of the application. I want to test it.
achhainsan's user avatar
0 votes
1 answer
96 views

How to start multiple domains at once in glassfish?

The command to open a particular glassfish domain is ./asadmin start-domain domain_name Say, I want to start domain1, domain2, domain3 all at once, how'd I do it? If it's not possible, why?
achhainsan's user avatar
0 votes
1 answer
101 views

How to deploy an .ear file in glassfish?

https://docs.oracle.com/cd/E19798-01/821-1757/6nmni99aj/index.html as-install/bin/asadmin deploy war-name The docs mention this command, but where will it be deployed isn't mentioned. Does it ...
achhainsan's user avatar
0 votes
1 answer
2k views

Error java.sql.SQLNonTransientConnectionException between Glassfish 3 and MariaDB

I have a java web application deployed in glassfish. This application interacts with Mariadb server. Suddenly, the app stops working. I'm checking the app.log and glassfish server log and I have the ...
user3637971's user avatar
0 votes
0 answers
38 views

Migrating IIS webhosting into Glassfish server to avoid firewall issues with clients

Currently I have a Glassfish 4 server which hosts an API on port 80 using SSL. Even though it is port 80 it is still using SSL. I did this because we were having issues with clients having their port ...
Curtis's user avatar
  • 101
-1 votes
1 answer
487 views

Remove subpath (context root) in nginx for a java app

The app is on a Payara server and with a context root nocodeapp-web-front-1.0 I don't want to have this context root in the url. This nginx config gives the intended result for the index page of the ...
seinecle's user avatar
  • 101
0 votes
1 answer
654 views

How to forward http request to application running on port 80 with NGINX

The Ubuntu server is running, Glassfish on port 80(http) & 443(https) Nginx on port 8080(http) & 8081(https) The goal is, www.hostname01.com to access Glassfish, www.hostname02.com to access ...
KJunya's user avatar
  • 1
0 votes
1 answer
361 views

Glassfish 5 cluster creates JSESSIONID on each request

I am trying to configure a Glassfish cluster following the official HA guide. The app is a standard JSF app (with Primefaces). At first I thought that the problem was related to JSF itself, but then ...
Leonardo's user avatar
  • 103
0 votes
1 answer
102 views

Reengineer a Glassfish Cluster to be used with AWS Auto Scaling and ELB [closed]

I am in my learning path for the AWS Solution Architect exam. Please consider this question under this point of view, an auto assignment :-) As an exercise for the reliability pillar I am trying to ...
Leonardo's user avatar
  • 103
0 votes
1 answer
385 views

Glassfish JK SSL Listener 502 Bad Gateway

I have set up a very simple Apache + Glassfish cluster configuration. It works fine if I create and use a listener that use the default http-listener-1. However, if I switch to a secure listener ...
Leonardo's user avatar
  • 103
0 votes
1 answer
323 views

Why is the characterset changing if starting Glassfish using php_exec compared to starting it in the console?

I have created a PHP script to start/stop GlassFish server. In the PHP, I am using the shell_exec method to execute the start-domain and stop-domain commands. To start the server shell_exec("sudo -u ...
Attila Antal's user avatar
0 votes
0 answers
230 views

How to generate SSL certificate on subdomain?

I actually have a hosting service who has a subdomain, that subdomain function is to redirect to my local server where I have my services, for example: My domain: example.com Subdomain: guaymas....
Alejandro Coronado Rubio's user avatar
0 votes
1 answer
124 views

In Glassfish 4.1 is it possible to setup a deploy user which has less than asadmin permissions?

We are looking to centralise deployment of WAR files into Glassfish via the asadmin deploy route. I am aware that Glassfish supports autodeploy via folder, but want to manage the context and other ...
Dazed's user avatar
  • 256
0 votes
1 answer
35 views

Glassfish 4 fresh download won't work

I downloaded a fresh glassfish4 ZIP, decompressed it and ran it. However, I cannot access the admin console on localhost:4848, it keeps redirecting to index.jsf from unknown, and the server log keeps ...
user2044806's user avatar
0 votes
0 answers
302 views

Glassfish crashes due too many open files

I am having a backend deployment running on a glassfish server, the frontend of my application sends REST request when it needs some data. Also the backend is connected to a mongo database: ...
Chinaedu Onwukwe's user avatar
2 votes
0 answers
13k views

Websocket Error in connection establishment: net::ERR_CONNECTION_REFUSED 'wss://'

First I asked this question in stackoverflow, but it looks like a server issue more than coding problem. I am developing a project with Java EE and I have access to the server computer under a ...
tonder's user avatar
  • 121
1 vote
0 answers
144 views

Glassfish - log System.err to second location or do something after logrotate

we have a GF4 server that produces a lot of logs. Currently it is setup like this: com.sun.enterprise.server.logging.GFFileHandler.excludeFields <> com.sun.enterprise.server.logging....
Fabian Dellwing's user avatar
0 votes
1 answer
1k views

Alternative way of passing system/environment variable to service (glassfish)

I have a glassfish application server that is running under the glassfish user on CentOS 7.2. I have an application that has a deployed application that is needing a custom environment variable (e.g. ...
Kevin Vasko's user avatar
1 vote
2 answers
4k views

GlassFish on CentOS 7 (systemd) - "asadmin restart-domain" doesn't work as expected

I use the following systemd script for GlassFish 4 on CentOS 7: [Unit] Description = GlassFish Server v4.1 After = syslog.target network.target [Service] User=glassfish ExecStart = /usr/bin/java -...
AndrewG10i's user avatar
0 votes
1 answer
79 views

jruby web application deployed on glassfish server becoming slow as time passes

I have deployed war file of my jruby application on glassfish server. i have noticed that my application becomes slow as time passes. My server is of 30GB RAM but still application is very slow. ...
Sanjay Salunkhe's user avatar
0 votes
0 answers
527 views

Glassfish with SSL and Nginx works for app but not for console

GF 4.1 My nginx config file: upstream glassfish_server { server 127.0.0.1:8080 fail_timeout=10; } upstream glassfish_admin { server 127.0.0.1:4848 fail_timeout=10; } server {...
seinecle's user avatar
  • 101
0 votes
1 answer
1k views

Can GlassFish or Payara be configured to specify server preferred order of cipher suites?

I would like to prioritize cipher suites so I can implement perfect forward secrecy. I am not sure if this is feasible in GlassFish or Payara. We are currently running Payara Server 4.1.1.154.
Blegger's user avatar
  • 272
3 votes
1 answer
1k views

What dictates the available Cipher Suites in GlassFish and Payara?

I have the same version of Payara Server (4.1.1.154) running on two different machines. I do not have the same list of available cipher suites between the two. What determines the available cipher ...
Blegger's user avatar
  • 272
-1 votes
0 answers
79 views

Exclude certain hosts from Payara Server access log [closed]

We have an external load balancer that makes health checks to the application servers. We use conditional logging in our current Apache TomEE server to prevent this activity from filling up the HTTP ...
Jalal Almutawa's user avatar
-1 votes
1 answer
871 views

How to configure Glassfish to allocate different memory size for JVM per web application

I have 2 Java web applications deployed on my Glassfish Enterprise Server v2.1.1. I want each of them to have different configurations for JVM options, specially for memory allocation. I have studied ...
RAS's user avatar
  • 101
1 vote
1 answer
2k views

stickysession not work fine in apache and two Glassfish Instances

I have two application that run in two Glassfish Instances, i configure my apache to use sticky session like so : ProxyPass / balancer://Appcluster/ stickysession=JSESSIONID But this not work 100% ...
Youcef LAIDANI's user avatar
1 vote
1 answer
151 views

Glassfish 3.1.2 and Oracle Oct 2016 CPU

So we do have some Glassfish 3 installations floating around and no Premium Support for them. Oracle has released a Critical Patch Update notification and CVE-2016-5519 regarding the same ...
the-wabbit's user avatar
1 vote
0 answers
795 views

Autostart GlassFish4 on boot on CentOS 7 minimal install

I've installed GlassFish 4 on one of my virtual machines which is CentOS 7 with minimal install. I want to start GlassFish when I start the virtual machine. I've created /usr/lib/systemd/system/...
ukll's user avatar
  • 111
2 votes
1 answer
1k views

enable-secure-admin not found

I'm running Glassfish 4.1 on Ubuntu 16. enable-secure-admin worked the first time I setup glassfish it. Due to some issue I had setting up security certificate I tried to set it up glassfish from ...
Omar Abdel Bari's user avatar
1 vote
1 answer
2k views

Does Glassfish 4.x require JDK 7 specifically?

I was thinking about setting up a Java EE 7 framework to run Spring applications on Glassfish, which depends on JDK 7. However, we already have JDKs compatible with the newer specifications of Java 8 ...
ELI BRADLEY's user avatar
1 vote
1 answer
4k views

Opensuse port forwarding 80 to 8080 not working

I've a glassfish server that use the port 8080. I need forward from port 80 to 8080 so I can access the content without put the :8080 port in the url. I've tried to put a masquerade rule, add ...
Andrea Catania's user avatar
0 votes
0 answers
165 views

Glassfish and Nginx: same domain for different web apps

I am really a nginx newbie so please excuse the mistakes etc. The domain: http://www.example.com The 2 glassfish apps: http://localhost:8080/app1 http://localhost:8080/app2 What I'd like: ...
seinecle's user avatar
  • 101
1 vote
1 answer
2k views

nginx reverse proxy glassfish issues

I have nginx serving as reverse proxy for a glassfish server with ssl, serving three glassfish context's, one demo site, one jenkins and one glassfish admin server. Root is redirected to the demo site....
s.ijpma's user avatar
  • 111
1 vote
1 answer
741 views

ErrorDocument 405 not working in Apache

I'm using Apache as a Proxy to our internal Glassfish server and want to hide as much information about the software we're using as I can. In Apache I configured a very simple 404 ErrorDocument on ...
Davio's user avatar
  • 113
1 vote
1 answer
1k views

Glassfish 4.1 with Ansible and Vagrant: Domain doesn't start from play

I'm setting up a vagrant machine with Glassfish 4.1 using Ansible. I tried to use asadmin to start the domain, etc. According to the logs, there is no error but Glassfish doesn't starts. changed: [...
R5498's user avatar
  • 11
3 votes
2 answers
13k views

How to verify that a firewall closes inactive connections?

How can I verify that a firewall closes connections on port X to a server after N minutes of inactivity? Background: I am working on a Java EE application deployed to a Glassfish application server. ...
user avatar
1 vote
0 answers
232 views

Microsoft Azure and Glassfish

I am having a problem with Azure database and glassfish. Azure database is closing the connection with glassfish pool after 2 minutes. I found the solution but I am having a hard time implementing it, ...
Evanilson Abril's user avatar
2 votes
1 answer
3k views

Access Glassfish server logs via REST

I am using Glassfish 3.1.2.2. I have deployed Glassfish to localhost. I have enabled the monitoring service and set the log level to HIGH for all components. I should be able to use the view the ...
user avatar
0 votes
2 answers
3k views

How to Configure Apache mod_proxy to proxy Glassfish 4.1 on Fedora 21?

i have glassfish 4.1 running and checked the JK-Listener option on http-listener-2: also i already installed apache (sudo yum install httpd) and created the following file on /etc/httpd/conf.d: /...
Sombriks's user avatar
  • 141
0 votes
0 answers
605 views

Why is GlassFish 4.1 slow on Ubuntu 15.04?

I have a GlassFish 4.1 Server instance running on Ubuntu 15.04 Desktop Edition. I use this as a development server, where NetBeans will automatically deploy my packages as I work on them, for easy &...
Brandon Ragland's user avatar
0 votes
1 answer
1k views

Apache reverse proxy 302 redirect browsers directly takes to the redirected URL

I have setup a reverse proxy through glassfish server via apache mod_proxy. my concern is when there is a 302 redirect happens then after that every time i access that url which invoked 302 redirect ...
Vipin Jain's user avatar

1
2 3 4 5