Getting Data In

No such file or directory: 'java' adding JMX account using Splunk add-on for Tomcat

onknows
New Member

I am trying to use the Splunk Add-on for Tomcat  first time. When I try Add Account this results in error message below. I think the add-on expects Java to be somewhere. Java is installed on my all-in-one Splunk server, where the add-on is installed. How do I make Java available to this add-on?

Traceback (most recent call last): File "/opt/splunk/etc/apps/Splunk_TA_tomcat/lib/splunktaucclib/rest_handler/handler.py", line 142, in wrapper for name, data, acl in meth(self, *args, **kwargs): File "/opt/splunk/etc/apps/Splunk_TA_tomcat/lib/splunktaucclib/rest_handler/handler.py", line 107, in wrapper self.endpoint.validate( File "/opt/splunk/etc/apps/Splunk_TA_tomcat/lib/splunktaucclib/rest_handler/endpoint/init.py", line 85, in validate self._loop_fields("validate", name, data, existing=existing) File "/opt/splunk/etc/apps/Splunk_TA_tomcat/lib/splunktaucclib/rest_handler/endpoint/init.py", line 82, in _loop_fields return [getattr(f, meth)(data, *args, **kwargs) for f in model.fields] File "/opt/splunk/etc/apps/Splunk_TA_tomcat/lib/splunktaucclib/rest_handler/endpoint/init.py", line 82, in <listcomp> return [getattr(f, meth)(data, *args, **kwargs) for f in model.fields] File "/opt/splunk/etc/apps/Splunk_TA_tomcat/lib/splunktaucclib/rest_handler/endpoint/field.py", line 56, in validate res = self.validator.validate(value, data) File "/opt/splunk/etc/apps/Splunk_TA_tomcat/bin/Splunk_TA_tomcat_account_validator.py", line 85, in validate self._process = subprocess.Popen( # nosemgrep false-positive : The value java_args is File "/opt/splunk/lib/python3.9/subprocess.py", line 951, in __init_ self._execute_child(args, executable, preexec_fn, close_fds, File "/opt/splunk/lib/python3.9/subprocess.py", line 1837, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'java'

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...