<classpathentry kind="output" path="WebContent/WEB-INF/classes"/
<classpathentry kind="output" path="WebContent/dateView/WEB-INF/classes"/>
jasper-runtime.jar
javax.servlet.jar
org.mortbay.jetty.jar
org.mortbay.jmx.jar
tomcat-juli.jar
import org.mortbay.http.SocketListener; import org.mortbay.jetty.Server; public class JettyLauncher { protected int port = 8081; protected String contextName = "dateView"; protected String deployPath = ""; public static void main(String[] args) throws Exception { JettyLauncher jl = new JettyLauncher(); jl.init(); jl.run(); } protected void init() { } protected void run() throws Exception { Server server = new Server(); SocketListener listener = new SocketListener(); listener.setPort(getPort()); server.addListener(listener); server.addWebApplication("/" + getContextName() , getDeployPath()); server.start(); } protected int getPort() { return port; } protected String getContextName() { return contextName; } protected String getDeployPath() { if (deployPath.length() == 0) { deployPath = "./WebContent/" + contextName + "/"; } return deployPath; } }