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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:14:24+00:00 2026-05-23T02:14:24+00:00

Everthing I’ve read about Tomcat seems to indicate that when I deploy my web

  • 0

Everthing I’ve read about Tomcat seems to indicate that when I deploy my web application, Tomcat will take my context.xml file, copy it to <tomcat-dir><engine-name><host> and rename it to <mywebbappname>.xml.

…only it doesn’t.

I have Liferay 6 bundled with Tomcat 6 deployed on my machine. The context.xml file for my webapp is very basic:

<Context privileged="true" crossContext="true"></Context>

My context.xml file is located under the META-INF directory which is at the same level as my WEB-INF directory.

I think the structure is set up correctly, but when Tomcat deploys the WAR, the context.xml doesn’t get copied or renamed. If I manually create <tomcat-dir>\<engine-name>\<host>\<mywebbappname>.xml everything works fine.

This is okay for development, but I have to restart Tomcat for it to see my context which won’t work in a production environment.

Am I missing some small detail here?

Thanks,

David

  • 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-23T02:14:25+00:00Added an answer on May 23, 2026 at 2:14 am

    This is actually a bug that was recently fixed. The solution is simple in /conf/server.xml search for the deployXML. It will be set to false, instead change this to true and you should see the expected behavior.

    Edit: I’ve also found the issue @ http://issues.liferay.com/browse/LPS-17916

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

Sidebar

Related Questions

Everything I have read says that when making a managed stored procedure, to right
Everything I read about better PHP coding practices keeps saying don't use require_once because
I want to set up my maven built web app, to build and deploy
Basically, I created an Activity inside a dialog, everthing is seems working perfectly but
I was reading about GTK+-2.0, and everthing seemed cool enough. Then when I actually
I'm trying to set up an OpenGL context with sfml2. Everthing worked fine and
I wrote a google map lookup page. Everthing worked fine until I referenced the
Everything is an object was one of the first things I learned about Ruby,
i have a problem in using IE. Everthing is good in using firefox but
I have a project in production. Everthing was working fun, but suddenly, I'm getting

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.