'Unable to read system environment. No system environment will be used' when Application Server 8.x on Linux is Pointing to a 64 Bit Version of Java (Doc ID 1222606.1)

Last updated on APRIL 06, 2017

Applies to:

Oracle GlassFish Server - Version: 7.0 to 8.2 - Release: 7.0 to 8.2
Information in this document applies to any platform.

Symptoms

Sun Java System Application Server 8.2 fails to start when using 64 bit Java on Linux. The following error appears when attempting to start the Application Server.

Unable to read system environment. No system environment will be used.
Starting Domain domain1, please wait.
Default Log location is /opt/SUNWappserverpatch/domains/domain1/logs/server.log.
Timeout waiting for domain domain1 to go to starting state.
CLI156 Could not start the domain domain1.

The same problem would occur with previous versions of application server although the error message might be different.

If the Application Server is started with --verbose the following additional error occurs:

Unable to read system environment. No system environment will be used.
Starting Domain domain1, please wait.
/opt/SUNWappserverpatch/lib/appservLauncher: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory

Changes

Switching from 32 bit to 64 bit Java will cause this problem.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms