• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

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

 
Ranch Hand
Posts: 776
  • 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: 776
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic