"Java missing" error messages

This forum deals with administrative topics such as monitoring and system setup. It is dedicated to system administrators who do not have to deal with the functions themselves but who have to establish and maintain proper environments.
Public since 15.2.2017

"Java missing" error messages

Postby Bernd Welter » Wed Feb 13, 2019 9:00 am

Hi there,

in the near future PTV xServers will be shipped without the known built-in JAVA runtime (xServer 1.28 and later, xServer 2.12 and later). This is because ORACLE defined a licensing model which is no longer free of cost.

If JAVA isn't configured in a proper way you may face one of the following error messages:

  • Java not configured at all:
    Java not found
    To check if Java is installed and configured, first try to start the server.
    If Java cannot be found, the file wrapper.log contains a message similar to the following:
    ERROR | wrapper | 2019/01/25 14:30:35 | Unable to execute Java command. The system cannot find the file specified. (0x2)
    Please check that you have Java 8 installed. Furthermore the environment variable JAVA_HOME has to point to the location of the Java installation (the directory containing the bin directory). If you do not want to change the value of the JAVA_HOME variable, you can use the environment variable XSERVER_JAVA_HOME.
    You should note that if neither the environment variable JAVA_HOME nor the environment variable XSERVER_JAVA_HOME is defined, the wrapper.log contains an additional warning similar to the following:
    WARN | wrapper | 2019/01/25 14:30:35 | The 'JAVA_HOME' environment variable was referenced but has not been defined.
  • JAVA configured but version mismatch
    Unsupported Java version
    To check if the version of the configured Java installation is supported, first try to start the server.
    If the Java version is unsupported, the file wrapper.log contains a message similar to the following:
    FATAL | wrapper | 2019/01/25 15:37:36 | The version of Java specified by wrapper.java.command (9)
    FATAL | wrapper | 2019/01/25 15:37:36 | is greater than the maximum allowed (1.8).

    Please check that you have Java 8 installed. Furthermore the environment variable JAVA_HOME has to point to the location of the Java installation. If you do not want to change the value of the JAVA_HOME variable, you can use the environment variable XSERVER_JAVA_HOME.

Long story short for the moment:
- you will be able to install an individual JRE on a machine (whether it is the profit version by ORACLE or a free of cost version by some other providers)
- by setting system variables such as JAVA_HOME or XSERVER_JAVA_HOME in the xServer settings you will be able to link the xServer to the JRE you installed "outside" the server installation itself.
- so if you face such a message check your servers documentation (this post is optimistic: the messages are based on internal snapshots ;-) )

Best regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1395
Joined: Mon Apr 14, 2014 10:28 am

Re: "Java missing" error messages

Postby Bernd Welter » Tue Apr 23, 2019 11:57 am

Our Product Managers posted this article in the devblog:
http://devblog.ptvgroup.com/2019/04/09/ ... 90s-thing/

So with the 1.28 version of xServer 1 we shipped the first version without a built-in JRE.

There are two chapters in the documentation of xServer 1 dealing with this:

Purchasers Guide - Hard and Software requirements - Java Installation
As the required Java Runtime Environment (JRE) is not integrated in the PTV xServer, it has to be installed separately. Currently a 64-bit Java 8 installation has to be provided. Depending on the policy of your company, we recommend the following two distributions:
• Amazon Corretto: No-cost distribution of OpenJDK with long-term support
• Oracle Java: Proven distribution of Java with free public updates until January 2019. From then on commercial users need to purchase a license for long-term support directly from Oracle.


Administrators Guide - Installation and Configuration - Java Installation
A PTV xServer requires a 64-bit Java 8 installation. Furthermore the environment variable JAVA_HOME has to point to the location of the Java installation (the directory containing the bin directory). If you do not want to change the value of the JAVA_HOME variable, you can use the environment variable XSERVER1_JAVA_HOME.

Hope this helps ;-)
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1395
Joined: Mon Apr 14, 2014 10:28 am

Re: "Java missing" error messages

Postby MISTERX » Fri May 03, 2019 9:30 am

Hi Bernd,

today I've installed first xServer version 1.28 and . . . tadaa . . . failed (initially).

When looking to the wrapper.log, I was surprised to read that JRE version 11.0.3.7 seems to be below 8!? After a short confusion I realized, that JRE version 8 is strongly recommended by PTV and only first character from version-string was compared (1 < 8 :mrgreen: ).

I'm not fine with this! There are many reasons to use latest (stable) version of any software, e.g. security, performance, features or bug fixes. Why we have to stick to a dedicated version (okay version 8 is still supported -> till 2025, but anyhow)? My xServer host was in a good shape with JRE 11, which was installed for other purposes. Finally I'm not sure if there might be vulnerabilities caused by multiple JRE version on the same host.

According to my humble opinion the xServer should be tolerant and must except all JRE version GE 8.
Mr. X
  • Integration PTV <> SAP
  • Senior Consultant
________________________________________________

Optimism is only a lack of data!
User avatar
MISTERX
 
Posts: 37
Joined: Mon Jun 02, 2014 11:50 am

Re: "Java missing" error messages

Postby Bernd Welter » Tue May 07, 2019 4:02 pm

Here's some feedback from PM (Daniel):
From our perspective this blog post gives you the info you need.

Furthermore:
Of course an additional JAVA runtime installation is another potential target for attacks but compared to the current state (no choice of the java version to be used) this is a significant option to reduce the risk: From now on you can perform an update of the JRE if the configured JRE is "critical" - as long as there is an update available.
And you'd no longer depend on PTV providing a server update (might take weeks after the patched JRE is available) but on the JRE provider himself...
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1395
Joined: Mon Apr 14, 2014 10:28 am


Return to PTV xServer Administration

cron