This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes Which Port 9091,9090 or 8080 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Which Port 9091,9090 or 8080" Watch "Which Port 9091,9090 or 8080" New topic
Author

Which Port 9091,9090 or 8080

Amit Roy
Ranch Hand

Joined: Oct 10, 2000
Posts: 132
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


<I>Chance Favours the Prepared minds"</I>
ashok khandelwal
Greenhorn

Joined: Dec 18, 2000
Posts: 6
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

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which Port 9091,9090 or 8080