After the upgrade, Glassfish 3.1.2-23 crashes at startup. 3.1.1 works fine

I upgraded to 3.1.2-23 today and now the thing will not start. This is a completely new installation and 3.1.1 worked fine. I uninstalled 3.1.2 and reinstalled 3.1.1 from the exe distribution and it works again. I have not made any other changes. I'm at a dead end. Anyway, here's the error after entering asadmin start-domain domain1 . Any ideas?

 Launching GlassFish on Felix platform Waiting for domain1 to start ..[#|2012-03-07T18:00:52.189-0600|INFO|glassfish3.1.2|com.sun.enterprise.server.logging.GFFileHandler|_ThreadID=1;_ThreadName=main;|Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2 (build 23)|#] [#|2012-03-07T18:00:52.588-0600|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=32;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 11ms - bound to [0.0.0.0:7676]|#] [#|2012-03-07T18:00:52.588-0600|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 38ms - bound to [0.0.0.0:8181]|#] [#|2012-03-07T18:00:52.588-0600|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 20ms - bound to [0.0.0.0:3700]|#] [#|2012-03-07T18:00:52.588-0600|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=26;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 57ms - bound to [0.0.0.0:8080]|#] [#|2012-03-07T18:00:52.588-0600|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 31ms - bound to [0.0.0.0:4848]|#] .[#|2012-03-07T18:00:52.736-0600|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=1;_ThreadName=main;|The Admin Console is already installed, but not yet loaded.|#] [#|2012-03-07T18:00:52.765-0600|INFO|glassfish3.1.2|org.hibernate.validator.util.Version|_ThreadID=1;_ThreadName=main;|Hibernate Validator 4.2.0.Final|#] [#|2012-03-07T18:00:52.949-0600|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=main;|Startup service failed to start : com.sun.enterprise.security.admin.cli.SecureAdminStartupCheck|#] [#|2012-03-07T18:00:52.976-0600|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=36;_ThreadName=Thread-21;|Server shutdown initiated|#] [#|2012-03-07T18:00:52.976-0600|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=36;_ThreadName=Thread-21;|Already stopped, so just returning|#] Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Grizzly-kernel-thread(1)" Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Grizzly-kernel-thread(1)" Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Grizzly-kernel-thread(1)" .Error starting domain domain1. The server exited prematurely with exit code 0. 
+6
source share
2 answers

You tried?

./asadmin start-domain --upgrade

When this is done, you can start and stop your server in the usual way.

+6
source

Sometimes it doesn’t even work after. / asadmin start-domain --upgrade. If you still get "Service start does not start: com.sun.enterprise.security.admin.cli.SecureAdminStartupCheck" after the command above, try the following:

  • Create a new domain with a domain. / asadmin create-domain domain2
  • Backing up your cacerts.jks and keystore.jks in a domain
  • Copy cacerts.jks and keystore.jks from new domain2 to domain 1
  • Run domain1./asadmin start-domain domain1
  • Enjoy it!

Then you can return the cacerts.jks and keystore.jks backups back. The domain will work.

+5
source

Source: https://habr.com/ru/post/910216/


All Articles