aspose file tools*
The moose likes Tomcat and the fly likes JSP and Servlet, requires port 8080 to call servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JSP and Servlet, requires port 8080 to call servlets" Watch "JSP and Servlet, requires port 8080 to call servlets" New topic
Author

JSP and Servlet, requires port 8080 to call servlets

Michael Peremsky
Greenhorn

Joined: Nov 07, 2008
Posts: 10
I am trying to deplouy a client website on a hosted machine. When running locally I had Tomcat running on port 8080 and Apache is on port 80. Running locally everything had port 8080 added to the URL to run it. Now that the application is being deployed to the world I need to remove the 8080 from the URL but I am unsure of how to do that.

Currently when I bring up the login page (jsp) and hit submit, it fails to log the user in (as the jsp is on port 80 - the default). If I change the code to use port 8080 for the login servlet call the login succeeds.

I am lost on this any help would be greatly appreciated.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60056
    
  65

No where in your code should the port be specified at all. Why did you feel the need to use the port? All your URLs should be server-relative and never specify the domain or port explicitly.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: JSP and Servlet, requires port 8080 to call servlets
 
Similar Threads
Apache Not able to get html files & GIF files placed in the Tomcat
integrate Tomcat and Apache
Internet requests to Tomcat
Should Tomcat listen on port 80?
8080