-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Neven,
On 11/3/14 6:58 PM, Neven Cvetkovic wrote: > On Mon, Nov 3, 2014 at 6:42 PM, Neven Cvetkovic > <neven.cvetko...@gmail.com> wrote: > >> >> SLIGHTLY-OFFTOPIC: >> >> Although, I would love to see out-of-box setup for additional >> shared-lib folder, something other than TOMCAT/lib with Tomcat >> default libraries. Essentially, I would love to separate my >> customer shared libraries from Tomcat default libraries. I guess >> - question would be where are CATALINA_HOME/lib JAR files being >> loaded from? Can we add another directory to scan for libraries >> to be loaded? Is that configurable? >> >> >> > I guess, it's easy to add new directories to > TOMCAT/conf/catalina.properties file: > > common.loader= > ${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar > > > > to now read: > > common.loader= > ${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.base}/shared,${catalina.base}/shared/*.jar,${catalina.home}/shared,${catalina.home}/shared/*.jar Or > just use shared.loader, which is I think what you're asking for. It's blank in a default configuration. > What are you thoughts? Would it make sense to keep a separate > directory for shared libraries? Should we make it default - to > encourage others to create a directory if they want to. - -1 This is confusing and would be surprising if you hadn't intended to use this. The "shared" loader was disabled by default because nobody could figure out what the heck it was for and basically continually broke their own configurations using it. So, now, everything goes into either lib/ or the web application's WEB-INF/lib and everyone seems to be happy. One can always re-enable the shared loader if you know it exists, in which case you probably know what it's for and why you'd use it. (Hint: use of the shared loader almost never makes any sense). > Default behaviour for > org.apache.catalina.startup.ClassLoaderFactory is to validate if > the file exists/isDirectory/isReadable? That might confuse > beginners with a Warning ... > > > I guess Tomcat philosophy is to keep it simple, and extensible - so > experts that need to customize things they can, and it is simple > and not confusing for beginners. > > What are your thoughts? I like the current default configuration but I'm willing to entertain other ideas. I just don't like this one in particular (default to split configuration). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUWPO/AAoJEBzwKT+lPKRYhzwP/21gMhPUd7yVXzk/ImpkZMjr chWiBFFXl8NA76onaHSvFEIAbwSYbpTjboCd2QdDu0qIFi/O4cyirnYhHRfPISGb P+mHu0vg+9Ppze+uk5liQiULutEXdeqt97Sfom/I0j+GJZ2UxqvTGVIrwAa+63Op 7f8yg+wTXWQquz7vTkNwp/fGRBB5EB6ZJetffc0gPrsCG4L8muOobVhgd7wK9Yxf wkWBSXVYTwgOIzlgdYBV2F92EiDMfPihOHQ+jgDHnxebOFc9jCppYcKa96c1LL36 7bTgdSvWNbxJXODCEBVUkoe2rbAr2u7/ZsRWiSOJlfPEBal9Rno/n3C/O6PAhA8J xGB9ixtFyry9Z9V5XY+aUgI0+DKgSoddo2REtcuK0/X+mpyfUXB5A2GqNRaWxXSo 3+hHxfuJw8kLBjaWGswqgMhF0XBS07pNr87QDxldaROeg4Ty0apr6NRdkdSJ8eGE +lvWIC+2dN7ufPo7tt3S0+cCDngvtpPMBdHtp7L1PplN9ilTBmxSYRcl/ZOMaE7J hwSSsYFWRz/40EcTvkO6FCtiuWFW8490pqUuTvfz+ImO+rzSlAlJ2T0vq63Bbfjp EwkVMlV1V421cDUI7JhyVsg1qw6lcsrY3wxPxXUpyGWMAUoQaScCcxGc1mN35D2/ 5ufXCKK6w1sv89jfm5jg =LSsh -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org