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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:25:38+00:00 2026-05-15T21:25:38+00:00

I have a web application deployed on path /var/lib/tomcat6/webapps/abc/</code> in server.xml on path /etc/tomcat/server.xml

  • 0

I have a web application deployed on path

/var/lib/tomcat6/webapps/abc/</code>

in server.xml on path /etc/tomcat/server.xml I have added following lines.

<Context docBase="/var/lib/tomcat6/webapps/abc/" path="/" reloadable="true">

  <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="10000" name="jdbc/abcDB" password="abc" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/abc" username="abc"/>

</Context>

inside the host tag.

When I restart tomcat and hit http://localhost:8080/ nothing appears but when I enter http://localhost:8080/abc home page is displayed which means above entry in server.xml is not taking affect.

What am I doing wrong ??

  • 1 1 Answer
  • 1 View
  • 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-15T21:25:39+00:00Added an answer on May 15, 2026 at 9:25 pm

    Looks like you want to set webapp abc as the default web app (i.e. access it directly via http://localhost:8080/), then give the path as "" not “/” in Context

    From the Tomcat docs,

    If you specify a context path of an
    empty string (“”), you are defining
    the default web application for this
    Host, which will process all requests
    not assigned to other Contexts

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

Sidebar

Related Questions

I have a web application deployed on a jboss server running on a unix
I have web application deployed on websphere application server 7.0. User logins using /j_security_check.
I have a web application deployed on tomcat. In this application are ExecutorService to
We have a web application deployed to a server, which was done via an
I have a web service application that I deployed successfully on Apache Tomcat using
I have a web application deployed on the Jboss 4.2.1 server. I can access
I have a web application deployed in a Tomcat 5.5 container. I use a
I have my Java EE web application deployed and running in Weblogic server. If
I have my web Application deployed in jboss web server. It contains Servlets. Right
I have web application which we deployed in a production . We have separate

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.