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

  • SEARCH
  • Home
  • 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 7662701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:52:05+00:00 2026-05-31T13:52:05+00:00

I have a basic question,there are two incidents happended while working with Tomcat. 1.I

  • 0

I have a basic question,there are two incidents happended while working with Tomcat.

1.I want to share the context between two web applications deployed under same Tomcat container, all I want to do is make crossContext=true in context.xml initally, I did that in {CATALINAHOME}/conf/context.xml didnt worked out. Later I got the solution from our own Stack Overflow then I put the context.xml inside META-INF, everything worked as expected.

2.Similarly when I configure the Data Source for my Web App,I did the same initally then I put the context.xml with required JDBC configurations inside META-INF then it got worked.

So my question is why Tomcat is picking the context.xml configuration’s from META-INF? What I’m missing while configuring in {CATALINAHOME}/conf’s context.xml ? What I need to understand ?

Need your knowledge and the advice

  • 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-31T13:52:06+00:00Added an answer on May 31, 2026 at 1:52 pm

    Apparently you’re working with Tomcat from inside an IDE like Eclipse. This way Tomcat’s own /context.xml will indeed be ignored. The IDE uses just sole the server engine and creates a separate deploy and work space in the IDE environment. In Eclipse, you can find a copy of the /context.xml in the Servers project. This one is editable and will be applied. But providing another one in webapp’s /META-INF is of course also a solution and it’s more portable.

    Tomcat’s own /context.xml is only used when you start it standalone by startup.bat/sh and so on, outside the IDE environment.

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

Sidebar

Related Questions

This is a fairly basic question, I currently have two tables and in the
I have a basic question, in the Django template language how can you tell
I have a basic question about assembly. Why do we bother doing arithmetic operations
I have really basic question. How can I get form id by input element
I have a basic PHP question, take the code below for example, let's say
I have a really basic question concerning unix timestamp and mysql date. I'm trying
I'm relatively new to SVN and have a rather basic question. I have several
I am making a webapp. I have a fairly basic question about javascript performance.
Very basic question - but I couldn't find an answer. I have got a
Maybe a basic question but let us say I have a string that is

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.