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 8690785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:58:38+00:00 2026-06-12T23:58:38+00:00

When you create a tomcat project in eclipse, it puts the server.xml file under

  • 0

When you create a tomcat project in eclipse, it puts the server.xml file under Servers, which appears as a separate “Project” in the project explorer. My question is, how best to check this into source code control, so that when another user attempts to check out the project, the server.xml file is in the correct place.

I currently use the Perforce version control system, but I’ve experienced the same issue in the past with other systems.

It’s been my experience that other users will end up creating their own tomcat server in eclipse, and then they will have to copy in the custom server.xml.

The best I’ve been able to do is save the server.xml into the WEB-INF or other directory inside the project, and then update that to source code control. However, this introduces risk, because you have to remember to save your server.xml changes back to WEB-INF. Not to mention that you have to document the copying of the server.xml as a setup step for users creating your project.

  • 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-06-12T23:58:39+00:00Added an answer on June 12, 2026 at 11:58 pm

    I would create a folder under the web app project like etc/ where I’d put a big README and a hard link to the server.xml. So anyone checking out the project would be instructed to do the same (in the README) – and all changes to the server.xml would be versioned. I would not mess with WEB-INF – the server.xml has no place there.

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

Sidebar

Related Questions

I have a Java project in Eclipse IDE. If I create new File object.
I'm trying to create a new project using tomcat 7.0.27 + JSF 2.1.7 +
How to create simple webserver in Java using Eclipse, Tomcat and Jersey i.e steps
I'm using Eclipse 3.5, Maven 2, m2eclipse and Tomcat 6. So i create Maven
In Eclipse, the folder structure when I create a Dynamic Web Project is [srikanth@hana
I'm using Tomcat 6 and using the Servers functionality in Eclipse to manage it.
I am writing a java web-application program to create a file(a simple xml file)
Installing Apache Tomcat, Apache Axis2, Create web project, Convert to service, Deploy it in
I want to create a struts 2 project in eclipse. I have downloaded the
I'm trying to create a dynamic web project in eclipse, but my version of

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.