Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Port 8080 required by apache-tomcat-7.0.47 at localhost is already in use

 
Ranch Hand
Posts: 873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi expert,

I have tried in vain to rectify the error by manually changing the configuration of server.xml in Tomcat 7.0.47 but without avail.

Here's how the server.xml looks like now :



But, I still get the above error.

Hope someone can give me some pointer how to resolve the above error.  Tks.
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you using any IDE? If yes, then double click on the server to check on which port it's trying to connect. If its pointing to 8080 then change it

Looks like your server is not using server.xml properly.
 
tangara goh
Ranch Hand
Posts: 873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Somashaker,

I managed to changed the tomcat server port to 8081 inside the Tomcat by double-click on the server.

So, it seems that it is not reading the server.xml where Apache Tomcat reside.  Is this the right behaviour ?

But, my jsp page still does not appear.  It still gives me a 404 problem.

 
somashaker goud
Ranch Hand
Posts: 64
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Out of many intermittent issues, this is one of them.

When coming to 404 issue, are you able to access with absolute path?

if yes have you given the correct path of index.jsp in <welcome-filelist> if it's not under WEB-INF folder.
 
The only cure for that is hours of television radiation. And this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic