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

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

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
keerthana kuruba
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

.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
 
Just the other day, I was thinking ... about this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic