View Full Version : how to change jar path from lib to lib-ext?

07-02-2010, 03:53 AM
Hi there,

Could someone tell how can I chance path for my jar files from webapp/WEB-INF/lib to webapp/lib-ext in resin??

I currently have all the jar files in WEB-INF/lib directory and it works fine but when I try to move the jar files in webapp/lib-ext it doesn't seem to work. I also tried class-loader options under resin.conf but it does not recognize this path. Is there any option in resin to look for libraries to different location?

Please help


07-02-2010, 03:47 PM
You can just add a <class-loader> entry with a <library-loader> in the host (so it's shared by all the webapps.) For a sample, you can always look in the app-default.xml to see how the WEB-INF/lib classloaders are defined, because Resin's standard behavior is configured in the app-default.xml.

<host id="...">
<library-loader path="webapps/ext-lib"/>

07-02-2010, 06:00 PM
/WEB-INF/lib is the folder defined by the Servlet specification for libraries, so it is a quite uncommon use case to change this.

why do you want to do that?