zou79189747 opened a new issue #2907: [BUG] Can not locate agent jar file URL: https://github.com/apache/skywalking/issues/2907 when i use grpc register service find a problem,in my project add pom <dependency> <groupId>org.apache.skywalking</groupId> <artifactId>apm-agent-core</artifactId> <version>6.1.0</version> </dependency> and apm-agent-core.jar in WEB-INF/lib/ use main func run GRPCChannelManager connect success but build my project as war in tomcat run connect fair error:Can not locate agent jar file i found AgentPackagePath.findPath use ClassLoader.getSystemClassLoader.getResource get URL in my project return null so get error:Can not locate agent jar file i change this code to URL resource = ClassLoader.getSystemClassLoader().getResource(classResourcePath); if (resource == null) { resource = AgentPackagePath.class.getClassLoader().getResource(classResourcePath); } in tomcat run connect success but i am not sure this way is the best can your give me some suggest
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
