You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christian Edward Gruber <ch...@gmail.com> on 2009/04/11 19:24:34 UTC

Decent jetty runner for eclipse

Hi.  I just started using "Run Jetty Run" and it seems to be pretty no- 
fuss.

http://code.google.com/p/run-jetty-run/wiki/GettingStarted

regards,
Christian.

Christian Edward Gruber
e-mail: christianedwardgruber@gmail.com
weblog: http://www.geekinasuit.com/


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


Re: Decent jetty runner for eclipse

Posted by Andreas Andreou <an...@di.uoa.gr>.
+1 - i also put that in the test source tree

On Mon, Apr 13, 2009 at 3:28 PM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> I'm not using any Eclipse plugins: I just wrote a class (I call it
> Main) in the test sources folder and added Jetty 6.1.14 as a test
> dependency. My Main class has code in its main() method:
>
> Server server = new Server();
>
> Connector connector = new SelectChannelConnector();
> connector.setPort(80);
> server.setConnectors(new Connector[] { connector });
>
> WebAppContext webapp = new WebAppContext();
> webapp.setParentLoaderPriority(true);
> webapp.setContextPath("/");
> webapp.setResourceBase("src/main/webapp");
> webapp.setDefaultsDescriptor(webapp.getResourceBase() +
> "/WEB-INF/webdefault.xml");
> server.setHandler(webapp);
>
> server.start();
> server.join();
>
> I run or debug it as I would run any other Java class.
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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


Re: Decent jetty runner for eclipse

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Tue, 14 Apr 2009 12:09:59 -0300, Marcus Veloso <mv...@gmail.com>  
escreveu:

> Hi,
>
> following http://wiki.apache.org/tapestry/Tapestry5RunViaMain:
>
> ...
>
>    1.
>
>    Add a dependency on Jetty to your POM at provided scope. Use the
>    jetty-server-dependencies and jetty-provided-apis artifacts

That's what I do:

<dependency>
	<groupId>org.mortbay.jetty</groupId>
	<artifactId>jetty</artifactId>
	<version>6.1.14</version>
	<scope>test</scope>
</dependency>

>    2.
>    Turn off J2EE deployment in module properties

I don't know what it means here.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


Re: Decent jetty runner for eclipse

Posted by Marcus Veloso <mv...@gmail.com>.
Hi,

following http://wiki.apache.org/tapestry/Tapestry5RunViaMain:

...

   1.

   Add a dependency on Jetty to your POM at provided scope. Use the
   jetty-server-dependencies and jetty-provided-apis artifacts
   2.

   Turn off J2EE deployment in module properties

...

Can someone show the code changes in pom.xml?

Thanks in advance.

Marcus Veloso

Re: Decent jetty runner for eclipse

Posted by Christian Köberl <ta...@gmail.com>.
I have created a simple Eclipse plugin for running Jetty (also frustrated by RunJettyRun and Jetty Launcher).

The plugin can be used like Jetty launcher but support Java 6 and Jetty 6/7. It is currently in alpha stage but it works fine for servlet-based apps (JSP support is missing, Jetty 5 doesn't work right now).

I have put in some code to cope with the specialties of the M2Eclipse plugin and the Jetty dependencies of Tapestry 5. 

Install instructions and code:
http://eclipse-jetty.sourceforge.net/
https://eclipse-jetty.svn.sourceforge.net/svnroot/eclipse-jetty

-- 
Chris
-- 
View this message in context: http://n2.nabble.com/Decent-jetty-runner-for-eclipse-tp2621323p2631526.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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


Re: Decent jetty runner for eclipse

Posted by Sergey Didenko <se...@gmail.com>.
Thanx guys,

that looks less dependent on Jetty defaults.

Here is the article for everyone interested:
http://docs.codehaus.org/display/JETTY/Classloading

On Mon, Apr 13, 2009 at 9:24 PM, Fernando Padilla <fe...@alum.mit.edu> wrote:
> we add this to our vmargs:
>
> -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true

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


Re: Decent jetty runner for eclipse

Posted by Fernando Padilla <fe...@alum.mit.edu>.
we add this to our vmargs:

-Dorg.mortbay.jetty.webapp.parentLoaderPriority=true
-Dtapestry.production-mode=false
-Xmx500m


Thiago H. de Paula Figueiredo wrote:
> On Mon, Apr 13, 2009 at 2:28 PM, Sergey Didenko
> <se...@gmail.com> wrote:
>> Don't you use
>> webapp.setServerClasses( new String[]
>> {"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."} );
>> also? As recommended on http://wiki.apache.org/tapestry/Tapestry5RunViaMain .
> 
> The line webapp.setParentLoaderPriority(true); solves the same problem
> (loading of SL4J), I guess.
> 

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


Re: Decent jetty runner for eclipse

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, Apr 13, 2009 at 2:28 PM, Sergey Didenko
<se...@gmail.com> wrote:
> Don't you use
> webapp.setServerClasses( new String[]
> {"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."} );
> also? As recommended on http://wiki.apache.org/tapestry/Tapestry5RunViaMain .

The line webapp.setParentLoaderPriority(true); solves the same problem
(loading of SL4J), I guess.

-- 
Thiago

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


Re: Decent jetty runner for eclipse

Posted by Sergey Didenko <se...@gmail.com>.
Don't you use

webapp.setServerClasses( new String[]
{"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."} );

also? As recommended on http://wiki.apache.org/tapestry/Tapestry5RunViaMain .


On Mon, Apr 13, 2009 at 3:28 PM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> I'm not using any Eclipse plugins: I just wrote a class (I call it
> Main) in the test sources folder and added Jetty 6.1.14 as a test
> dependency. My Main class has code in its main() method:
>
> Server server = new Server();
>
> Connector connector = new SelectChannelConnector();
> connector.setPort(80);
> server.setConnectors(new Connector[] { connector });
>
> WebAppContext webapp = new WebAppContext();
> webapp.setParentLoaderPriority(true);
> webapp.setContextPath("/");
> webapp.setResourceBase("src/main/webapp");
> webapp.setDefaultsDescriptor(webapp.getResourceBase() +
> "/WEB-INF/webdefault.xml");
> server.setHandler(webapp);
>
> server.start();
> server.join();
>
> I run or debug it as I would run any other Java class.
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: Decent jetty runner for eclipse

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
I'm not using any Eclipse plugins: I just wrote a class (I call it
Main) in the test sources folder and added Jetty 6.1.14 as a test
dependency. My Main class has code in its main() method:
		
