Order of Tomcat Classloaders: common, shared, and server

前端 未结 3 678
南笙
南笙 2021-02-07 08:33

The Tomcat Class Loader HOW-TO documentation describes 4 different class loaders:

  1. Bootstrap
  2. System
  3. Common
  4. Webapp

In the d

3条回答
  •  被撕碎了的回忆
    2021-02-07 08:46

    Agree with mindas, apache tomcat group might be considering deprecate server&shared classloader. About the order of webappclassloader and standardclassloader(common class loader), there is an interesting post done by Jianbo. He did a simple test to demonstrate it. http://web.archive.org/web/20120303091507/http://www.jianbozhu.net/2012/02/14/tomcat-classloader-demonstration/

    Basically the gist of it is that in tomcat, the classloader loads classes from webapp first, then shared/common, then system.

提交回复
热议问题