payara / Payara

Payara Server is an open source middleware platform that supports reliable and secure deployments of Java EE (Jakarta EE) and MicroProfile applications in any environment: on premise, in the cloud or hybrid.
http://www.payara.fish
Other
883 stars 306 forks source link

Setting Session-Timeout="0" in Domain.xml makes the front-end inaccessible without anything being logged. #1207

Closed AlphaJuliettOmega closed 7 years ago

AlphaJuliettOmega commented 7 years ago

Description


I restarted my VM, without changing any Payara settings. The deployed application was running as expected before the restart, now subsequent reboots or start-domain/stop-domain calls have no effect.

When I try to access the Admin interface at localhost:4848 Only this line gets printed to the Server.log file:

[#|2016-11-25T15:28:50.508+0200|WARNING|Payara 4.1|javax.enterprise.system.container.web.com.sun.web.security|_ThreadID=45;_ThreadName=admin-thread-pool(1);_TimeMillis=1480080530508;_LevelValue=900;|
  Context path from ServletContext:  differs from path from bundle: /|#]

and in the browser it displays:

HTTP Status 500 - Internal Server Error

type: Status report

message: Internal Server Error

description: The server encountered an internal error that prevented it from fulfilling this request.
Payara Server 4.1.1.163 #badassfish

at port 8181 I can still access the Payara 'welcome page' trying to access port 8080 the browser just indefinitely loads, to no effect.

When I try access the Admin page at 4848, that Warning about Context path gets printed, but only once. Subsequent refreshes/reloads of the page does not output any more to the log file.

Expected Outcome

I want to be able to access the Admin page again.

Current Outcome

Here is the full stack-trace including the command I ran to try start the domain.

[root@cloudvm:/home/glassfish/payara41/glassfish/bin]# ./asadmin start-domain --verbose --debug domain1
Nov 25, 2016 3:24:49 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
/usr/lib/jvm/jdk1.8_102/bin/java
-cp
/home/glassfish/payara41/glassfish/modules/glassfish.jar
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-XX:MaxPermSize=192m
-Xmx512m
-client
-javaagent:/home/glassfish/payara41/glassfish/lib/monitor/flashlight-agent.jar
-Djavax.xml.accessExternalSchema=all
-Djavax.net.ssl.trustStore=/home/glassfish/payara41/glassfish/domains/domain1/config/cacerts.jks
-Djdk.tls.rejectClientInitiatedRenegotiation=true
-Djdk.corba.allowOutputStreamSubclass=true
-Dfelix.fileinstall.dir=/home/glassfish/payara41/glassfish/modules/autostart/
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall
-Dcom.sun.aas.installRoot=/home/glassfish/payara41/glassfish
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=/home/glassfish/payara41/glassfish/modules/endorsed:/home/glassfish/payara41/glassfish/lib/endorsed
-Djava.security.policy=/home/glassfish/payara41/glassfish/domains/domain1/config/server.policy
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.bundles.startTransient=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dfelix.fileinstall.log.level=2
-Djavax.net.ssl.keyStore=/home/glassfish/payara41/glassfish/domains/domain1/config/keystore.jks
-Djava.security.auth.login.config=/home/glassfish/payara41/glassfish/domains/domain1/config/login.conf
-Dfelix.fileinstall.disableConfigSave=false
-Dfelix.fileinstall.bundles.new.start=true
-Dcom.sun.aas.instanceRoot=/home/glassfish/payara41/glassfish/domains/domain1
-Dosgi.shell.telnet.port=6666
-Dgosh.args=--nointeractive
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Dorg.jboss.weld.serialization.beanIdentifierIndexOptimization=false
-Dosgi.shell.telnet.ip=127.0.0.1
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.awt.headless=true
-Dcom.ctc.wstx.returnNullForDefaultNamespace=true
-Djava.ext.dirs=/usr/lib/jvm/jdk1.8_102/lib/ext:/usr/lib/jvm/jdk1.8_102/jre/lib/ext:/home/glassfish/payara41/glassfish/domains/domain1/lib/ext
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djava.library.path=/home/glassfish/payara41/glassfish/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
/home/glassfish/payara41/glassfish/domains/domain1
-read-stdin
true
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=true,,,--watchdog=false,,,--debug=true,,,--domaindir,,,/home/glassfish/payara41/glassfish/domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
true
-asadmin-classpath
/home/glassfish/payara41/glassfish/lib/client/appserver-cli.jar
-debug
true
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain
-watchdog
false
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
Listening for transport dt_socket at address: 9009
Launching GlassFish on Felix platform
Nov 25, 2016 3:24:51 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@335c05ea in service registry.
Nov 25, 2016 3:24:54 PM com.sun.logging.LogDomains getResourceBundle
INFO: Cannot find the resource bundle for the name com.sun.logging.enterprise.system.container.ejb for class org.glassfish.kernel.javaee.MEJBService using org.glassfish.main.core.javaee-kernel [250]

#!## LogManagerService.postConstruct : rootFolder=/home/glassfish/payara41/glassfish
#!## LogManagerService.postConstruct : templateDir=/home/glassfish/payara41/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/home/glassfish/payara41/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/home/glassfish/payara41/glassfish/domains/domain1/config/logging.properties
[#|2016-11-25T15:24:54.649+0200|INFO|Payara 4.1|javax.enterprise.logging|_ThreadID=18;_ThreadName=RunLevelControllerThread-1480080294163;_TimeMillis=1480080294649;_LevelValue=800;_MessageID=NCLS-LOGGING-00009;|
  Running Payara Version: Payara Server  4.1.1.163 #badassfish (build 215)|#]

[#|2016-11-25T15:24:54.661+0200|INFO|Payara 4.1|javax.enterprise.logging|_ThreadID=18;_ThreadName=RunLevelControllerThread-1480080294163;_TimeMillis=1480080294661;_LevelValue=800;_MessageID=NCLS-LOGGING-00010;|
  Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter|#]

[#|2016-11-25T15:24:55.811+0200|INFO|Payara 4.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=18;_ThreadName=RunLevelControllerThread-1480080294163;_TimeMillis=1480080295811;_LevelValue=800;|
  Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]

[#|2016-11-25T15:24:55.992+0200|INFO|Payara 4.1|javax.enterprise.security.services|_ThreadID=20;_ThreadName=RunLevelControllerThread-1480080294197;_TimeMillis=1480080295992;_LevelValue=800;_MessageID=SEC-SVCS-00100;|
  Authorization Service has successfully initialized.|#]

[#|2016-11-25T15:24:56.137+0200|INFO|Payara 4.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=18;_ThreadName=RunLevelControllerThread-1480080294163;_TimeMillis=1480080296137;_LevelValue=800;|
  Registered fish.payara.ha.hazelcast.store.HazelcastBackingStoreFactoryProxy for persistence-type = hazelcast in BackingStoreFactoryRegistry|#]

[#|2016-11-25T15:24:56.139+0200|INFO|Payara 4.1|fish.payara.ha.hazelcast.store.HazelcastBackingStoreFactory|_ThreadID=18;_ThreadName=RunLevelControllerThread-1480080294163;_TimeMillis=1480080296139;_LevelValue=800;|
  Registered Hazelcast BackingStoreFactory with persistence-type = hazelcast|#]

[#|2016-11-25T15:24:56.226+0200|INFO|Payara 4.1|javax.enterprise.system.core.security|_ThreadID=17;_ThreadName=RunLevelControllerThread-1480080294148;_TimeMillis=1480080296226;_LevelValue=800;_MessageID=NCLS-SECURITY-01115;|
  Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

[#|2016-11-25T15:24:56.233+0200|INFO|Payara 4.1|javax.enterprise.system.core.security|_ThreadID=17;_ThreadName=RunLevelControllerThread-1480080294148;_TimeMillis=1480080296233;_LevelValue=800;_MessageID=NCLS-SECURITY-01115;|
  Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

[#|2016-11-25T15:24:56.243+0200|INFO|Payara 4.1|javax.enterprise.system.core.security|_ThreadID=17;_ThreadName=RunLevelControllerThread-1480080294148;_TimeMillis=1480080296243;_LevelValue=800;_MessageID=NCLS-SECURITY-01115;|
  Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.|#]

[#|2016-11-25T15:24:56.424+0200|INFO|Payara 4.1|javax.enterprise.system.core|_ThreadID=19;_ThreadName=RunLevelControllerThread-1480080294186;_TimeMillis=1480080296424;_LevelValue=800;_MessageID=NCLS-CORE-00087;|
  Grizzly Framework 2.3.25 started in: 78ms - bound to [/0.0.0.0:8080]|#]

[#|2016-11-25T15:24:56.487+0200|INFO|Payara 4.1|javax.enterprise.system.core|_ThreadID=19;_ThreadName=RunLevelControllerThread-1480080294186;_TimeMillis=1480080296487;_LevelValue=800;_MessageID=NCLS-CORE-00087;|
  Grizzly Framework 2.3.25 started in: 12ms - bound to [/0.0.0.0:8181]|#]

[#|2016-11-25T15:24:56.550+0200|INFO|Payara 4.1|javax.enterprise.system.core|_ThreadID=19;_ThreadName=RunLevelControllerThread-1480080294186;_TimeMillis=1480080296550;_LevelValue=800;_MessageID=NCLS-CORE-00087;|
  Grizzly Framework 2.3.25 started in: 4ms - bound to [/0.0.0.0:4848]|#]

[#|2016-11-25T15:24:56.709+0200|INFO|Payara 4.1|javax.enterprise.system.core|_ThreadID=18;_ThreadName=RunLevelControllerThread-1480080294163;_TimeMillis=1480080296709;_LevelValue=800;_MessageID=NCLS-CORE-00087;|
  Grizzly Framework 2.3.25 started in: 4ms - bound to [/0.0.0.0:3700]|#]

[#|2016-11-25T15:24:56.718+0200|INFO|Payara 4.1|javax.enterprise.system.core|_ThreadID=1;_ThreadName=main;_TimeMillis=1480080296718;_LevelValue=800;_MessageID=NCLS-CORE-00017;|
  Payara Server  4.1.1.163 #badassfish (215) startup time : Felix (4,192ms), startup services(2,584ms), total(6,776ms)|#]

[#|2016-11-25T15:24:56.720+0200|INFO|Payara 4.1|fish.payara.nucleus.util.CleanupPostBoot|_ThreadID=1;_ThreadName=main;_TimeMillis=1480080296720;_LevelValue=800;|
  Cleaning JarFileFactory Cache to prevent jar FD leaks|#]

[#|2016-11-25T15:24:57.364+0200|INFO|Payara 4.1|javax.enterprise.system.core|_ThreadID=18;_ThreadName=RunLevelControllerThread-1480080294163;_TimeMillis=1480080297364;_LevelValue=800;_MessageID=NCLS-CORE-00087;|
  Grizzly Framework 2.3.25 started in: 18ms - bound to [/0.0.0.0:7676]|#]

[#|2016-11-25T15:24:57.576+0200|INFO|Payara 4.1|javax.enterprise.system.jmx|_ThreadID=53;_ThreadName=Thread-14;_TimeMillis=1480080297576;_LevelValue=800;_MessageID=NCLS-JMX-00024;|
  Creating a SecureRMIServerSocketFactory @ 0.0.0.0 with ssl config = GlassFishConfigBean.org.glassfish.grizzly.config.dom.Ssl|#]

[#|2016-11-25T15:24:57.609+0200|WARNING|Payara 4.1|javax.enterprise.system.jmx|_ThreadID=53;_ThreadName=Thread-14;_TimeMillis=1480080297609;_LevelValue=900;_MessageID=NCLS-JMX-00020;|
  All SSL cipher suites disabled for network-listener(s).  Using SSL implementation specific defaults|#]

[#|2016-11-25T15:24:57.608+0200|INFO|Payara 4.1||_ThreadID=53;_ThreadName=Thread-14;_TimeMillis=1480080297608;_LevelValue=800;|
  SSLParams =org.glassfish.admin.mbeanserver.ssl.SSLParams@64f44249|#]

[#|2016-11-25T15:24:57.635+0200|WARNING|Payara 4.1|javax.enterprise.system.jmx|_ThreadID=53;_ThreadName=Thread-14;_TimeMillis=1480080297635;_LevelValue=900;_MessageID=NCLS-JMX-00020;|
  All SSL cipher suites disabled for network-listener(s).  Using SSL implementation specific defaults|#]

[#|2016-11-25T15:24:57.635+0200|INFO|Payara 4.1||_ThreadID=53;_ThreadName=Thread-14;_TimeMillis=1480080297635;_LevelValue=800;|
  SSLParams =org.glassfish.admin.mbeanserver.ssl.SSLParams@64f44249|#]

[#|2016-11-25T15:24:58.071+0200|INFO|Payara 4.1|javax.enterprise.system.jmx|_ThreadID=53;_ThreadName=Thread-14;_TimeMillis=1480080298071;_LevelValue=800;_MessageID=NCLS-JMX-00025;|
  SSLServerSocket /0.0.0.0:8686 and [SSL: ServerSocket[addr=/0.0.0.0,localport=8686]] created|#]

[#|2016-11-25T15:24:58.544+0200|INFO|Payara 4.1|javax.enterprise.bootstrap|_ThreadID=1;_ThreadName=main;_TimeMillis=1480080298544;_LevelValue=800;_MessageID=NCLS-BOOTSTRAP-00027;|
  Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@5a08efdc as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@625dfff3.|#]

[#|2016-11-25T15:24:58.711+0200|INFO|Payara 4.1||_ThreadID=15;_ThreadName=FelixStartLevel;_TimeMillis=1480080298711;_LevelValue=800;|
  /home/glassfish/payara41/glassfish/domains/domain1/autodeploy/bundles does not exist, please create it.|#]

[#|2016-11-25T15:24:59.017+0200|INFO|Payara 4.1|javax.enterprise.system.jmx|_ThreadID=53;_ThreadName=Thread-14;_TimeMillis=1480080299017;_LevelValue=800;_MessageID=NCLS-JMX-00005;|
  JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://guardian.adept.za.net:8686/jndi/rmi://guardian.adept.za.net:8686/jmxrmi|#]

[#|2016-11-25T15:25:01.164+0200|INFO|Payara 4.1|javax.enterprise.web|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080301164;_LevelValue=800;_MessageID=AS-WEB-GLUE-00198;|
  Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080|#]

[#|2016-11-25T15:25:01.183+0200|INFO|Payara 4.1|javax.enterprise.web|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080301183;_LevelValue=800;_MessageID=AS-WEB-GLUE-00198;|
  Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181|#]

[#|2016-11-25T15:25:01.187+0200|INFO|Payara 4.1|javax.enterprise.web|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080301187;_LevelValue=800;_MessageID=AS-WEB-GLUE-00198;|
  Created HTTP listener admin-listener on host/port 0.0.0.0:4848|#]

[#|2016-11-25T15:25:01.238+0200|INFO|Payara 4.1|javax.enterprise.web|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080301238;_LevelValue=800;_MessageID=AS-WEB-GLUE-00200;|
  Created virtual server server|#]

[#|2016-11-25T15:25:01.244+0200|INFO|Payara 4.1|javax.enterprise.web|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080301244;_LevelValue=800;_MessageID=AS-WEB-GLUE-00200;|
  Created virtual server __asadmin|#]

[#|2016-11-25T15:25:01.866+0200|INFO|Payara 4.1|javax.enterprise.web.core|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080301866;_LevelValue=800;_MessageID=AS-WEB-CORE-00306;|
  Setting JAAS app name glassfish-web|#]

[#|2016-11-25T15:25:01.873+0200|INFO|Payara 4.1|javax.enterprise.web|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080301873;_LevelValue=800;_MessageID=AS-WEB-GLUE-00201;|
  Virtual server server loaded default web module |#]

[#|2016-11-25T15:25:02.464+0200|INFO|Payara 4.1|javax.enterprise.system.core.security|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080302464;_LevelValue=800;_MessageID=NCLS-SECURITY-01002;|
  Java security manager is disabled.|#]

[#|2016-11-25T15:25:02.465+0200|INFO|Payara 4.1|javax.enterprise.system.core.security|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080302465;_LevelValue=800;_MessageID=NCLS-SECURITY-01010;|
  Entering Security Startup Service.|#]

[#|2016-11-25T15:25:02.471+0200|INFO|Payara 4.1|javax.enterprise.system.core.security|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080302471;_LevelValue=800;_MessageID=NCLS-SECURITY-01143;|
  Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

[#|2016-11-25T15:25:02.587+0200|INFO|Payara 4.1|javax.enterprise.system.core.security|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080302587;_LevelValue=800;_MessageID=NCLS-SECURITY-01011;|
  Security Service(s) started successfully.|#]

[#|2016-11-25T15:25:06.731+0200|INFO|Payara 4.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080306731;_LevelValue=800;_MessageID=jsf.config.listener.version;|
  Initializing Mojarra 2.2.13 ( 20160203-1910 unable to get svn info) for context ''|#]

[#|2016-11-25T15:25:08.539+0200|INFO|Payara 4.1|org.hibernate.validator.internal.util.Version|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080308539;_LevelValue=800;|
  HV000001: Hibernate Validator 5.1.2.Final|#]

[#|2016-11-25T15:25:09.537+0200|INFO|Payara 4.1|javax.enterprise.web|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080309537;_LevelValue=800;_MessageID=AS-WEB-GLUE-00172;|
  Loading application [__admingui] at [/]|#]

[#|2016-11-25T15:25:09.545+0200|INFO|Payara 4.1|javax.enterprise.system.core|_ThreadID=59;_ThreadName=Thread-15;_TimeMillis=1480080309545;_LevelValue=800;_MessageID=NCLS-CORE-00022;|
  Loading application __admingui done in 11,053 ms|#]

[#|2016-11-25T15:28:50.508+0200|WARNING|Payara 4.1|javax.enterprise.system.container.web.com.sun.web.security|_ThreadID=45;_ThreadName=admin-thread-pool(1);_TimeMillis=1480080530508;_LevelValue=900;|
  Context path from ServletContext:  differs from path from bundle: /|#]

Steps to reproduce

(simply for clarification of the issue)

1 -** Start the domain

./asadmin start-domain domain1

2 -** Try to access admin page by accessing from browser

https://xxx.xxx.xxx.xxx:4848/ results in a non-descriptive Error 500: Internal server error

3 -** Cat or tail server.log

No error, only one warning about the 'context path'

Environment

I'm thinking there's a configuration option i'm missing but i'm still new to this type of software so any advice or recommendations are appreciated.

If any additional information is required, i'll supply it.

Thank you devs for the great Glassfish alternative!

edit: Would someone mind explaining how I would manually completely remove the .War I have deployed without having access to the Admin web-gui? I have full ssh access/ a terminal and can delete files but I don't want a malformed deployment.

AlphaJuliettOmega commented 7 years ago

Does this warning mean I have to change any specific settings and is it possibly related to my issue?

[2016-11-28T09:38:00.864+0200] [Payara 4.1] [WARNING] [NCLS-JMX-00020] [javax.enterprise.system.jmx] [tid: _ThreadID=51 _ThreadName=Thread-14] [timeMillis: 1480318680864] [levelValue: 900] [[
  All SSL cipher suites disabled for network-listener(s).  Using SSL implementation specific defaults]]
AlphaJuliettOmega commented 7 years ago

Oh I have found a little more information but I don't know what it means, in Chrome when I first load the page, in Inspector I get this error in the console:

(index):136 GET https://guardian.adept.za.net:4848/testifbackendisready.html 500 (Internal Server Error)
displayCount @ (index):136
(anonymous function) @ VM312:1

thrown in the Javascript function

<script type="text/javascript">
            if (document.getElementById('layout-doc') != null) {
                window.location = 'https://guardian.adept.za.net:4848/login.jsf';
            }

            var feedbackZoneId = 'feedbackZone';

            function start() {
                displayCount(1,feedbackZoneId);

            }
            loaded(feedbackZoneId,start);

            var pageLoaded = 0; 

            window.onload = function() {
                pageLoaded = 1;
            }
            function loaded(i,f) {
                if (document.getElementById && document.getElementById(i) != null) {
                    f(); 

                }
                else 
                    if (!pageLoaded) 
                        setTimeout('loaded(\''+i+'\','+f+')',100);
            } 

            String.prototype.startsWith = function(s) { 
                if( this.indexOf(s) == 0 ) 
                    return true; 
                return false; 
            }

            function displayCount(countdn,cd) 
            {
                if (window.XMLHttpRequest)
                {// code for IE7+, Firefox, Chrome, Opera, Safari
                    xmlhttp=new XMLHttpRequest();
                }
                else
                {// code for IE6, IE5
                    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                }
                xmlhttp.onreadystatechange=function()
                {
                    if (xmlhttp.readyState==4 && ((xmlhttp.status==200)||(xmlhttp.status==202)))
                    {
                        var response = ""+xmlhttp.responseText;
                        if (response.startsWith(":::")){
                            fileLines=response.split("\n");

                            document.getElementById("STATUS").innerHTML= fileLines[0].substring(3,fileLines[0].length);
                            document.getElementById("WELCOME").innerHTML= "<b>"+ fileLines[1]+"</b>";

                          /// document.getElementById(cd).innerHTML = countdn+' times  ';
                            setTimeout('displayCount('+(countdn+1)+',\''+cd+'\');',999);
                        }else {
                            location.reload(true);
                        }
                       }
                }              
                xmlhttp.open("GET","/testifbackendisready.html",true);
                xmlhttp.send();
            }
</script>

Reloading the page then switches the page from displaying the 'loading Admin page screen'

Welcome to Payara Server 4.1.1.163 #badassfish (build 215).
Status indicator image. Status: The Admin Console is starting. Please wait.
If the browser does not refresh the page automatically please reload the page.

To:

the Error 500 page, with this message in the console: GET https://guardian.adept.za.net:4848/favicon.ico 500 (Internal Server Error)

Once I have reloaded the page once, the Javascript/Loading Payara page doesn't display and only the Error 500 page is displayed with the Favicon error - The Ico Mimetype is set correctly in the default-web.xml file.

AlphaJuliettOmega commented 7 years ago

Hilarious, If you set this in Domain.xml:

<web-container>
  <session-config>
    <session-manager>
      <store-properties></store-properties>
      <manager-properties></manager-properties>
    </session-manager>
    <session-properties **session-timeout="0"**></session-properties>
  </session-config>
</web-container>

The Admin Gui is completely inaccessible, a message should be thrown in log saying something like 'Session timed out' or 'Warning, Session timeout is too low' In some other version of Glassfish setting this to 0 makes the sessions indefinite, in Payara, it breaks it.

mikecroft commented 7 years ago

I just tried this with a completely fresh domain and couldn't reproduce the problem. Setting session-timeout="0" works in both Firefox and Chrome.

AlphaJuliettOmega commented 7 years ago

Hmm, I'll check if there's any settings specific to the domain that I had the issue on, I will report back in the next 48 hours

AlphaJuliettOmega commented 7 years ago

Here is a diff between the domain that is working again and a fresh domain created with the Asadmin Create-domain command, the diff was done with the linux diff command: < Signifies the offending domain's Domain.xml > Signifies the fresh domain's Domain.xml

<         <login-module-config module-class="com.sun.enterprise.admin.util.AdminLoginModule" control-flag="sufficient" name="adminSpecialLM">
---
>         <login-module-config control-flag="sufficient" module-class="com.sun.enterprise.admin.util.AdminLoginModule" name="adminSpecialLM">

<         <login-module-config module-class="com.sun.enterprise.security.auth.login.FileLoginModule" control-flag="sufficient" name="adminFileLM">
---
>         <login-module-config control-flag="sufficient" module-class="com.sun.enterprise.security.auth.login.FileLoginModule" name="adminFileLM">

<     <application context-root="" object-type="system-admin" name="__admingui" directory-deployed="true" location="${com.sun.aas.installRootURI}/lib/install/applications/__admingui">
---
>     <application context-root="" object-type="system-admin" directory-deployed="true" name="__admingui" location="${com.sun.aas.installRootURI}/lib/install/applications/__admingui">

>     <jdbc-resource pool-name="DerbyPool" object-type="system-all" jndi-name="jdbc/__default"></jdbc-resource>

<     <connector-connection-pool resource-adapter-name="jmsra" max-pool-size="250" steady-pool-size="1" name="jms/__defaultConnectionFactory-Connection-Pool" connection-definition-name="javax.jms.ConnectionFactory" transaction-support="LocalTransaction"></connector-connection-pool>
---
>     <connector-connection-pool max-pool-size="250" resource-adapter-name="jmsra" steady-pool-size="1" name="jms/__defaultConnectionFactory-Connection-Pool" connection-definition-name="javax.jms.ConnectionFactory"></connector-connection-pool>

<     <jdbc-connection-pool ping="true" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" name="guardian" res-type="javax.sql.DataSource">
---
>     <jdbc-connection-pool driver-classname="" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" name="guardian" res-type="javax.sql.DataSource">

>       <resource-ref ref="jdbc/__default"></resource-ref>

<     <node name="localhost-domain1" install-dir="${com.sun.aas.productRoot}" type="CONFIG" node-host="localhost"></node>
---
>     <node name="localhost-guardian" install-dir="${com.sun.aas.productRoot}" type="CONFIG" node-host="localhost"></node>

<       <asadmin-recorder-configuration enabled="true"></asadmin-recorder-configuration>
---
>       <asadmin-recorder-configuration></asadmin-recorder-configuration>

<         <jms-host port="${JMS_PROVIDER_PORT}" name="default_JMS_host" host="localhost"></jms-host>
---
>         <jms-host port="${JMS_PROVIDER_PORT}" host="localhost" name="default_JMS_host"></jms-host>

<         <jvm-options>-Declipselink.logging.level=FINE</jvm-options>

<         <thread-pool name="admin-thread-pool" min-thread-pool-size="1" max-queue-size="256" max-thread-pool-size="15"></thread-pool>
---
>         <thread-pool name="admin-thread-pool" min-thread-pool-size="1" max-thread-pool-size="15" max-queue-size="256"></thread-pool>

<         <jms-host port="${JMS_PROVIDER_PORT}" host="localhost" name="default_JMS_host"></jms-host>
---
>         <jms-host port="${JMS_PROVIDER_PORT}" name="default_JMS_host" host="localhost"></jms-host>

<         <thread-pool name="admin-thread-pool" min-thread-pool-size="1" max-queue-size="256" max-thread-pool-size="15"></thread-pool>
---
>         <thread-pool name="admin-thread-pool" min-thread-pool-size="1" max-thread-pool-size="15" max-queue-size="256"></thread-pool>

<   <property name="administrative.domain.name" value="domain1"></property>
<   <secure-admin special-admin-indicator="2ce9132b-ee96-4a2e-a37a-0ab5caee5fed" enabled="true">
<     <secure-admin-principal dn="CN=localhost,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal>
<     <secure-admin-principal dn="CN=localhost-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal>
---
>   <property name="administrative.domain.name" value="guardian"></property>
>   <secure-admin special-admin-indicator="093375b4-6d78-4531-b9d5-20b41d49e445" enabled="true">
>     <secure-admin-principal dn="CN=xxx.xx.net,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal>
>     <secure-admin-principal dn="CN=xxx.xx.net-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal>

<       <property name="org.glassfish.ejb.container.application_unique_id" value="97014689824768000"></property>
---
>       <property name="org.glassfish.ejb.container.application_unique_id" value="97014510860959744"></property>

I have not attempted to reproduce it again yet as it's a project i'm developing that needs to have a few features done by the end of the week, still i'll try get back on it asap.

The session timeout=0 command doesn't show in this diff as I have removed that parameter to get the domain up again.

Possible culprits:

  1. Asadmin Recording

  2. possibly a Secure Admin + 'timeout = 0' combo caused this?

mikecroft commented 7 years ago

Aside from some differences in JDBC configuration which would not be related, I can't see much difference between the two.

I already tried with and without secure admin enabled and tried again just now with the asadmin recorder enabled and disabled and can't get a failure.

It would be interesting to see whether you can consistently reproduce this or not. If you can, then I may need to try to more closely match your setup (OS, Java version etc).

mikecroft commented 7 years ago

Hi @AlphaJuliettOmega have you found that this is reliably reproducible?

AlphaJuliettOmega commented 7 years ago

I do apologize most sincerely but i've not been able to reproduce the issue, I believe it must have been a mis-deploy with a corrupt war or something to that effect, something I did to it maybe? Since I removed the session-timeout=0 and re-deployed, i've only changed the admin password and adjusted one JDBC Resource.

I added session-timeout=0 in again and could access the Payara front-end perfectly fine, i'm sorry I couldn't get more debug information when it happened. At least if it is really a bug, hopefully someone will come across this thread.

Specs of VM Ubuntu 16.04.1 LTS
Jdk 1.8_102 Payara Server 4.1.1.163 #badassfish (build 215)

AlphaJuliettOmega commented 7 years ago

Hmmm, If I directly edit the domain.xml file and add session-timeout="0" now, then it gets removed when I redeploy, is there another place I should set it from properly to propagate to the domain.xml file? Is this normal behaviour? I tried editing the file, redeploying and opening it twice and the timeout gets removed each time.

mikecroft commented 7 years ago

Yes, if you go to the admin console, open up the correct config in the Tree on the left (server-config is the one for the DAS) there is an entry called Web Container which has session properties:

image

mikecroft commented 7 years ago

Hi @AlphaJuliettOmega if this is still not reproducible, shall we close this issue for now?

AlphaJuliettOmega commented 7 years ago

yes, close it - I do apologize for the delay