Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
Ranch Hand
Posts: 503
  • Mark post as helpful
  • send pies
  • 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
  • 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: 503
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Die Fledermaus does not fear such a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!