#!/bin/bash
JETTY=lib/resource/jetty-runner-7.0.1.v20091125.jar
DATA_DIR="$HOME/workspace/data/project"
echo "DATA_DIR dir is $DATA_DIR"
echo "Running Jetty..."
java -jar $JETTY --path / build/webapps/ROOT --path /s $DATA_DIR/s
Saturday, March 13, 2010
Embedding Jetty
Jetty has been a popular servlet container for a long time; but until now I really didn't need an embedded servlet container. Now, I finally do and found many tutorials and guides. However, I didn't have much luck at first. I kept running into various conflicts. Then I found the jetty runner. This is the easiest way to do it. It only requires one jar file. Then create a script such as:
Subscribe to:
Post Comments (Atom)








0 comments:
Post a Comment