I am using Google Stackdriver Debugger for my application. My JVM argument for including the agent looks like this :
JAVA_OPTS=-agentpath:/opt/cdbg/cdbg_java_agent.so=--cdbg_extra_class_path=/opt/tomcat/webapps/myapp/WEB-INF/classfiles
\ -Dcom.google.cdbg.module=app_name
\ -Dcom.google.cdbg.version=app_version
\ -Dcom.google.cdbg.auth.serviceaccount.enable=true
\ -Dcom.google.cdbg.auth.serviceaccount.jsonfile=/opt/cdbg/gcp-svc.json"
But it doesn't work and the log files show the error : E0219 18:52:12.505424 31772 jni_logger.cc:61] Invalid application class path
.
I have another "classpath
" (/opt/tomcat/webapps/myapp/classfiles
) which only has an XML file named logback.xml
and is the supposed path according to the documentation, but I am not sure if it is correct. I followed this link to set that variable.
This is the source code of the debugger where it specifies the condition for raising an exception.
What is the classpath supposed to be? I also tried specifying a directory which included all the *.jar
files but it didn't work as well.