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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:06:08+00:00 2026-06-08T19:06:08+00:00

How can I set the crossContext directive in the context of an web application

  • 0

How can I set the crossContext directive in the context of an web application so any WTP publish / deploy will set this correct to the generated Applications context.xml (conf/Catalina/localhost/appname.xml)

I tried to set it in the Servers context.xml as “default” but also generated a stub context.xml in the WEB-INF/context.xml of the web application, but nothing seems to help here ;/

The WEB-INF/context.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Context crossContext="true">
</Context>

Notes:

related to How to get a tomcat project path from different project in same tomcat by using java

  • http://olafsblog.sysbsb.de/tomcat-5-und-crosscontext-konfiguration/
  • http://www.eclipse.org/forums/index.php/t/51881/
  • http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
  • http://www.eclipse.org/forums/index.php/t/50640/
  • 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-08T19:06:09+00:00Added an answer on June 8, 2026 at 7:06 pm

    It’s simple but not perfect:

    1. After adding the module to tomcat via wtp, open the WTP Tomcat server.xml (typically located in your workspace > Servers > Tomcat vX.X Server at localhost) and add attribute crossContext="true" to the <Context> tag of the corresponding web-module.
    2. check “Publish module contexts to seperate XML files” in Tomcat WTP Frontend

    Positive side-effects:
    This will survive any “clean Tomcats working directory” or “clean project” actions

    (still) Negative:
    This will be overridden / removed if you change any WTP Tomcat options that affects server.xml like adding new modules, changing ports… After this action, you have to add it again.
    There is still NO frontend option as like for reloadable or ContextPath ;/

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

Sidebar

Related Questions

I can set the event on the calendar on my device by using this
How can I set focus on other application based on process name in VB2010?
I can set language modes for javascript, css, html, json by this construction: var
I can set a breakpoint in main and debug the code with the correct
How can I set a dropdownlist control's height in C#? I tried this, but
I can set data in JTable constructor, and then user can change this data
I can set the margin of a stackpanel in code-behind like this: StackPanel sp2
I can set the parent's status bar text with this function I wrote void
Possible Duplicate: Can set any property of Python object In [67]: obj = object()
I can set the width and height of my canvas by setting the width

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.