You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/04/26 15:58:01 UTC

[GitHub] [skywalking] aamrute-idnow commented on issue #6599: Cant find graph on skywalking UI for play framework

aamrute-idnow commented on issue #6599:
URL: https://github.com/apache/skywalking/issues/6599#issuecomment-826952561


   Issue with application starting with SBT, if play application start with `sbt run` or `sbt testProd`, agent could not send data to backend because of below exception, which is caused by extension class loader.
   
   `Caused by: java.lang.ClassNotFoundException: Can't find org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceConstructorInterceptor`
   
   As explained in https://github.com/apache/skywalking/issues/5242#issuecomment-671032068 extension class loader not support yet,
   
   In order to fix the issue, run play application in production mode (https://www.playframework.com/documentation/2.8.x/Deploying).
   
   Step 1 : Run on play project  `sbt dist`. It will create zip file in `target/universal/my-first-app-1.0.zip` folder.
   Step 2 : `unzip my-first-app-1.0.zip`
   Step 3: run `bin/my-first-app` from terminal with `-javaagent` arg.
   `bin/my-first-app -J-javaagent:/home/aamrute/work/tool/skywalking/8.5.0-es7/apache-skywalking-apm-bin-es7/agent/skywalking-agent.jar=agent.service_name=your_application_name`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org