You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andy Pahne <ap...@sapida.de> on 2012/11/01 09:39:22 UTC
template/class reloading and gradle's jetty run
Hi,
after being forced to work with other web frameworks for quite a while, I am
glad to have a Tapestry project again, so I am back!
I set up a fresh project and I am running it with gradle's jettyRun plugin.
Unfortunatly I can't get template and class reloading to work.
In my AppModule class I have set:
public static void
contributeApplicationDefaults(MappedConfiguration<String, String>
configuration) {
configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1 s");
configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
configuration.add(SymbolConstants.EXECUTION_MODE, "DevelopmentMode");
}
I am fairly new to gradle, so I am not sure, if this a gradle problem or if
I misconfigured T5.
Any help or pointers would be appreciated. Thanks
Andy Pahne
--
View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491.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: template/class reloading and gradle's jetty run
Posted by Andy Pahne <ap...@sapida.de>.
Yeah, I heard you are a great fan of IntelliJ. I might have to look into
that sometimes....
--
View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717556.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: template/class reloading and gradle's jetty run
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 01 Nov 2012 17:01:09 -0200, Howard Lewis Ship <hl...@gmail.com>
wrote:
> That's odd ... I'd have to look into that, if I still used Eclipse!
I use Eclipse and RunJettyRun and I've never experienced context reloads.
Maybe, in your RunJettyRun run configurations, you have SourceMonitorList
-> Enable scanner scan interval checked. For Tapestry, it should be
unchecked. In addition, when you change some page or component class and
Eclipse asks you what to do, choose the "keep running anyway" option (I
don't remember the exact words).
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: template/class reloading and gradle's jetty run
Posted by Howard Lewis Ship <hl...@gmail.com>.
That's odd ... I'd have to look into that, if I still used Eclipse!
On Thu, Nov 1, 2012 at 11:56 AM, Andy Pahne <ap...@sapida.de> wrote:
>
> RunJettyRun is a neat plugin which I have not been aware of. Unfortunatly
> for me it does the same: on every change of a template or class file, it
> reloads the whole context instead of simply reloading that one changed
> entity.
>
> Though, I admit, it does that much quicker than gradle does, so I am almost
> happy.
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717551.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
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: template/class reloading and gradle's jetty run
Posted by Andy Pahne <ap...@sapida.de>.
Thanks a lot, that did it.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717562.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: template/class reloading and gradle's jetty run
Posted by Kalle Korhonen <ka...@gmail.com>.
On Thu, Nov 1, 2012 at 11:56 AM, Andy Pahne <ap...@sapida.de> wrote:
> RunJettyRun is a neat plugin which I have not been aware of. Unfortunatly
> for me it does the same: on every change of a template or class file, it
> reloads the whole context instead of simply reloading that one changed
> entity.
Preferences/RunJettyRun/uncheck "Default enable scanner when create
run configuration". Or open existing configuration, "Source Monitor
List" tab, uncheck enable scanner.
Kalle
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: template/class reloading and gradle's jetty run
Posted by Andy Pahne <ap...@sapida.de>.
RunJettyRun is a neat plugin which I have not been aware of. Unfortunatly
for me it does the same: on every change of a template or class file, it
reloads the whole context instead of simply reloading that one changed
entity.
Though, I admit, it does that much quicker than gradle does, so I am almost
happy.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717551.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: template/class reloading and gradle's jetty run
Posted by Howard Lewis Ship <hl...@gmail.com>.
This is why, under Eclispe, I would use the RunJettyRun plugin, which exe
uses Jetty directly off your workspace files and compiled classes. That
works perfectly.
Delegating out to Gradle means that, at best, when Eclipse compiles files,
they are copied to the directory served by Jetty, which only knows to
redeploy the application.
On Thursday, November 1, 2012, Andy Pahne wrote:
>
> Hi,
>
> I did all of that except turning off hot code swapping. I just did not
> find,
> where to turn that off in Eclipse. I found "Configuration - Java - Debug",
> where I can adjust what happens if hot code swap fails or isn't available,
> but I did not find, how to turn it off.
>
> After working through the list, a change in template files or class files
> is
> recognized automatically and the context is restarted as well. But that is
> not quite what I am expecting, because that still takes very long, given
> that I am dealing with a Spring/Hibernate application. And I am sure, that
> wasn't the case, when I was working with T5 in previous projects. My
> previous experience was, that a change was picked up without a full context
> restart.
>
> Andy
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717527.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org<javascript:;>
> For additional commands, e-mail: users-help@tapestry.apache.org<javascript:;>
>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
Re: template/class reloading and gradle's jetty run
Posted by Andy Pahne <ap...@sapida.de>.
Hi,
I did all of that except turning off hot code swapping. I just did not find,
where to turn that off in Eclipse. I found "Configuration - Java - Debug",
where I can adjust what happens if hot code swap fails or isn't available,
but I did not find, how to turn it off.
After working through the list, a change in template files or class files is
recognized automatically and the context is restarted as well. But that is
not quite what I am expecting, because that still takes very long, given
that I am dealing with a Spring/Hibernate application. And I am sure, that
wasn't the case, when I was working with T5 in previous projects. My
previous experience was, that a change was picked up without a full context
restart.
Andy
--
View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717527.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: template/class reloading and gradle's jetty run
Posted by Andy Pahne <ap...@sapida.de>.
Thank you all, the problem is solved. I am using RunJettyRun now and
together with the settings that Kalle and Thiago posted, it works like a
charm.
The authors of RunJettyRun "strongly recommand" on their project page to use
DCEVM hot-deploy feature to work with RJR, it's really faster and faster".
I will definetly give that a try as well, because that sounds like JRebel
for free. See yourself:
http://ssw.jku.at/dcevm/
I'll post my experiences with that, but that may take a while.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717572.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: template/class reloading and gradle's jetty run
Posted by Norman Franke <no...@myasd.com>.
This one caught my eye:
The class must be one that Tapestry instantiates (a page, component, or mixin class, or a Tapestry IOC service implementation that implements an interface)
I have a done of DAOs that implement an interface and are registered as per-thread services and they never reload. Is this only supported in a .services package?
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Nov 1, 2012, at 8:03 AM, Bob Harner wrote:
> Go through the troubleshooting section at
> http://tapestry.apache.org/class-reloading.html ... let us know if you
> still have a problem after checking each of those things.
> On Nov 1, 2012 4:39 AM, "Andy Pahne" <ap...@sapida.de> wrote:
>
>>
>> Hi,
>>
>> after being forced to work with other web frameworks for quite a while, I
>> am
>> glad to have a Tapestry project again, so I am back!
>>
>> I set up a fresh project and I am running it with gradle's jettyRun plugin.
>> Unfortunatly I can't get template and class reloading to work.
>>
>> In my AppModule class I have set:
>>
>> public static void
>> contributeApplicationDefaults(MappedConfiguration<String, String>
>> configuration) {
>> configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1
>> s");
>> configuration.add(SymbolConstants.PRODUCTION_MODE,
>> "false");
>> configuration.add(SymbolConstants.EXECUTION_MODE,
>> "DevelopmentMode");
>> }
>>
>> I am fairly new to gradle, so I am not sure, if this a gradle problem or if
>> I misconfigured T5.
>>
>> Any help or pointers would be appreciated. Thanks
>>
>> Andy Pahne
>>
>>
>>
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491.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: template/class reloading and gradle's jetty run
Posted by Bob Harner <bo...@gmail.com>.
Go through the troubleshooting section at
http://tapestry.apache.org/class-reloading.html ... let us know if you
still have a problem after checking each of those things.
On Nov 1, 2012 4:39 AM, "Andy Pahne" <ap...@sapida.de> wrote:
>
> Hi,
>
> after being forced to work with other web frameworks for quite a while, I
> am
> glad to have a Tapestry project again, so I am back!
>
> I set up a fresh project and I am running it with gradle's jettyRun plugin.
> Unfortunatly I can't get template and class reloading to work.
>
> In my AppModule class I have set:
>
> public static void
> contributeApplicationDefaults(MappedConfiguration<String, String>
> configuration) {
> configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1
> s");
> configuration.add(SymbolConstants.PRODUCTION_MODE,
> "false");
> configuration.add(SymbolConstants.EXECUTION_MODE,
> "DevelopmentMode");
> }
>
> I am fairly new to gradle, so I am not sure, if this a gradle problem or if
> I misconfigured T5.
>
> Any help or pointers would be appreciated. Thanks
>
> Andy Pahne
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491.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
>
>