Re: Run a standalone wicket app

2011-03-08 Thread nino martinez wael
you could also take a look at winstone: http://winstone.sourceforge.net/

2011/3/7 Mauro Ciancio maurocian...@gmail.com

 Hello all,
 I'd like to create a jar with a wicket application inside that can be
 run from the command line as it were a desktop application. I'm using
 maven and jetty and it would be great if jetty could start and listen
 on a port.

 Any hints or links would be really appreciated.

 Thanks in advance.
 Regards.
 --
 Mauro Ciancio
 http://about.me/maurociancio

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




Re: Run a standalone wicket app

2011-03-08 Thread Nitnatsnok
To create a runnable .war file with just a maven plugin I used this tool:

http://simplericity.com/2009/11.html

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Run-a-standalone-wicket-app-tp3339521p3342507.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: Run a standalone wicket app

2011-03-08 Thread Mauro Ciancio
Hello all!
Nice replies, I really appreciate them.

I liked the maven plugin, that was exactly what i was looking for.
Winstone also looked like a good alternative.

Thanks for the replies.
Regards!

On Tue, Mar 8, 2011 at 9:02 PM, Nitnatsnok bestan...@gmail.com wrote:
 To create a runnable .war file with just a maven plugin I used this tool:

 http://simplericity.com/2009/11.html

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Run-a-standalone-wicket-app-tp3339521p3342507.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





-- 
Mauro Ciancio
http://about.me/maurociancio

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



RE: Run a standalone wicket app

2011-03-07 Thread Brown, Berlin [GCG-PFS]
That is a more a jetty question.  Research the server jetty classes.
...

import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.bio.SocketConnector;
import org.mortbay.jetty.webapp.WebAppContext;

Server server = new Server();
server.start();
 

-Original Message-
From: Mauro Ciancio [mailto:maurocian...@gmail.com] 
Sent: Monday, March 07, 2011 12:26 PM
To: Wicket Mailing List
Subject: Run a standalone wicket app

Hello all,
I'd like to create a jar with a wicket application inside that can be
run from the command line as it were a desktop application. I'm using
maven and jetty and it would be great if jetty could start and listen on
a port.

Any hints or links would be really appreciated.

Thanks in advance.
Regards.
--
Mauro Ciancio
http://about.me/maurociancio

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




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



Re: Run a standalone wicket app

2011-03-07 Thread Bertrand Guay-Paquet
Have a look at the Wicket quickstart project under 
src/test/java/com/mycompany/Start.java.


There is a main() method there that does exactly what you describe.

On 07/03/2011 12:34 PM, Brown, Berlin [GCG-PFS] wrote:

That is a more a jetty question.  Research the server jetty classes.
...

import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.bio.SocketConnector;
import org.mortbay.jetty.webapp.WebAppContext;

Server server = new Server();
server.start();


-Original Message-
From: Mauro Ciancio [mailto:maurocian...@gmail.com]
Sent: Monday, March 07, 2011 12:26 PM
To: Wicket Mailing List
Subject: Run a standalone wicket app

Hello all,
I'd like to create a jar with a wicket application inside that can be
run from the command line as it were a desktop application. I'm using
maven and jetty and it would be great if jetty could start and listen on
a port.

Any hints or links would be really appreciated.

Thanks in advance.
Regards.
--
Mauro Ciancio
http://about.me/maurociancio

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




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




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



Re: Run a standalone wicket app

2011-03-07 Thread Martin Funk
if you want to use maven look for 
mvn jetty:run
wicket-quickstart and wicket-examples are set up to run that way.

if you are looking for something like:
java -jar YourAppsName.war

the export function 'Runnable Jar File Export' might be something of help

mf


Am 07.03.2011 um 18:26 schrieb Mauro Ciancio:

 Hello all,
 I'd like to create a jar with a wicket application inside that can be
 run from the command line as it were a desktop application. I'm using
 maven and jetty and it would be great if jetty could start and listen
 on a port.
 
 Any hints or links would be really appreciated.
 
 Thanks in advance.
 Regards.
 -- 
 Mauro Ciancio
 http://about.me/maurociancio
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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