All Apps and Add-ons

Error opening zip file or JAR manifest missing : splunkagent.jar

Esky73
Builder

Trying to instrument a copy of konakart with the following :

java version "1.7.0_75"

This app has been successfully instrumented with both newrelic and CA APM and trying the Splunk tool now

working settings:

#JAVA_OPTS="$JAVA_OPTS -javaagent:/opt/konakart/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/opt/konakart/wily/core/config/IntroscopeAgent.profile"

# ---- New Relic switch automatically added to start command on 2017 Jun 14, 00:15:53
#NR_JAR=/opt/konakart/newrelic/newrelic.jar; export NR_JAR
#CATALINA_OPTS="$CATALINA_OPTS -javaagent:$NR_JAR"; export CATALINA_OPTS

snippet from the catalina.sh using the splunkagent.jar

I have tried both:

#JAVA_OPTS="$JAVA_OPTS -javaagent:splunkagent.jar"

Also:

SP_JAR=splunkagent.jar; export SP_JAR
CATALINA_OPTS="$CATALINA_OPTS -javaagent:$SP_JAR=/opt/konakart/SplunkJavaAgent/config/splunkagent.properties"; export CATALINA_OPTS

In the catalina.out i see the following:

Error opening zip file or JAR manifest missing : splunkagent.jar
Error occurred during initialization of VM
agent library failed to init: instrument
0 Karma

Damien_Dallimor
Ultra Champion

Well ,quite simply, you do not have splunkagent.jar on the classpath.

So make sure that the jar file is in a directory that is on the classpath.

0 Karma

Esky73
Builder

I have tried the splunkagent.jar in several locations such as

/usr/java/lib
/opt/konakart/lib

[root@KONAKART SplunkJavaAgent]# java -jar splunkagent.jar -v
no main manifest attribute, in splunkagent.jar

0 Karma

Esky73
Builder

IT was actually a problem with the jar file .. downloaded another instance and thats working - cheers for your fast response.

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...