Categories
Java

Working with Jetty

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

  1. Open the file jetty.xml under the /etc folder inside the Jetty installation directory.
  2. Inside of the element with the name "addConnector", look for the element
    <Set name="port"><SystemProperty name="jetty.port" default="8999"/></Set>
  3. Change the value of the default attribute to the port you want to use.

del.icio.us Tags: ,,
Share
Share