Tomcat Class Loader -


i have big application using lot of jars, common jars between other apps (also mine), so, want create shared repository...

i have edited catalina.properties (tomcat 7) way:

shared.loader=${catalina.base}/mylibs/*.jar

if put project's jars inside directory goes , application runs normally, don't want that, want put shared libs there , leave rest of jars inside war (web_inf/lib)..

if go way (some jars in shared lib , rest on war file) application start raise classnotfoundexception every jar inside war.

according to: http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html should work fine, say:

therefore, perspective of web application, class or resource loading looks in following repositories, in order:

bootstrap classes of jvm system class loader classes (described above) /web-inf/classes of web application /web-inf/lib/*.jar of web application common class loader classes (described above)

anyone knows i'm doing wrong? cheers

this simple mistake.

i accidentally leave app jar shared class loader, so, jar trying access class on webapp1 class loader , can't cause every class loader knows father (they can't down).

cheers,


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -