Error: Could not find or load main class DummyProject
I have set this in catalina.sh
JAVA_OPTS="$JAVA_OPTS -javaagent:/home/abc/Pictures/apm-agent-attach-1.5.0/elastic-apm-agent.jar"
I have set this in setenv.sh
export CATALINA_OPTS="$CATALINA_OPTS -Xms1048m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx2048m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=4096m"
#export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/home/abc/Downloads/elastic-apm-agent-1.5.0.jar"
#-Delastic.apm.service_name=my-cool-service-tahseen
#-Delastic.apm.server_urls=http://localhost:8200"
export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/home/abc/Pictures/apm-agent-attach-1.5.0/elastic-apm-agent.jar"
#export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.service_name=SampleApp"
export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.service_name=DummyProject"
export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.application_packages="
export CATALINA_OPTS="$CATALINA_OPTS -Delastic.apm.server_urls=http://172.25.8.45:8200"
when i am running below command i am getting the error.
java -javaagent:/home/abc/Pictures/apm-agent-attach-1.5.0/elastic-apm-agent.jar -Delastic.apm.service_name=DummyProject -Delastic.apm.application_packages= -Delastic.apm.server_urls=http://172.25.8.45:8200 DummyProject