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/10/20 09:28:27 UTC

[GitHub] [skywalking] jackiepon31 opened a new issue #3661: Skywalking agent start with "No Class Found Error"

jackiepon31 opened a new issue #3661: Skywalking agent start with "No Class Found Error"
URL: https://github.com/apache/skywalking/issues/3661
 
 
   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
   - [ 1] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   I just want to fix something to the AgentClassLoader
    
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   
   - Which company or project?
   
   - What happen?
   In some cases, especially when the target java app is packaged in an old way, i mean the depency libs directory is out of the target application jar.  We need to add some VM options to make sure the java applications starts well, like "java -cp **/lib   -ext.dirs **/lib" . 
   But when we add these VM options, the target ClassLoaders may not be able to load any classes from skywalking-agent.jar cause it's out of the path  i have defined previously.  The target app classloader or any of its parent classloader will load the class with failure and push it down to AgentClassLoader to load the class ,and finally ,the not class found exception will stop the application from start.
   ___
   ### Requirement or improvement
   - Please describe about your requirements or improvement suggestions.
   
   I suggest to add SkyWalking-agent.jar or its dirs to classpath to make the load mechanism compatible with old packaing way instead of spring-boot fat jar.

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