Skip to content

Instantly share code, notes, and snippets.

@timperrett
Created September 28, 2009 13:29
Show Gist options
  • Save timperrett/195449 to your computer and use it in GitHub Desktop.
Save timperrett/195449 to your computer and use it in GitHub Desktop.
server = new Server();
var connector: Connector = new SelectChannelConnector()
connector.setPort(8080)
connector.setHost("127.0.0.1")
server.addConnector(connector)
var wac: WebAppContext = new WebAppContext()
wac.setContextPath("/")
// this is path to .war OR TO expanded, existing webapp; WILL FIND web.xml and parse it
wac.setWar("./web")
server.setHandler(wac)
server.setStopAtShutdown(true)
server.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment