You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kevin Menard <km...@servprise.com> on 2008/01/16 20:33:22 UTC

Tapestry & IDEA

Hi all,

It's time for me to ask about IDEA and Tapestry again.  I seem to go in
cycles with the whole thing.

Recent traffic indicates that there's now a decent number of people using
IDEA with Tapestry.  My question is simply, how?

I've been using the third party Jetty integration plugin and set my webapp
to rebuild upon frame deactivation (a setting I seem to have to make every
time I start up IDEA because I'm using a Maven project).  This works, but
does a full redeploy on any change and that redeploy doesn't occur until I
switch back to the browser window.  So, a simple template change will
rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
some decent metal here with a trivial sized app and it takes at least 10s
before the app is back up.

Moreover, I can only do this about 10 times before I either blow out the
heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
kill the Jetty process.

The net of it is that disabling caching in T4 gains me nothing and live
class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
in Eclipse using JettyLauncher and I can run that without caching all day
long.

Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
their setup so I can fix mine?

Thanks,
Kevin



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


Re: Tapestry & IDEA

Posted by Howard Lewis Ship <hl...@gmail.com>.
On Jan 16, 2008 11:33 AM, Kevin Menard <km...@servprise.com> wrote:
> Hi all,
>
> It's time for me to ask about IDEA and Tapestry again.  I seem to go in
> cycles with the whole thing.
>
> Recent traffic indicates that there's now a decent number of people using
> IDEA with Tapestry.  My question is simply, how?
>
> I've been using the third party Jetty integration plugin and set my webapp
> to rebuild upon frame deactivation (a setting I seem to have to make every
> time I start up IDEA because I'm using a Maven project).  This works, but
> does a full redeploy on any change and that redeploy doesn't occur until I
> switch back to the browser window.  So, a simple template change will
> rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
> some decent metal here with a trivial sized app and it takes at least 10s
> before the app is back up.

There's a compiler option (cmd-comma, 2) to turn off redeployment,
which is what you want.

The Maven situation (losing the details of the redeploy) is a known
IDEA bug that they are working on.

>
> Moreover, I can only do this about 10 times before I either blow out the
> heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
> kill the Jetty process.

Running out of heap?  That shouldn't be happen, there must be some
kind of leak I'm unaware of. I don't want to pass the buck to Jetty
yet; see if you can get things working with redeployment off.

>
> The net of it is that disabling caching in T4 gains me nothing and live
> class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
> in Eclipse using JettyLauncher and I can run that without caching all day
> long.
>
> Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
> their setup so I can fix mine?
>
> Thanks,
> Kevin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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


Re: Tapestry & IDEA

Posted by Kevin Menard <km...@servprise.com>.
Thanks for the reply Jesse.

Your directions have me up and running with T4 quite smoothly now.  I think
I even wept a little.  It's still not as nice as working with JettyLauncher,
but it's a remarkable improvement over what I was using.

I haven't been able to get class reloading working for T5 yet, though.
Template reloading works just fine.

It could very well be a difference between project layouts (the T5 ones are
maven, the T4 one is not).

Anyway, thanks again,
Kevin


On 1/16/08 2:40 PM, in article
7926817e0801161140g3f15123dkb482fab7e4479c53@mail.gmail.com, "Jesse Kuhnert"
<jk...@gmail.com> wrote:

> For tap 4:
> 
> -) Use the latest eap  release if you use maven - they make tiny
> improvements to that minefield with each release.
> -) Under project settings make sure you un-check the option to build a
> "war" file for your web facet.  (also don't create an exploded
> directory to run it in)
> -) Make sure your compiler settings compile ~everything~ you need to
> the classpath.
> -) You can configure your web facet to include all the necessary
> resources as you need them.
> 
> The overall thing I do is try and always run the web app from the
> source directory structure "as is".   Almost always invoke jetty
> directly with IDEA using a normal application run configuration.  (you
> can have maven/ant compile tasks associated with this run as well - if
> you need any special processing to happen)
> 
> You should in theory be able to run the app using the same classpath
> that the IDE uses and have Tapestry 5 (or 4 but with no fun re-load of
> classes =( ) without ever having to rebuild the whole thing.   Makes
> things a ~lot~ easier when you work off the same directory structure
> that the app is hosted (in version control) from.
> 
> On Jan 16, 2008 2:33 PM, Kevin Menard <km...@servprise.com> wrote:
>> Hi all,
>> 
>> It's time for me to ask about IDEA and Tapestry again.  I seem to go in
>> cycles with the whole thing.
>> 
>> Recent traffic indicates that there's now a decent number of people using
>> IDEA with Tapestry.  My question is simply, how?
>> 
>> I've been using the third party Jetty integration plugin and set my webapp
>> to rebuild upon frame deactivation (a setting I seem to have to make every
>> time I start up IDEA because I'm using a Maven project).  This works, but
>> does a full redeploy on any change and that redeploy doesn't occur until I
>> switch back to the browser window.  So, a simple template change will
>> rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
>> some decent metal here with a trivial sized app and it takes at least 10s
>> before the app is back up.
>> 
>> Moreover, I can only do this about 10 times before I either blow out the
>> heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
>> kill the Jetty process.
>> 
>> The net of it is that disabling caching in T4 gains me nothing and live
>> class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
>> in Eclipse using JettyLauncher and I can run that without caching all day
>> long.
>> 
>> Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
>> their setup so I can fix mine?
>> 
>> Thanks,
>> Kevin
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> 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: Tapestry & IDEA

Posted by Andreas Andreou <an...@gmail.com>.
Javarebel is sweet.

Regarding disabling-cache, I always disliked it (prefering the
enable-reset-service approach)
for performance and OOME issues. I had a greasemonkey script for this @
http://blog.andyhot.gr/a/java/2006/09/23/Implementing-a-Firefox-Plugin-for-Tapestrys-Reset-Service.html
but nowadays we just have a (debug-mode only) link to the reset
service at the corner of our app.

On Jan 17, 2008 12:53 AM, Alejandro Scandroli
<al...@gmail.com> wrote:
> Hi Kevin
>
> > Any thoughts on what I may be doing wrong?
>
> Just to confirm, are you sure you are compiling?
> Idea needs you to explicitly hit CRTL-SHIFT-F9 (to compile just one
> class) or CTRL-F9 (make project)
> That was my problem when I started working with Idea and Tapestry
> (both 4 and 5).
> BTW, I'm using the excelent JavaRebel for live class reloading when
> working with T4 on Idea
>
> Cheers.
>
> --
> Alejandro Scandroli
> Amneris: We build process-driven web applications.
> http://www.amneris.es
>
>
>
> On Jan 16, 2008 11:34 PM, Kevin Menard <km...@servprise.com> wrote:
> > Hi Michael,
> >
> > Thanks for the advice.  I added Jetty6 as a test dependency and wrote my own
> > class that's a more domain-specific version of the JettyRunner.  I didn't
> > take your approach 100% because that class is a Tapestry test artifact and
> > as such, not part of the primary distribution.
> >
> > Anyway, things are working quite well, but the class reloading doesn't work
> > for me.  Template reloading works just fine, but not the class.  I have
> > tested with page classes that are in the proper structure.
> >
> > Any thoughts on what I may be doing wrong?
> >
> > Thanks,
> > Kevin
> >
> >
> > On 1/16/08 3:04 PM, in article 478E6360.2050902@netvue.com, "Michael Lake"
> >
> > <ml...@netvue.com> wrote:
> >
> > >
> > > For T5, in lieu of jettyLauncher you might try looking into extending
> > > the following class somewhere in your test sources:
> > >
> > > org.apache.tapestry.test.JettyRunner
> > >
> > > make a wrapper  around it with a class that has a static main function.
> > >
> > > there's an example of it in "tapestry-core" sources
> > >
> > > org.apache.tapestry.integration.RunJetty
> > >
> > >
> > > At least this is how I run T5 in IDEA..
> > >
> > > -mike
> > >
> > > Jesse Kuhnert wrote:
> > >> For tap 4:
> > >>
> > >> -) Use the latest eap  release if you use maven - they make tiny
> > >> improvements to that minefield with each release.
> > >> -) Under project settings make sure you un-check the option to build a
> > >> "war" file for your web facet.  (also don't create an exploded
> > >> directory to run it in)
> > >> -) Make sure your compiler settings compile ~everything~ you need to
> > >> the classpath.
> > >> -) You can configure your web facet to include all the necessary
> > >> resources as you need them.
> > >>
> > >> The overall thing I do is try and always run the web app from the
> > >> source directory structure "as is".   Almost always invoke jetty
> > >> directly with IDEA using a normal application run configuration.  (you
> > >> can have maven/ant compile tasks associated with this run as well - if
> > >> you need any special processing to happen)
> > >>
> > >> You should in theory be able to run the app using the same classpath
> > >> that the IDE uses and have Tapestry 5 (or 4 but with no fun re-load of
> > >> classes =( ) without ever having to rebuild the whole thing.   Makes
> > >> things a ~lot~ easier when you work off the same directory structure
> > >> that the app is hosted (in version control) from.
> > >>
> > >> On Jan 16, 2008 2:33 PM, Kevin Menard <km...@servprise.com> wrote:
> > >>
> > >>> Hi all,
> > >>>
> > >>> It's time for me to ask about IDEA and Tapestry again.  I seem to go in
> > >>> cycles with the whole thing.
> > >>>
> > >>> Recent traffic indicates that there's now a decent number of people using
> > >>> IDEA with Tapestry.  My question is simply, how?
> > >>>
> > >>> I've been using the third party Jetty integration plugin and set my webapp
> > >>> to rebuild upon frame deactivation (a setting I seem to have to make every
> > >>> time I start up IDEA because I'm using a Maven project).  This works, but
> > >>> does a full redeploy on any change and that redeploy doesn't occur until I
> > >>> switch back to the browser window.  So, a simple template change will
> > >>> rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
> > >>> some decent metal here with a trivial sized app and it takes at least 10s
> > >>> before the app is back up.
> > >>>
> > >>> Moreover, I can only do this about 10 times before I either blow out the
> > >>> heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
> > >>> kill the Jetty process.
> > >>>
> > >>> The net of it is that disabling caching in T4 gains me nothing and live
> > >>> class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
> > >>> in Eclipse using JettyLauncher and I can run that without caching all day
> > >>> long.
> > >>>
> > >>> Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
> > >>> their setup so I can fix mine?
> > >>>
> > >>> Thanks,
> > >>> Kevin
> > >>>
> > >>>
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> 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
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>



-- 
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: Tapestry & IDEA

Posted by Matt Brock <br...@gmail.com>.

Alejandro Scandroli wrote:
> 
> Idea needs you to explicitly hit CRTL-SHIFT-F9 (to compile just one
> class) or CTRL-F9 (make project)

You can also use the ANT BUILD dialog window pane.  You can even assign
shortcuts to particular build definitions.  I usually have at least three in
any build: a "clean" execution to clear out any cached classes and tomcat
work directories, a "copy-content" that just copies non-recompileables
(component definitions, html files, etc.) and a "build".  Each one is a
different hotkey.  You can also select multiple execution points and click
the PLAY button, and it will execute each in order.

If you can't already tell, I'm rabid about IntelliJ.
-- 
View this message in context: http://www.nabble.com/Tapestry---IDEA-tp14892102p14918685.html
Sent from the Tapestry - User 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: Tapestry & IDEA

Posted by Kevin Menard <km...@servprise.com>.
You are absolutely correct.  I had disabled "Build on frame deactivation"
setting and forgot that IDEA doesn't auto-compile like Eclipse.  Thanks for
pointer.

I'll have to check out JavaRebel for my T4 work.

Regards,
Kevin


On 1/16/08 5:53 PM, in article
e1cf626e0801161453n1adc1773k5571cdfb2a570de4@mail.gmail.com, "Alejandro
Scandroli" <al...@gmail.com> wrote:

> Hi Kevin
> 
>> Any thoughts on what I may be doing wrong?
> 
> Just to confirm, are you sure you are compiling?
> Idea needs you to explicitly hit CRTL-SHIFT-F9 (to compile just one
> class) or CTRL-F9 (make project)
> That was my problem when I started working with Idea and Tapestry
> (both 4 and 5).
> BTW, I'm using the excelent JavaRebel for live class reloading when
> working with T4 on Idea
> 
> Cheers.
> 
> --
> Alejandro Scandroli
> Amneris: We build process-driven web applications.
> http://www.amneris.es



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


Re: Tapestry & IDEA

Posted by Alejandro Scandroli <al...@gmail.com>.
Hi Kevin

> Any thoughts on what I may be doing wrong?

Just to confirm, are you sure you are compiling?
Idea needs you to explicitly hit CRTL-SHIFT-F9 (to compile just one
class) or CTRL-F9 (make project)
That was my problem when I started working with Idea and Tapestry
(both 4 and 5).
BTW, I'm using the excelent JavaRebel for live class reloading when
working with T4 on Idea

Cheers.

--
Alejandro Scandroli
Amneris: We build process-driven web applications.
http://www.amneris.es


On Jan 16, 2008 11:34 PM, Kevin Menard <km...@servprise.com> wrote:
> Hi Michael,
>
> Thanks for the advice.  I added Jetty6 as a test dependency and wrote my own
> class that's a more domain-specific version of the JettyRunner.  I didn't
> take your approach 100% because that class is a Tapestry test artifact and
> as such, not part of the primary distribution.
>
> Anyway, things are working quite well, but the class reloading doesn't work
> for me.  Template reloading works just fine, but not the class.  I have
> tested with page classes that are in the proper structure.
>
> Any thoughts on what I may be doing wrong?
>
> Thanks,
> Kevin
>
>
> On 1/16/08 3:04 PM, in article 478E6360.2050902@netvue.com, "Michael Lake"
>
> <ml...@netvue.com> wrote:
>
> >
> > For T5, in lieu of jettyLauncher you might try looking into extending
> > the following class somewhere in your test sources:
> >
> > org.apache.tapestry.test.JettyRunner
> >
> > make a wrapper  around it with a class that has a static main function.
> >
> > there's an example of it in "tapestry-core" sources
> >
> > org.apache.tapestry.integration.RunJetty
> >
> >
> > At least this is how I run T5 in IDEA..
> >
> > -mike
> >
> > Jesse Kuhnert wrote:
> >> For tap 4:
> >>
> >> -) Use the latest eap  release if you use maven - they make tiny
> >> improvements to that minefield with each release.
> >> -) Under project settings make sure you un-check the option to build a
> >> "war" file for your web facet.  (also don't create an exploded
> >> directory to run it in)
> >> -) Make sure your compiler settings compile ~everything~ you need to
> >> the classpath.
> >> -) You can configure your web facet to include all the necessary
> >> resources as you need them.
> >>
> >> The overall thing I do is try and always run the web app from the
> >> source directory structure "as is".   Almost always invoke jetty
> >> directly with IDEA using a normal application run configuration.  (you
> >> can have maven/ant compile tasks associated with this run as well - if
> >> you need any special processing to happen)
> >>
> >> You should in theory be able to run the app using the same classpath
> >> that the IDE uses and have Tapestry 5 (or 4 but with no fun re-load of
> >> classes =( ) without ever having to rebuild the whole thing.   Makes
> >> things a ~lot~ easier when you work off the same directory structure
> >> that the app is hosted (in version control) from.
> >>
> >> On Jan 16, 2008 2:33 PM, Kevin Menard <km...@servprise.com> wrote:
> >>
> >>> Hi all,
> >>>
> >>> It's time for me to ask about IDEA and Tapestry again.  I seem to go in
> >>> cycles with the whole thing.
> >>>
> >>> Recent traffic indicates that there's now a decent number of people using
> >>> IDEA with Tapestry.  My question is simply, how?
> >>>
> >>> I've been using the third party Jetty integration plugin and set my webapp
> >>> to rebuild upon frame deactivation (a setting I seem to have to make every
> >>> time I start up IDEA because I'm using a Maven project).  This works, but
> >>> does a full redeploy on any change and that redeploy doesn't occur until I
> >>> switch back to the browser window.  So, a simple template change will
> >>> rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
> >>> some decent metal here with a trivial sized app and it takes at least 10s
> >>> before the app is back up.
> >>>
> >>> Moreover, I can only do this about 10 times before I either blow out the
> >>> heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
> >>> kill the Jetty process.
> >>>
> >>> The net of it is that disabling caching in T4 gains me nothing and live
> >>> class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
> >>> in Eclipse using JettyLauncher and I can run that without caching all day
> >>> long.
> >>>
> >>> Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
> >>> their setup so I can fix mine?
> >>>
> >>> Thanks,
> >>> Kevin
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> 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
> >
> >
>
>
>
> ---------------------------------------------------------------------
> 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: Tapestry & IDEA

Posted by Kevin Menard <km...@servprise.com>.
Hi Michael,

Thanks for the advice.  I added Jetty6 as a test dependency and wrote my own
class that's a more domain-specific version of the JettyRunner.  I didn't
take your approach 100% because that class is a Tapestry test artifact and
as such, not part of the primary distribution.

Anyway, things are working quite well, but the class reloading doesn't work
for me.  Template reloading works just fine, but not the class.  I have
tested with page classes that are in the proper structure.

Any thoughts on what I may be doing wrong?

Thanks,
Kevin


On 1/16/08 3:04 PM, in article 478E6360.2050902@netvue.com, "Michael Lake"
<ml...@netvue.com> wrote:

> 
> For T5, in lieu of jettyLauncher you might try looking into extending
> the following class somewhere in your test sources:
> 
> org.apache.tapestry.test.JettyRunner
> 
> make a wrapper  around it with a class that has a static main function.
> 
> there's an example of it in "tapestry-core" sources
> 
> org.apache.tapestry.integration.RunJetty
> 
> 
> At least this is how I run T5 in IDEA..
> 
> -mike
> 
> Jesse Kuhnert wrote:
>> For tap 4:
>> 
>> -) Use the latest eap  release if you use maven - they make tiny
>> improvements to that minefield with each release.
>> -) Under project settings make sure you un-check the option to build a
>> "war" file for your web facet.  (also don't create an exploded
>> directory to run it in)
>> -) Make sure your compiler settings compile ~everything~ you need to
>> the classpath.
>> -) You can configure your web facet to include all the necessary
>> resources as you need them.
>> 
>> The overall thing I do is try and always run the web app from the
>> source directory structure "as is".   Almost always invoke jetty
>> directly with IDEA using a normal application run configuration.  (you
>> can have maven/ant compile tasks associated with this run as well - if
>> you need any special processing to happen)
>> 
>> You should in theory be able to run the app using the same classpath
>> that the IDE uses and have Tapestry 5 (or 4 but with no fun re-load of
>> classes =( ) without ever having to rebuild the whole thing.   Makes
>> things a ~lot~ easier when you work off the same directory structure
>> that the app is hosted (in version control) from.
>> 
>> On Jan 16, 2008 2:33 PM, Kevin Menard <km...@servprise.com> wrote:
>>   
>>> Hi all,
>>> 
>>> It's time for me to ask about IDEA and Tapestry again.  I seem to go in
>>> cycles with the whole thing.
>>> 
>>> Recent traffic indicates that there's now a decent number of people using
>>> IDEA with Tapestry.  My question is simply, how?
>>> 
>>> I've been using the third party Jetty integration plugin and set my webapp
>>> to rebuild upon frame deactivation (a setting I seem to have to make every
>>> time I start up IDEA because I'm using a Maven project).  This works, but
>>> does a full redeploy on any change and that redeploy doesn't occur until I
>>> switch back to the browser window.  So, a simple template change will
>>> rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
>>> some decent metal here with a trivial sized app and it takes at least 10s
>>> before the app is back up.
>>> 
>>> Moreover, I can only do this about 10 times before I either blow out the
>>> heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
>>> kill the Jetty process.
>>> 
>>> The net of it is that disabling caching in T4 gains me nothing and live
>>> class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
>>> in Eclipse using JettyLauncher and I can run that without caching all day
>>> long.
>>> 
>>> Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
>>> their setup so I can fix mine?
>>> 
>>> Thanks,
>>> Kevin
>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> 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
> 
> 



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


Re: Tapestry & IDEA

Posted by Howard Lewis Ship <hl...@gmail.com>.
On Jan 16, 2008 12:04 PM, Michael Lake <ml...@netvue.com> wrote:
>
> For T5, in lieu of jettyLauncher you might try looking into extending
> the following class somewhere in your test sources:
>
> org.apache.tapestry.test.JettyRunner
>
> make a wrapper  around it with a class that has a static main function.
>
> there's an example of it in "tapestry-core" sources
>
> org.apache.tapestry.integration.RunJetty

I only created that so I could run the integration test suite
manually, since I could not (at the time) find a way to do so using
the Jetty Integration plugin.

>
>
> At least this is how I run T5 in IDEA..
>
> -mike
>
>
> Jesse Kuhnert wrote:
> > For tap 4:
> >
> > -) Use the latest eap  release if you use maven - they make tiny
> > improvements to that minefield with each release.
> > -) Under project settings make sure you un-check the option to build a
> > "war" file for your web facet.  (also don't create an exploded
> > directory to run it in)
> > -) Make sure your compiler settings compile ~everything~ you need to
> > the classpath.
> > -) You can configure your web facet to include all the necessary
> > resources as you need them.
> >
> > The overall thing I do is try and always run the web app from the
> > source directory structure "as is".   Almost always invoke jetty
> > directly with IDEA using a normal application run configuration.  (you
> > can have maven/ant compile tasks associated with this run as well - if
> > you need any special processing to happen)
> >
> > You should in theory be able to run the app using the same classpath
> > that the IDE uses and have Tapestry 5 (or 4 but with no fun re-load of
> > classes =( ) without ever having to rebuild the whole thing.   Makes
> > things a ~lot~ easier when you work off the same directory structure
> > that the app is hosted (in version control) from.
> >
> > On Jan 16, 2008 2:33 PM, Kevin Menard <km...@servprise.com> wrote:
> >
> >> Hi all,
> >>
> >> It's time for me to ask about IDEA and Tapestry again.  I seem to go in
> >> cycles with the whole thing.
> >>
> >> Recent traffic indicates that there's now a decent number of people using
> >> IDEA with Tapestry.  My question is simply, how?
> >>
> >> I've been using the third party Jetty integration plugin and set my webapp
> >> to rebuild upon frame deactivation (a setting I seem to have to make every
> >> time I start up IDEA because I'm using a Maven project).  This works, but
> >> does a full redeploy on any change and that redeploy doesn't occur until I
> >> switch back to the browser window.  So, a simple template change will
> >> rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
> >> some decent metal here with a trivial sized app and it takes at least 10s
> >> before the app is back up.
> >>
> >> Moreover, I can only do this about 10 times before I either blow out the
> >> heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
> >> kill the Jetty process.
> >>
> >> The net of it is that disabling caching in T4 gains me nothing and live
> >> class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
> >> in Eclipse using JettyLauncher and I can run that without caching all day
> >> long.
> >>
> >> Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
> >> their setup so I can fix mine?
> >>
> >> Thanks,
> >> Kevin
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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


Re: Tapestry & IDEA

Posted by Michael Lake <ml...@netvue.com>.
For T5, in lieu of jettyLauncher you might try looking into extending 
the following class somewhere in your test sources:

org.apache.tapestry.test.JettyRunner

make a wrapper  around it with a class that has a static main function.

there's an example of it in "tapestry-core" sources

org.apache.tapestry.integration.RunJetty


At least this is how I run T5 in IDEA..

-mike

Jesse Kuhnert wrote:
> For tap 4:
>
> -) Use the latest eap  release if you use maven - they make tiny
> improvements to that minefield with each release.
> -) Under project settings make sure you un-check the option to build a
> "war" file for your web facet.  (also don't create an exploded
> directory to run it in)
> -) Make sure your compiler settings compile ~everything~ you need to
> the classpath.
> -) You can configure your web facet to include all the necessary
> resources as you need them.
>
> The overall thing I do is try and always run the web app from the
> source directory structure "as is".   Almost always invoke jetty
> directly with IDEA using a normal application run configuration.  (you
> can have maven/ant compile tasks associated with this run as well - if
> you need any special processing to happen)
>
> You should in theory be able to run the app using the same classpath
> that the IDE uses and have Tapestry 5 (or 4 but with no fun re-load of
> classes =( ) without ever having to rebuild the whole thing.   Makes
> things a ~lot~ easier when you work off the same directory structure
> that the app is hosted (in version control) from.
>
> On Jan 16, 2008 2:33 PM, Kevin Menard <km...@servprise.com> wrote:
>   
>> Hi all,
>>
>> It's time for me to ask about IDEA and Tapestry again.  I seem to go in
>> cycles with the whole thing.
>>
>> Recent traffic indicates that there's now a decent number of people using
>> IDEA with Tapestry.  My question is simply, how?
>>
>> I've been using the third party Jetty integration plugin and set my webapp
>> to rebuild upon frame deactivation (a setting I seem to have to make every
>> time I start up IDEA because I'm using a Maven project).  This works, but
>> does a full redeploy on any change and that redeploy doesn't occur until I
>> switch back to the browser window.  So, a simple template change will
>> rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
>> some decent metal here with a trivial sized app and it takes at least 10s
>> before the app is back up.
>>
>> Moreover, I can only do this about 10 times before I either blow out the
>> heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
>> kill the Jetty process.
>>
>> The net of it is that disabling caching in T4 gains me nothing and live
>> class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
>> in Eclipse using JettyLauncher and I can run that without caching all day
>> long.
>>
>> Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
>> their setup so I can fix mine?
>>
>> Thanks,
>> Kevin
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: Tapestry & IDEA

Posted by Jesse Kuhnert <jk...@gmail.com>.
For tap 4:

-) Use the latest eap  release if you use maven - they make tiny
improvements to that minefield with each release.
-) Under project settings make sure you un-check the option to build a
"war" file for your web facet.  (also don't create an exploded
directory to run it in)
-) Make sure your compiler settings compile ~everything~ you need to
the classpath.
-) You can configure your web facet to include all the necessary
resources as you need them.

