Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat Server - ${catalina.base}/lib(How to define instance specific jars)
Tomcat Server - ${catalina.base}/lib [message #1117260] Thu, 26 September 2013 08:51 Go to next message
Gordon Little is currently offline Gordon LittleFriend
Messages: 2
Registered: September 2013
Junior Member
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?

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.

Thanks, Gordon
Re: Tomcat Server - ${catalina.base}/lib [message #1117618 is a reply to message #1117260] Thu, 26 September 2013 16:34 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
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
Re: Tomcat Server - ${catalina.base}/lib [message #1117656 is a reply to message #1117618] Thu, 26 September 2013 17:20 Go to previous message
Gordon Little is currently offline Gordon LittleFriend
Messages: 2
Registered: September 2013
Junior Member
Thanks Larry.

That makes sense. While I've managed to blitz a number of server instances recently trying to understand the setup, that should calm down now I think I get it.

Thanks again.
Previous Topic:Web Page editor plugin for eclipse 3.2
Next Topic:Cannot Install New Tomcat 7 Server After Removing It
Goto Forum:
  


Current Time: Thu Nov 27 22:28:42 GMT 2014

Powered by FUDForum. Page generated in 0.05490 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software