sermant-io / Sermant

A Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.26k stars 170 forks source link

关于ClassLoader增强 #1519

Open Yaxx19 opened 6 months ago

Yaxx19 commented 6 months ago

What do you want to ask?

代码以war包的方式部署在tomcat下,引入流控和负载均衡插件,在启动过程中会出现FileNotFoundException异常。 基于官方指南,是否可以自行对tomcat的类加载器进行增强,执行相同的interceptor逻辑,来保证类的加载。

sermant sermant2

hanbingleixue commented 6 months ago

@Yaxx19 Your problem is FileNotFoundException, which is different from ClassNotFoundException described in the official guide. If the problem is caused by the tomcat class loader that cannot find the class, you can enhance the tomcat class loader to solve the problem.You need to provide related logs and Sermant version information to determine the cause.