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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:22:10+00:00 2026-05-26T06:22:10+00:00

I have an application that has the following structure $TOMCAT_HOME/webapps/myapp |-css |-myapp.css |-js |-myapp.js

  • 0

I have an application that has the following structure

$TOMCAT_HOME/webapps/myapp
            |-css
                |-myapp.css
            |-js
                |-myapp.js
            |-forum
                |-index.jsp
                |-list.jsp
                |-users.jsp
            |-Articles
                |-index.jsp
                |-ListArticles.jsp
            |-Guestbook
                |-viewGuestBook.jsp
                |-AddnewEntry.jsp
            |-WEB-INF
                |-classes
                    com
                     |-myapp
                        |-forum
                            |-DisplayForum.class
                            |-ListUsers.class
                        |-article
                            |-ArticleList.class
                            |-AddArticle.class
                        |-guestbk
                            |-LoadGuestBook.class
                            |-ProcessGuestBook.class

The application is delivered as a war file (i.e. myapp.war) and is deployed into the $TOMCAT_HOME/webapps folder. If any of the files change (either the jsp, css, js or java files) i have to always rebuild the whole war file. This means i deploy every single file on every release.

I am wondering if there is a way to deploy specific areas of the application. I am particularly interested if it is possible to separate the application into multiple war files. i.e. myapp.war, articles.war and forum.war. I would like to still access the application via the same context i.e. http://0.0.0.0/myapp even though multiple war files are used.

Using this approach, i will be able to deliver just the module that was affected by the change. Is this at all possible?

I dont mind having to restart the container after each war file is deployed.

  • 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-26T06:22:11+00:00Added an answer on May 26, 2026 at 6:22 am

    I don’t remember how you do this is Tomcat exactly, you’ll probably have to do some manual configuration (in context.xml or something like that) but I’m fairly certain you can deploy your three applications (.wars) with the following context paths:

    • myapp.war -> /myapp
    • articles.war -> /myapp/articles
    • forum.war -> /myapp/forum

    I’ve found a bit of information specific to Tomcat here:

    http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

    Specifically:

    In individual files (with a “.xml” extension) in the
    $CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The name of
    the file (less the .xml extension) will be used as the context path.
    Multi-level context paths may be defined using #, e.g. foo#bar.xml for
    a context path of /foo/bar. The default web application may be defined
    by using a file called ROOT.xml.

    Alternatively, you may want to do something like:

    • myapp.war -> / (by calling it ROOT.war)
    • articles.war -> /articles
    • forum.war -> /forum

    Having said that, keep in mind that if you do this, you’ll not be able to have shared state (session information) between the three applications without some effort. For instance, if “forum.war” requires authentication, that authentication information will not be available to myapp.war or articles.war.

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

Sidebar

Related Questions

I have a legacy VB6 application that has the following structure defined: Public Type
So we have a PHP+Zend Framework+Doctrine 1.2 application that has the following structure: Controller
I have an .Net MVC 3 web application that has the following structure root
I have a web application with the following structure: TOMCAT_HOME | webapps |_myapp |-html/
I have an application that has a list of buttons and has customized tooltips.
I have a C++ application which has the following structure: Class AAA: has some
I have an application that has two threads. The first one (the main thread)
i have an application that has a dependancy on gdiplus. i need the application
I have an application that has a .sql file in it. The sql file
We have an application that has a WCF service (*.svc) running on IIS7 and

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.