Tomcat custom classloader in Liferay principles

Posted by lisak on Stack Overflow See other posts from Stack Overflow or by lisak
Published on 2010-04-07T11:39:04Z Indexed on 2010/04/07 11:43 UTC
Read the original article Hit count: 549

Filed under:
|
|

When custom class loader in webapp context file is used and the context is being initialized and started, the custom classloader is just a substitution for the default webapp class loader, right ? But what are the consequences of doing this? Because, for instance, in Liferay portal an application can use custom PortalClassLoader, which just extends webapp class loader and does nothing else, it's the same class, no modifications at all. And I didn't find any following initializations like repository location changes etc. The point is, that the PortalClassLoader provides the webapp with an access to the ROOT portal context, which AFAIK doesn't use PortalClassLoader, according to debugger.

© Stack Overflow or respective owner

Related posts about liferay

Related posts about classloader