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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...