|
Re: Tomcat Server - ${catalina.base}/lib [message #1117618 is a reply to message #1117260] |
Thu, 26 September 2013 16:34 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
On 9/26/2013 7:27 AM, Gordon Little wrote:
> Hi.
>
>
> When defining a Tomcat 6 Server in Juno, my understanding is that this
> definition essentially sets up a CATALINA_BASE instance, which refers to
> a CATALINA_HOME installation. The server definition allows me to set up
> the config files for the CATALINA_BASE instance and this gets deployed
> to a location under the .metadata folder.
>
> My question is - Is it possible to define a CATALINA_BASE/lib directory
> as part of the server definition?
No. But there would be no problem creating a lib folder manually where
CATALINA_BASE points and placing jars there.
>
> Specific use-case: I need to deploy v2.2 of the Expression Language
> jars, el-api.2.2.jar and el-impl.2.2.jar. I cannot place them in my
> WEB-INF/lib folder as then both el-api.2.2.jar from the webapp and
> el-api.jar from CATALINA_HOME/lib get loaded and I get conflicting class
> definitions.
> I do not want to place them in CATALINA_HOME/lib as it's another thing
> to maintain (in fact the only thing to have to maintain and replace
> manually) if I upgrade CATALINA_HOME. I'd rather not touch CATALINA_HOME
> at all.
>
> CATALINA_BASE/lib seems the correct place to put them and indeed this
> works on a manual deployment, but I can't find a way to set this up in
> an Eclipse Tomcat Server defintion.
When the WTP Tomcat support creates a new server instance, it creates a
number of folder, but a lib folder isn't one of them. However, once the
instance area was created you could create a "lib" folder manually and
add the jars you wanted. This does mean that you would still be on the
hook for manual maintenance if you recreated server instances or created
new ones.
Cheers,
Larry
>
> Thanks, Gordon
|
|
|
|
Powered by
FUDForum. Page generated in 0.04262 seconds