Re: Regarding using jetty 6 in wicket

2013-02-13 Thread Ernesto Reinaldo Barreiro
I think

http://wicket.apache.org/start/quickstart.html

for 1.4.21 will uses jetty 6.1.25. Use that quickstart and replace 1.4.x
wicket with 6.x

On Wed, Feb 13, 2013 at 3:05 PM, kshitiz k.agarw...@gmail.com wrote:

 Hi,

 The code that you have described would only work for jetty 7 or above. For
 jetty 6, the jars that I am using, the code would be different as shown in
 the link I posted but is also throwing syntax error. I am not able to get
 jars for the link you described.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Regarding-using-jetty-6-in-wicket-tp4656286p4656310.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




-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ http://antiliasoft.com/antilia


Re: Regarding using jetty 6 in wicket

2013-02-12 Thread Francois Meillet
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
 



RE: Regarding using jetty 6 in wicket

2013-02-12 Thread Colin Rogers
Can you not use the Wicket/Maven archetype? That has it all set up, has a 
Start.java - and uses Jetty version 7.6.3.v20120416

Cheers,
Col.

-Original Message-
From: kshitiz [mailto:k.agarw...@gmail.com]
Sent: 13 February 2013 06:16
To: users@wicket.apache.org
Subject: Regarding using jetty 6 in wicket

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

EMAIL DISCLAIMER This email message and its attachments are confidential and 
may also contain copyright or privileged material. If you are not the intended 
recipient, you may not forward the email or disclose or use the information 
contained in it. If you have received this email message in error, please 
advise the sender immediately by replying to this email and delete the message 
and any associated attachments. Any views, opinions, conclusions, advice or 
statements expressed in this email message are those of the individual sender 
and should not be relied upon as the considered view, opinion, conclusions, 
advice or statement of this company except where the sender expressly, and with 
authority, states them to be the considered view, opinion, conclusions, advice 
or statement of this company. Every care is taken but we recommend that you 
scan any attachments for viruses.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org