Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which Port 9091,9090 or 8080

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic