This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which Port 9091,9090 or 8080

 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends
I am using Java Webserver to inplement my Servlets and JSP i wanted to know as to on which port dose JSP run correctly 9091,9090 or 8080 in my case it is runnin properly on 8080 wher as servlets on 9091 can some 1 please clear
Amit
 
ashok khandelwal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Amit Roy:
Dear Friends
I am using Java Webserver to inplement my Servlets and JSP i wanted to know as to on which port dose JSP run correctly 9091,9090 or 8080 in my case it is runnin properly on 8080 wher as servlets on 9091 can some 1 please clear
Amit

hi amit
As far i know u can run your servlet at 9090 port,and
also on 8080 if you started your webservice by logging in administration of jws.
for further question u can contact me
ashokkhandelwal@epatra.com
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Servlets as well as JSP runs on port: 8080 only.
just store the servlets in the Servlets folder
and JSP in the public_html folder

 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets and JSPs can run on any port you choose. For production use on a real internet site you should use port 80, as this is the default port for the HTTP protocol. For development use you can use any port, but one above 1000 is probably a good choice - ports below 1000 are reserverd for specific protocols, and may already be in use on your machine.
A lot of servlet containers come set up to use port 8080, as that is above 1000 and will allow both a regular webserver to run on port 80, and your servlet server on port 8080. Look at the configuration details for your server to see how to set the port.
On one machine I use, for example, webservers on ports 80, 9876, 10603, 10700, 10701, 10711 and 10720, and servlet servers on ports 24761 and 24762. The machine will accept HTTP requests to any of these ports.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic