About Me...

Hello world! Me? An eccentric living organism that ponders the supernatural abilities of humanity

Get The Latest Posts

Sign up to get email updates

Monday, November 30, 2009

Changing tomcat's default port

Tomcat's default port is 8080(default port for most browsers is 80). Sometimes you may encounter port conflicts when two applications try to share the same port. If this happens with Tomcat, you will have to change the Tomcat's default port to a different one depending on the availability of that port. If a port is causing an error in a web application, you will often see a "Page can not be displayed" error message(but bear in mind that there can be other reasons that cause the browser to display this message). In this short post I will show you how to change the default port of Tomcat using its configuration files.
  1. Open the Tomcat home directory(in my case, this is named apache-tomcat6.0.20).
  2. Go to its bin folder.
  3. Open the server.xml file using Notepad(right click>Edit).
  4. Replace all occurrences of 8080 with a number larger than 1024(although it is not mandatory to select a port higher than 1024 if you are using Windows as your OS, it is a good practice to get anything higher than 1024. There are reasons for this but I'm not going to discuss about them here since it is beyond the scope of this article)
  5. Finally, restart Tomcat and test it for some URLs.
You may also like to have a look at the post about how to download and install Apache Tomcat6.0.20

So that's how you change Tomcat's port manually. It wasn't that difficult was it?
»»  read more

Tuesday, November 24, 2009

Hey, I'm on Twitter!

I just created my Twitter account few minutes ago and now going to study how it works. I wanted to find out what all this hype about and why it has become a great threat to Facebook. Plenty of my friends are already on Twitter and I wanted to get connected with them too. When I joined Facebook, I was not that interested about it and I hardly had time to log into my account due to the busy schedule at my university but now I can't live even a single day without logging into Facebook. So that's what happens when you join a social networking site. I'm not going to write a post about Twitter here. But I'll post a small video that I found on Twitter Help page. It will help you to get started. And don't forget to add me to your list of followers and get updates about new stuff. I would love to follow you guys on Twitter too.






»»  read more