Questions tagged [glassfish]
GlassFish is an open-source application server project for the Java EE platform.
201
questions
0
votes
0
answers
17
views
Could not find the alias s1as in the key store
I get the following error
remote failure: NCLS-SECURITY-05200 : org.jvnet.hk2.config.TransactionFailure: java.lang.RuntimeException: java.lang.IllegalArgumentException: Could not find the alias s1as ...
0
votes
1
answer
830
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 ...
0
votes
0
answers
25
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 ...
-1
votes
1
answer
334
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 ...
0
votes
1
answer
539
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 ...
0
votes
1
answer
307
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 ...
0
votes
1
answer
91
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 ...
0
votes
1
answer
336
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 ...
0
votes
1
answer
237
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 ...
0
votes
0
answers
189
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....
0
votes
1
answer
108
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 ...
0
votes
1
answer
30
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 ...
0
votes
0
answers
251
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:
...
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 ...
1
vote
0
answers
137
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....
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. ...
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 -...
0
votes
1
answer
73
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.
...
0
votes
0
answers
472
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 {...
0
votes
1
answer
967
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.
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 ...
-1
votes
0
answers
75
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 ...
-1
votes
1
answer
777
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 ...
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% ...
1
vote
1
answer
146
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 ...
1
vote
0
answers
778
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/...
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 ...
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 ...
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 ...
0
votes
0
answers
159
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:
...
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....
1
vote
1
answer
609
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 ...
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: [...
3
votes
2
answers
11k
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. ...
1
vote
0
answers
222
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, ...
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 ...
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:
/...
0
votes
0
answers
566
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 &...
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 ...
0
votes
0
answers
691
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....
2
votes
1
answer
570
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 (...
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 ...
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 ...
1
vote
2
answers
1k
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 ...
0
votes
1
answer
896
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 ...
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 ...
-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?
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 ...
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) ...
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 ...