This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes what is difference between shared.loader and common.loader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "what is difference between shared.loader and common.loader" Watch "what is difference between shared.loader and common.loader" New topic
Author

what is difference between shared.loader and common.loader

Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

the tomcat class loader howto (http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html)

states that:

Shared - This class loader is the place to put classes and resources that you wish to share across ALL web applications (unless Tomcat internal classes also need access, in which case you should put them in the Common class loader instead)

They say "should" instead of "must".

in this case does "should" mean that Tomcat internal classes cannot read these UNLESS they are put in Common?

my situation is that I don't have permission to place jars in tomcat's Common directory, but I do in shared. I don't fully understand the difference between shared.loader and common.loader

can tomcat internal classes access the classes loaded by the shared.loader?

Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: what is difference between shared.loader and common.loader