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 2019/06/20 01:11:01 UTC

[GitHub] [skywalking] zou79189747 commented on issue #2907: [BUG] Can not locate agent jar file

zou79189747 commented on issue #2907: [BUG] Can not locate agent jar file
URL: https://github.com/apache/skywalking/issues/2907#issuecomment-503801729
 
 
   我这边的场景是全链路分析,有C写的网关,有java写的微服务,java微服务那快没什么问题直接-javaagent就可以了,但是C这边我们的方案是 通过一个掉用一个java后台提过的http接口来注册服务, 该接口调用skywalking grpc 来注册服务,提过java接口的后台是一个web工程,且在tomcat catalin.bat里面没有使用-javaagent ,这个场景下我就引用了apm-agent-core这个依赖,调用doServiceRegister注册服务,然后在tomcat环境下 报Can not locate agent jar file这个错,调试发现URL resource = ClassLoader.getSystemClassLoader().getResource(classResourcePath); resource为null ,想请问一下这个场景我修改源码有问题吗,还是有其他更好的方式解决

----------------------------------------------------------------
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


With regards,
Apache Git Services