Server server = new Server();

Connector connector = new SelectChannelConnector();
connector.setPort(80);
server.setConnectors(new Connector[] { connector });

WebAppContext webapp = new WebAppContext();
webapp.setParentLoaderPriority(true);
webapp.setContextPath("/");
webapp.setResourceBase("src/main/webapp");
webapp.setDefaultsDescriptor(webapp.getResourceBase() +
"/WEB-INF/webdefault.xml");
server.setHandler(webapp);

server.start();
server.join();

I run or debug it as I would run any other Java class.

-- 
Thiago

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


Re: Decent jetty runner for eclipse

Posted by Christian Edward Gruber <ch...@gmail.com>.
Ganymede, Mac, 1.6.

Christian.

On 14-Apr-09, at 17:45 , Amit Nithian wrote:

> I am using it with Eclipse Ganymede and 1.6 without problems. I too  
> have the
> parentLoader property and production mode off as I assume most  
> others do
> too. I just upgraded from Eclipse 3.3 and launched this without much  
> hassle.
> It's a great plugin for web development in Eclipse.. no fuss  
> launching of a
> web server in the IDE!
>
> On Mon, Apr 13, 2009 at 3:24 AM, Peter Stavrinides <
> P.Stavrinides@albourne.com> wrote:
>
>> I remember using this plugin a while back (18 months perhaps) and  
>> it was
>> pretty decent apart from the lack of Java 6 support, also I seem to  
>> recall
>> it didn't work in the latest eclipse at that time so sadly I  
>> ditched it.
>>
>> Is it working in Ganymede with JDK 6 anybody?
>>
>>
>> ----- Original Message -----
>> From: "Christian Edward Gruber" <ch...@gmail.com>
>> To: "Tapestry users" <us...@tapestry.apache.org>
>> Sent: Saturday, 11 April, 2009 20:24:34 GMT +02:00 Athens, Beirut,
>> Bucharest, Istanbul
>> Subject: Decent jetty runner for eclipse
>>
>> Hi.  I just started using "Run Jetty Run" and it seems to be pretty  
>> no-
>> fuss.
>>
>> http://code.google.com/p/run-jetty-run/wiki/GettingStarted
>>
>> regards,
>> Christian.
>>
>> Christian Edward Gruber
>> e-mail: christianedwardgruber@gmail.com
>> weblog: http://www.geekinasuit.com/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>

Christian Edward Gruber
e-mail: christianedwardgruber@gmail.com
weblog: http://www.geekinasuit.com/


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


Re: Decent jetty runner for eclipse

Posted by Amit Nithian <an...@gmail.com>.
I am using it with Eclipse Ganymede and 1.6 without problems. I too have the
parentLoader property and production mode off as I assume most others do
too. I just upgraded from Eclipse 3.3 and launched this without much hassle.
It's a great plugin for web development in Eclipse.. no fuss launching of a
web server in the IDE!

On Mon, Apr 13, 2009 at 3:24 AM, Peter Stavrinides <
P.Stavrinides@albourne.com> wrote:

> I remember using this plugin a while back (18 months perhaps) and it was
> pretty decent apart from the lack of Java 6 support, also I seem to recall
> it didn't work in the latest eclipse at that time so sadly I ditched it.
>
> Is it working in Ganymede with JDK 6 anybody?
>
>
> ----- Original Message -----
> From: "Christian Edward Gruber" <ch...@gmail.com>
> To: "Tapestry users" <us...@tapestry.apache.org>
> Sent: Saturday, 11 April, 2009 20:24:34 GMT +02:00 Athens, Beirut,
> Bucharest, Istanbul
> Subject: Decent jetty runner for eclipse
>
> Hi.  I just started using "Run Jetty Run" and it seems to be pretty no-
> fuss.
>
> http://code.google.com/p/run-jetty-run/wiki/GettingStarted
>
> regards,
> Christian.
>
> Christian Edward Gruber
> e-mail: christianedwardgruber@gmail.com
> weblog: http://www.geekinasuit.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Decent jetty runner for eclipse

Posted by Peter Stavrinides <P....@albourne.com>.
I remember using this plugin a while back (18 months perhaps) and it was pretty decent apart from the lack of Java 6 support, also I seem to recall it didn't work in the latest eclipse at that time so sadly I ditched it.

Is it working in Ganymede with JDK 6 anybody?


----- Original Message -----
From: "Christian Edward Gruber" <ch...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Saturday, 11 April, 2009 20:24:34 GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: Decent jetty runner for eclipse

Hi.  I just started using "Run Jetty Run" and it seems to be pretty no- 
fuss.

http://code.google.com/p/run-jetty-run/wiki/GettingStarted

regards,
Christian.

Christian Edward Gruber
e-mail: christianedwardgruber@gmail.com
weblog: http://www.geekinasuit.com/


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


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