Have a look to http://jetty.codehaus.org/jetty/jetty-6/apidocs/index.html
or import org.apache.wicket.util.time.Duration; import org.eclipse.jetty.http.ssl.SslContextFactory; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.bio.SocketConnector; import org.eclipse.jetty.server.ssl.SslSocketConnector; import org.eclipse.jetty.util.resource.Resource; import org.eclipse.jetty.webapp.WebAppContext; public class Start { public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); // Set some timeout options to make debugging easier. connector.setMaxIdleTime(1000 * 60 * 60); connector.setSoLingerTime(-1); connector.setPort(8080); server.setConnectors(new Connector[]{connector}); WebAppContext webAppContext = new WebAppContext(); webAppContext.setServer(server); webAppContext.setContextPath("/"); webAppContext.setWar("src/main/webapp"); server.setHandler(webAppContext); try { System.out.println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP"); server.start(); while (System.in.available() == 0) { Thread.sleep(5000); } server.stop(); server.join(); } catch (Exception e) { e.printStackTrace(); System.exit(100); } } } François Meillet Formation Wicket - Développement Wicket Le 12 févr. 2013 à 20:16, kshitiz <k.agarw...@gmail.com> a écrit : > Hi, > > I am trying to use Jetty 6 in wicket application as it is the requirement as > per jelastic hosting. They supports jetty 6. So, I was going through the > link https://cwiki.apache.org/WICKET/jetty6-testing.html > <https://cwiki.apache.org/WICKET/jetty6-testing.html> . I downloaded jetty > 6.1.23 jar and used the code given the link for Start.java. But the code is > throwing compilation error in line jettyServer.start(); and > jettyServer.stop(); as start() and stop() are not available. I have even > tried doStart and doStop but they are not available > > So, if the link is correct, which jar the author must be using and in case > there is any issue, is there any way of using jetty 6 in the same way we use > jetty 8? > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Regarding-using-jetty-6-in-wicket-tp4656286.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >