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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:52:35+00:00 2026-06-01T02:52:35+00:00

I have a war file which is a simple dynamic web application where I

  • 0

I have a war file which is a simple dynamic web application where I will call a JSP file which calls a Java file and does some stuff. There is no servlet programming involved.

I deployed the war file in the webapps folder of the tomcat folder.

I restarted the server, the application is extracted and when i call the jsp file like below it is working like a charm.

localhost:8080/Login/login.jsp

But i want to create a directory structure in the webapps folder and place the war file in it and access it as follows

the directory structure is

<tom cat folder>webapps/myapp/mylogin/<my war file>

what i did was copied the extracted war file from the webapps folder and pasted it in the above directory structure

When i accessed it like below it is throwing error

localhost:8080/myapp/mylogin/Login/login.jsp

Please let me know how to host my war file with directory structure in webapps folder.

Hope i was clear in my question.

  • 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-01T02:52:36+00:00Added an answer on June 1, 2026 at 2:52 am

    I need to make a mapping in the server.xml file.

      <Host name="showcase.com"  appBase="webapps/myapp/mylogin/"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
      </Host>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a spring web application (currently packaged as a war file) which I
I have an application.war folder (not as file) which contains jaxen-1.1.1.jar (in the WEB-INF/lib)
I have a Spring framework based Java web application, which has been built in
I have an idea for a simple application which will monitor a group of
I have a war file which does not contains manifest not even META-INF folder.
Within my service I have an mbean which is accessed by my war file.
I have compiled and created .WAR file of my java code. then i started
I have a jsp file in the root of .war file. and then I
I have a four WAR files which are modules of application. How I can
I have an .ear file which contains multiple war files. I am moving the

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.