You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Mauro Ciancio <ma...@gmail.com> on 2011/03/07 18:26:24 UTC

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Run a standalone wicket app

Posted by jcgarciam <jc...@gmail.com>.
Check the QuickStart application it has a Start.java, it will be a good
starting point.

On Mon, Mar 7, 2011 at 2:35 PM, Brown, Berlin [GCG-PFS] [via Apache Wicket]
<ml...@n4.nabble.com> 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:[hidden email]<http://user/SendEmail.jtp?type=node&node=3339536&i=0&by-user=t>]
>
> 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: [hidden email]<http://user/SendEmail.jtp?type=node&node=3339536&i=1&by-user=t>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=3339536&i=2&by-user=t>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=3339536&i=3&by-user=t>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=3339536&i=4&by-user=t>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Run-a-standalone-wicket-app-tp3339521p3339536.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65838@n4.nabble.com
> To unsubscribe from Apache Wicket, click here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>
>



-- 
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
--Anyone who has never made a mistake has never tried anything new.--


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Run-a-standalone-wicket-app-tp3339521p3339545.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Run a standalone wicket app

Posted by Bertrand Guay-Paquet <be...@step.polymtl.ca>.
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:maurociancio@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


RE: Run a standalone wicket app

Posted by "Brown, Berlin [GCG-PFS]" <Be...@Primerica.com>.
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:maurociancio@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org




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


Re: Run a standalone wicket app

Posted by Mauro Ciancio <ma...@gmail.com>.
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 <be...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



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

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


Re: Run a standalone wicket app

Posted by Nitnatsnok <be...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Run a standalone wicket app

Posted by nino martinez wael <ni...@gmail.com>.
you could also take a look at winstone: http://winstone.sourceforge.net/

2011/3/7 Mauro Ciancio <ma...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Run a standalone wicket app

Posted by Martin Funk <ma...@googlemail.com>.
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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


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