Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
tangara goh
Ranch Hand
Posts: 257
  • 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.
 
somashaker goud
Ranch Hand
Posts: 63
  • 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: 257
  • 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: 63
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!