aspose file tools*
The moose likes Tomcat and the fly likes Http 500 internal server error after changing default port 8080 to 80 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Http 500 internal server error after changing default port 8080 to 80" Watch "Http 500 internal server error after changing default port 8080 to 80" New topic
Author

Http 500 internal server error after changing default port 8080 to 80

keerthana kuruba
Greenhorn

Joined: May 12, 2011
Posts: 22

I have changed the default port number of tomcat 8080 to 80 in server.xml file under non-SSL Http/1.1 connector on port 8080.Its working fine with this url(with out 8080 port in tomcat 7.0,jdk6.1 and windows xp) http://127.0.0.1/appname in my system. where as i tired to run the same application in another system with the same url...(tomcat 6.0)with required changes in server.xml.when ever i type http://127.0.0.1/ in the address bar it will open manager window with username and password.Once i submit the manager username and password ..it showing http 500 internal server error.So i tried using this url too http://127.0.0.1/appnam...now getting http 404 error resource not avvailable.I had done installing tomcat 7.0 and changed jre to jdk file...still getting the same error.If i set the default port as 8080 its working fine,not for 80.I googled 4 days..could not find any useful thing to solve my problem..Please help me and let me know where i went wrong....suggest me any solution to this error
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
I would expect an internal server error to generate a more expressive log file entry.

Is this Tomcat installed as a service or as an application?

Bill

Java Resources at www.wbrogden.com
keerthana kuruba
Greenhorn

Joined: May 12, 2011
Posts: 22


Thanks alot for your prompt reply..i could find that IISv 5.1 is installed in that system which i am going to run the tomcat by changing the default port 8080 to 80.By running the netstat -an command in command prompt and come to know that oone IP address using 80 port.So i have changed 80 to 81 for tomcat but i have to use http://127.0.0.1:81/appname...otherwise it displays an error page like before.How to set the default port 80 to both IIS and tomcat and to run the http://127.0.0.1/appname url..please kindly help me or else suggest me any process to set the default port 80.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
.How to set the default port 80 to both IIS and tomcat


AHA! If IIS is using port 80 you can't also use port 80 for any other application. How would the operating system direct a request if there were two programs using port 80???

IIS has a provision for accepting requests on port 80 and relaying them to Tomcat running on 8080. It has been years since I set one up that way so I don't remember the steps. Contact whoever is responsible for IIS on that system.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Http 500 internal server error after changing default port 8080 to 80
 
Similar Threads
Can't access tomcat externally
Tomcat 7 digest authentication problem
rectify the errors while running jsp page
issues with JBoss while deploying a war file
Several ports required by Tomcat v5.5 Server at localhost are already in use