The overall thing I do is try and always run the web app from the
source directory structure "as is".   Almost always invoke jetty
directly with IDEA using a normal application run configuration.  (you
can have maven/ant compile tasks associated with this run as well - if
you need any special processing to happen)

You should in theory be able to run the app using the same classpath
that the IDE uses and have Tapestry 5 (or 4 but with no fun re-load of
classes =( ) without ever having to rebuild the whole thing.   Makes
things a ~lot~ easier when you work off the same directory structure
that the app is hosted (in version control) from.

On Jan 16, 2008 2:33 PM, Kevin Menard <km...@servprise.com> wrote:
> Hi all,
>
> It's time for me to ask about IDEA and Tapestry again.  I seem to go in
> cycles with the whole thing.
>
> Recent traffic indicates that there's now a decent number of people using
> IDEA with Tapestry.  My question is simply, how?
>
> I've been using the third party Jetty integration plugin and set my webapp
> to rebuild upon frame deactivation (a setting I seem to have to make every
> time I start up IDEA because I'm using a Maven project).  This works, but
> does a full redeploy on any change and that redeploy doesn't occur until I
> switch back to the browser window.  So, a simple template change will
> rebuild my app, all its dependencies, and redeploy to Jetty.  I'm running
> some decent metal here with a trivial sized app and it takes at least 10s
> before the app is back up.
>
> Moreover, I can only do this about 10 times before I either blow out the
> heap (T5) or permgen space (T4).  At that point, I have to unceremoniously
> kill the Jetty process.
>
> The net of it is that disabling caching in T4 gains me nothing and live
> class reloading in T5 gains me nothing.  In contrast, I still have a T4 app
> in Eclipse using JettyLauncher and I can run that without caching all day
> long.
>
> Without a doubt, I'm doing something wrong.  Would anyone else mind sharing
> their setup so I can fix mine?
>
> Thanks,
> Kevin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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