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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...