Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6032381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:19:32+00:00 2026-05-23T05:19:32+00:00

I am using Tomcat for hosting my Java Web and Web Service applications for

  • 0

I am using Tomcat for hosting my Java Web and Web Service applications for a long time now. Mostly for Spring and Grails applications at the moment.

Lately in one project a discussion came up, about how deal with dependencies/libraries in Tomcat production environments:

In my projects I am deploying big WAR files holding all the required dependencies for the application in WEB-INF/lib folder. The only things I put in the tomcat/lib folder are the JAR files for JDBC connections managed by tomcat.

The customer has a long history with WebSphere and thinks the container should hold most of the the required dependencies. So they want to put JAR files for used frameworks or WebService API’s (like Metro) in the tomcat/lib folder and have skinny WAR files.

The problem with that solution in my opinion is that if you have an application that requires another version of a dependency that is already included in the tomcat/lib folder you can get errors and strange behavior.

Is there some best practice or official document that talks about this issue? What is your opinion about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:19:33+00:00Added an answer on May 23, 2026 at 5:19 am

    Is there some best practice or official document that talks about this issue?

    I doubt you will find official documents (from the Tomcat developers/community) to support this theory, although it is very valid. I had to prepare one in my previous job, so that the EAR file of the application could be deployed across multiple J2EE containers.

    There is one thing in favour though. You can bring up the IBM Redbook titled “WebSphere Application Server V6.1: Classloader Problem Determination” (quite dated, given that WAS 7 is available) which demonstrates how to created shared libraries in WebSphere. On WebSphere, one can create multiple such libraries for applications that require differing versions. On Tomcat, you are the mercy of an administrator who may not know what a class loader is, given that all shared libraries is dumped into $CATALINA_HOME\lib.

    The Redbook also has this bit of advice (replace utility file with utility JAR and you have your answer):

    Where you should not place utility files

    In deciding where best to place your
    utility files, it is important to
    recognize that these files should not
    be included in the WebSphere
    Application Server’s environment.

    For example: app_server_root/lib,
    app_server_root/lib,/ext* ,
    app_server_root/java (including any
    subdirectories), or the JVM classpath.

    Adding utility files to those
    directories can cause problems with
    the WebSphere runtime environment and
    can cause unexpected results,
    including the overwriting of WebSphere
    classes that can be detrimental to the
    overall functionality of the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently building an application using Tomcat, Spring and JAVA. I am using
I have a simple web service deployed on tomcat using Apache Axis. If i
We have a client server hosting our web application using Apache 2.2 & Tomcat
I'm using Tomcat 6.0.32, Spring Security 3.0.5 In my web app some users have
I am using an apache web server and a tomcat server for hosting few
I'm using Tomcat 5.5 as my servlet container. My web application deploys via .jar
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
I am trying to write a portlet for Liferay (using Tomcat and Spring) and
I am using Tomcat. I would like to put the config file in WEB-INF
I'm using Tomcat 6, and this is my logging.properties: handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler .level=FINE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.