Bootstrap: uses JVM classes & looks in $JAVA_HOME/jre/lib/ext
1. |
2. System: uses $CATALINA_HOME/bin/bootstrap.jar
3. | and $JAVA_HOME/lib/tools.jar
4. |
5. Common: uses $CATALINA_HOME/common/lib
6. / / and $CATALINA_HOME/common/classes
7. / / and $CATALINA_HOME/common/endorsed
8. / / >> jsp and servlet API jars are here
9. / +---------------------------------+
10. / |
11. Catalina: uses $CATALINA_HOME/server/lib |
12. and $CATALINA_HOME/server/classes |
13. >> catalina.jar is here |
14. Shared: uses
15. $CATALINA_BASE/shared/lib
16. / / and
17. $CATALINA_BASE/shared/classes
18. / /
19. Webapp1 Webapp2 ... <--- **GREEDY**
20. CLASSLOADERS
本文详细介绍了Tomcat服务器的类加载机制,包括不同类型的类加载器及其搜索路径,如Bootstrap、System、Common等,解释了如何确保应用程序间的隔离及核心组件的稳定运行。
5109

被折叠的 条评论
为什么被折叠?



