Install FAQ
From Resin 3.0
Where can I put .jar files so that they are available to all of my web applications?
I have some jar files that are used by all of my web applications. Where
can I put them so that I do not have to put them in WEB-INF/lib
for every web application that I have?
- Make the directory
$RESIN_HOME/ext-lib
- Place the jars files that will be available to all of your web applications in
$RESIN_HOME/ext-lib
, for example$RESIN_HOME/extlib/hogwarts.jar
Any jar file in $RESIN_HOME/ext-lib
will be available to all of the
web applications.
Resin will also find jars in subdirectories, so you can put your jars in
for example $RESIN_HOME/ext-lib/local/hogwarts.jar
. If you use the
local/
subdirectory, when you upgrade to a new version of Resin
you can just copy the local subdirectory over to the new
$RESIN_HOME/ext-lib
.
Some jars are not classloader-aware (e.g. using static fields improperly). For those libraries, you will need to put them in $RESIN_HOME/ext-webapp-lib
instead.