Logstash 7.16.3 failed to start: "cannot load Java class org.logstash.util.JavaVersion"

I installed Logstash OSS ver. 7.16.3 rpm:

$ sudo rpm -ivh logstash-oss-7.16.3-x86_64.rpm
warning: logstash-oss-7.16.3-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:logstash-oss-1:7.16.3-1          ################################# [100%]
Using bundled JDK: /usr/share/logstash/jdk
Using provided startup.options file: /etc/logstash/startup.options
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.32/lib/pleaserun/platform/base.rb:112: warning: constant ::Fixnum is deprecated
Successfully created system startup script for Logstash

but got error when tried to run it:

$ /usr/share/logstash/vendor/jruby/bin/jruby /usr/share/logstash/lib/bootstrap/environment.rb logstash/runner.rb --path.settings /etc/logstash/ --path.data /usr/share/logstash/ -e 'input { stdin { } } output { stdout {} }'
NameError: cannot load Java class org.logstash.util.JavaVersion
         for_name at org/jruby/javasupport/JavaClass.java:292
         for_name at org/jruby/javasupport/JavaClass.java:288
  get_proxy_class at org/jruby/javasupport/JavaUtilities.java:39
      java_import at uri:classloader:/jruby/java/core_ext/object.rb:44
              map at org/jruby/RubyArray.java:2589
      java_import at uri:classloader:/jruby/java/core_ext/object.rb:37
           <main> at /usr/share/logstash/logstash-core/lib/logstash/runner.rb:17
          require at org/jruby/RubyKernel.java:974
           <main> at /usr/share/logstash/lib/bootstrap/environment.rb:92

Could you help me to solve this issue? Is this related with missing java jars in the classpath?

Thank you in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.