Questions tagged [glassfish]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Implement SSO SAML 2.0 into a Anglular / Galssfish deploy

Customer wants us to implement a SAML 2.0 single sign on option into our app to allow their users to sign on using their hosted Azure AD system. Currently our app uses an Angular front end and a ...
user avatar
  • 101
0 votes
0 answers
19 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 ...
user avatar
  • 101
-1 votes
1 answer
152 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 ...
user avatar
  • 101
0 votes
1 answer
217 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 ...
user avatar
  • 1
0 votes
1 answer
220 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 ...
user avatar
  • 103
0 votes
1 answer
67 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 ...
user avatar
  • 103
0 votes
1 answer
256 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 ...
user avatar
  • 103
0 votes
1 answer
138 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 ...
user avatar
0 votes
0 answers
137 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....
user avatar
0 votes
1 answer
70 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 ...
user avatar
  • 236
0 votes
1 answer
28 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 ...
user avatar
0 votes
0 answers
206 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: ...
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 ...
user avatar
  • 21
1 vote
0 answers
120 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....
user avatar
0 votes
1 answer
869 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. ...
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 -...
user avatar
0 votes
1 answer
68 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. ...
user avatar
0 votes
0 answers
420 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 {...
user avatar
  • 101
0 votes
1 answer
836 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.
user avatar
  • 272
3 votes
1 answer
936 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 ...
user avatar
  • 272
-1 votes
0 answers
73 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 ...
user avatar
-1 votes
1 answer
692 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 ...
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% ...
user avatar
  • 111
1 vote
1 answer
144 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 ...
user avatar
  • 40.2k
1 vote
0 answers
757 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/...
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 ...
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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
0 votes
0 answers
156 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: ...
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....
user avatar
  • 111
1 vote
1 answer
467 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 ...
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: [...
user avatar
  • 11
3 votes
2 answers
10k 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
  • 163
1 vote
0 answers
218 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, ...
user avatar
2 votes
1 answer
2k 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
  • 163
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: /...
user avatar
  • 141
0 votes
0 answers
525 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 &...
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 ...
user avatar
0 votes
0 answers
663 views

Glassfish 3 unable to deactivate SSL3 for IIOP

I'm running Glassfish 3.1.2.2 and want to disable SSL3 for the IIOP ports (default 3820 and 3920). I set configs.config.server-config.iiop-service.iiop-listener.SSL.ssl.ssl3-enabled=false configs....
user avatar
  • 101
2 votes
1 answer
536 views

Communication between Apache and glassfish

We are currently using HTTPD server (apache) to handle client request. The requests are further proxied to a Application Server (glassfish) which provides the content. The content are static files (...
user avatar
1 vote
0 answers
31 views

Communication between HTTPD and Glassfish server [duplicate]

Currently, Glassfish Server sits behind a Apache HTTPD server. Glassfish server provides business applications along with static content. The idea is to allow Apache HTTPD server to provide static ...
user avatar
1 vote
0 answers
2k views

Glassfish 4.1 JMX: java.rmi.ConnectIOException: non-JRMP server at remote endpoint

I've updated to Glassfish 4.1 from 4.0, and I can't access it from JConsole and VisualVM now (but I used to). JConsole outputs this before entering user/password: java.io.IOException: Failed to ...
user avatar
1 vote
2 answers
934 views

GlassFish Configuration Failed

I just downloaded the installer and ran the typical one for glassFish 3.1, However I have tried 2 times now and have got the same error twice now any help would be greatly appreciated(I have searched ...
user avatar
  • 111
0 votes
1 answer
856 views

What does "Waiting for DAS to start" mean in GlassFish 3?

I try to install the Glassfish 3 on my PC. I used the installation exe from https://glassfish.java.net/de/downloads/3.0.1-final.html I started the Installer which installed Glassfish. I created a ...
user avatar
0 votes
1 answer
1k views

Apache proxy to Glassfish - How to supress subfolder in URL?

I've got a single linux server running Apache/2.2.24 running both HTTP/HTTPS along with a Glassfish 3.1.2 server listening on port 8080. Glassfish runs a single deployed application which has ...
user avatar
  • 1
-1 votes
1 answer
4k views

Does GlassFish Server need JDK or JRE in order to run Java EE applications? [closed]

I want to Install GlassFish Server in a computer without a GUI. I would like to know if a JDK or a JRE is required in order to run Java Platform, Enterprise Edition (Java EE) applications?
user avatar
0 votes
2 answers
3k views

JDBC Connection Pool details on Glassfish

In the context of configuring Session Beans for Entity Classes, I can get some basic information from Glassfish v4 on Ubuntu about the JDBC connection pool from the CLI with asadmin, but would like to ...
user avatar
  • 229
0 votes
1 answer
2k views

With Glassfish, how to resolve https URL to http URL

GlassFish 3.0.1 RHEL 6.5 MySQL 5.4 Hello all I have a web app running under GlassFish/RHEL/MySQL where all of the software tiers (GlassFish/RHEL/MySQL) are on the same system. I have a (separate) ...
user avatar
0 votes
2 answers
2k views

JVM will not start when starting Glassfish on RHEL

GlassFish 3.0.1 RHEL 6.3 When trying to start GlassFish I get the following JVM error: JVM failed to start: com.sun.enterprise.admin.launcher.GFLauncherException: The server exited prematurely with ...
user avatar
1 vote
0 answers
54 views

Glassfish 2.0 - per node JVM config

I have a Glassfish (2.0) cluster with two nodes. I want to pass some extra JVM settings to a single node only. Is this configurable? At least from the console I see, this selective configuration is ...
user avatar