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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...