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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:34:24+00:00 2026-05-30T20:34:24+00:00

I have tomcat installed on my local machine. I see it in server.xml where

  • 0

I have tomcat installed on my local machine. I see it in server.xml where I have below entry

   <Connector executor="tomcatThreadPool"
           port="${http.port}" 
           protocol="HTTP/1.1" 
           connectionTimeout="20000" 
           redirectPort="${https.port}" 
           acceptCount="100"
           maxKeepAliveRequests="15"/>

where http.port value in catalina.properties is 8080 .

But every time I try to access my application it url http://localhost/myApp I get error
could not connect to localhost but it works fine http://localhost:8080/myApp. I am not getting why it expects
the port 8080 when it is already a default port? What should I do so that I do not have to mention port?

  • 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-30T20:34:25+00:00Added an answer on May 30, 2026 at 8:34 pm

    When you write http://localhost/myApp on the Address Bar of your Browser, the request always goes to Port 80, and not Port 8080. So the default is Port 80 here. For http://localhost/myApp to work you need to install something like Apache HTTP Server.

    Then you can configure it with the help of a connector like mod_jk or mod_proxy to use http://localhost/myAppi, instead of http://localhost:8080/myApp. So that what ever request comes on Port 80 can be diverted to Port 8080 automatically.
    Once you will download mod_jk, simply extract the file mod_jk.so to the modules folder of your Apache HTTP Server.

    Hopefully the steps written here How to Configure Apache HTTP Server with Apache Tomcat, might help you in doing that.

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

Sidebar

Related Questions

I have a Tomcat and PostgreSQL installed on a server. I'm having a connection
I have Tomcat 6.0.24 64 bit installed on two Windows Server 2008 boxes as
I have installed tomcat 6 and 7 to the port 8080. I am using
I have installed sun jdk 1.6 x64 and tomcat in a linux x64 machine
I have installed and configured tomcat+solr on my personal linux machine and windows as
I am trying to use the external tomcat server installed on my machine (Ubuntu
I have a Tomcat 6.0.24 server running. I'm using to run some JSP pages.
I have an external Tomcat server configured to run J2EE applications on my development
I have a web service deployed on tomcat hosted on a remote server. I
I have a cross-domain policy file I wish to add to a Tomcat server

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.