File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat 5.5 and Port 8080 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.5 and Port 8080" Watch "Tomcat 5.5 and Port 8080" New topic

Tomcat 5.5 and Port 8080

Rick Fischer

Joined: May 15, 2003
Posts: 19
What is the best way to eliminate the need to specify port 8080 in the URL with Tomcat5.5. I have used the jspisapi product, but I am looking for a better solution.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
you can config port in server.xml file.

Java Developer, Thailand
Matthew Amacker

Joined: Aug 10, 2004
Posts: 5
You can also use mod_rewrite in apache. I've seen it used to map urls to various ports and services. In addition I believe Apache is coming out with, or has come out with the ability to do load balancing.

Its getting more versatile as a front end to web-services.

Apache mod_rewrite
Rahul Singh Khokhar
Ranch Hand

Joined: Feb 23, 2005
Posts: 36
Hi Rick,
Depends, if you are using only Tomcat to serve all types of pages(static and JSPs) then u need to modify the server.xml

On the other hand, if you are have Apache to serve the static pages and Tomcat to serve the JSPs (Preferred setup) then use either of these :
Mod_jk, Mod_jk2, or Mod_proxy and configure them. Once configured you need not point to port 8080 in your URLs.
I agree. Here's the link:
subject: Tomcat 5.5 and Port 8080
jQuery in Action, 3rd edition