For my thesis, I am going to use the Jetty lightweight web server and as such am going to need a lot of trying and learning around how to use it, as it is more ’embedded’, for lack of a better word, than Tomcat. For me, Tomcat is a relatively known entity, having worked with in one form or another since 2000.
I am using Jetty 6.1.7,
So here goes…
Lesson #1: Setting Jetty’s default Port
- Open the file jetty.xml under the /etc folder inside the Jetty installation directory.
- Inside of the element with the name "addConnector", look for the element
<Set name="port"><SystemProperty name="jetty.port" default="8999"/></Set>
-
Change the value of the default attribute to the port you want to use.