• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Changing the default port number for Apache Tomcat 6.0.26

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear members, i'd like your help in suggesting me a way to change the port number (8080) for running any servlet. I am using Apache Tomcat for the same.
Since I had already configured Oracle on the same port, earlier, now there's a conflict.

I tried changing the port number in Config\Server.xml, but the browser always acknowledges the link to be broken and seems to be of no use.
Kindly suggest me a way of overcoming the same.

Thanks

Subhashish
 
Ranch Hand
Posts: 814
Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look for above lines in server.xml and make a change at port="8442". It may help.
 
Subhashish Pattnaik
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ninad, but it's not working either.

Can anyone please help??

Regards
 
Ninad Kulkarni
Ranch Hand
Posts: 814
Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Subhashish Pattnaik wrote:Thanks Ninad, but it's not working either.

Can anyone please help??

Regards

On my tomcat I am able to change port.

Would you show your server.xml file?
 
Subhashish Pattnaik
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yah i will do the needful

It's just like any other server.xml file!! Hope you got the magic wand.

Reagrds and many thanks.

 
Ninad Kulkarni
Ranch Hand
Posts: 814
Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At line number 69 in server.xml change port number to "9002" or any of your choice then save server.xml and start tomcat server again
Let me know what happen after changes.
 
Subhashish Pattnaik
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ninad, i did manage to change the port!!!

I reconfigured Oracle to a different port number and that has worked out.

Anyways many thanks for your time and suggestion.

Regards
 
reply
    Bookmark Topic Watch Topic
  • New Topic