Re: Live Class Reloading

2015-03-19 Thread Adam X
I did not use maven-jetty-plugin, so that makes a lot more sense Felix. Anyway, I fully understand this now. However, without maven-jetty-plugin the contribution seems bit cumbersome :) On Thu, Mar 19, 2015 at 5:51 PM, Felix Scheffer wrote: > Hi Adam, > > The example uses the maven jetty plugin

Re: Live Class Reloading

2015-03-19 Thread Felix Scheffer
Hi Adam, The example uses the maven jetty plugin to set the execution-mode property to development (in the pom.xml file). So if you use the maven-jetty-plugin (jetty:run) to start the server, live reloading should work out of the box. Felix Felix Scheffer Dammstrasse 2 68549 Ilvesheim Tel: 0151

Re: Live Class Reloading

2015-03-19 Thread Adam X
I get that. My point is that setting up execution mode for development renders contribution for PRODUCTION_MODE useless. On Thu, Mar 19, 2015 at 3:39 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 19 Mar 2015 09:46:25 -0300, Adam X wrote: > > So the confusing part is th

Re: Live Class Reloading

2015-03-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Mar 2015 09:46:25 -0300, Adam X wrote: So the confusing part is that in order for Tapestry to use the DevelopmentModule which has the necessary configuration it is required to pass a JVM parameter in the first place, which in turn yields the point about adding: configuration.add(Sym

Re: Live Class Reloading

2015-03-19 Thread Adam X
Okay, I figured out the problem. I suppose the skeleton setup is somewhat confusing. The services package in the skeleton provides for 3 modules: AppModule, DevelopmentModule and a QaModule. Of those, seems like only AppModule is loaded which does not contain the configuration for dev. Therefore, s

Re: Live Class Reloading

2015-03-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Mar 2015 03:06:29 -0300, Adam X wrote: it development, but again, this should not be necessary with configuration.add(SymbolConstants.PRODUCTION_MODE, false); unless I'm getting it wrong. Have you tried configuration.add(SymbolConstants.PRODUCTION_MODE, "false")? Is it in contrib

Re: Live Class Reloading

2015-03-18 Thread Adam X
Hi Felix - I also, once again, just created project and it is production mode (not reporting development next to tapestry logo in the log output). I also did a simple test by changing tapestryVersion property (Index.java) to tapestryVersionn, expecting exception but none showing upon refreshing the

Re: Live Class Reloading

2015-03-18 Thread Felix Scheffer
Hi Adam, I just created a project using the archetype and live reloading works fine without tapestry.execution-mode=development. Are you sure that you are in not in production mode? Your log should contain "5.3.7 (development mode)" next to the Tapestry logo. The CheckForUpdatesFilter should cal

Re: Live Class Reloading of Autoloading Modules

2015-03-02 Thread Thiago H de Paula Figueiredo
On Mon, 02 Mar 2015 07:58:49 -0300, Svein Erik Løken wrote: How can I get an auto loaded module live reloaded? Tapestry live reloads page, component, mixin and base (classes in the base package) classes, plus services defined using an interface, but not module classes themselves. They'r

Re: live class reloading for custom package

2014-06-13 Thread Barry Books
You can't do exactly what you asked but you can just make your hibernate object just a wrapper for your database schema then build a Tapestry service for the business logic. If you make a schema change or an interface change you'll have to restart but otherwise not. I often merge the DTO and busine

Re: live class reloading for custom package

2014-06-13 Thread Dmitry Gusev
JRebel is not the only option, there are some open source alternatives: http://stackoverflow.com/questions/7998669/redeploy-alternatives-to-jrebel On Fri, Jun 13, 2014 at 5:18 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 12 Jun 2014 16:32:11 -0300, Ilya Obshadko > wr

Re: live class reloading for custom package

2014-06-13 Thread Thiago H de Paula Figueiredo
On Thu, 12 Jun 2014 16:32:11 -0300, Ilya Obshadko wrote: Hey guys, Hi! Could anyone explain - is that possible to enable live class reloading for user-defined packages? No. Tapestry and Tapestry-IoC can only do that due to having their own classloaders, so classes are changed when lo

Re: live class reloading for custom package

2014-06-13 Thread Lance Java
FYI jrebel is not really introducing a framework. It's a jvm agent (command line argument) that you only use during development. Jrebel won't be running in production. On 13 Jun 2014 06:39, "Ilya Obshadko" wrote: > Thanks Lance! > > I was supposing something like this. > > JRebel looks very prom

Re: live class reloading for custom package

2014-06-13 Thread Juan E. Maya
You could also try spring -loaded. https://github.com/spring-projects/spring-loaded Notice you don't need to be using spring to get advantage of it On Fri, Jun 13, 2014 at 7:39 AM, Ilya Obshadko wrote: > Thanks Lance! > > I was supposing something like this. > > JRebel looks very promising, but

Re: live class reloading for custom package

2014-06-12 Thread Ilya Obshadko
Thanks Lance! I was supposing something like this. JRebel looks very promising, but well, I don't need this feature that much; it might be just a convenient addition, but introducing another framework to achieve the result looks like an overkill. On Fri, Jun 13, 2014 at 1:24 AM, Lance Java wro

Re: live class reloading for custom package

2014-06-12 Thread Lance Java
I think you'll have troubles getting that to work. Tapestry's been built from the ground up to support live class reloading. Have you seen jrebel? It's a java agent that will do what you want. Nb it's not free http://zeroturnaround.com/software/jrebel/ On 12 Jun 2014 20:33, "Ilya Obshadko" wrote

Re: Live class reloading very slow

2011-05-25 Thread Joel Halbert
Hi Davor, Have you tried running Jetty standalone, out of eclipse? This is what we do. I'm not sure it has anything to do with your problem but it might be worth a try. It's only a few lines of code to write a simple Jetty server launcher as you can see http://pastebin.com/WsEFi2yh Just write a

Re: Live class reloading very slow

2011-05-25 Thread Kalle Korhonen
You don't have to copy the templates anywhere. It still may not explain why class reloading is slow for you, but file IO is fairly expensive and thus should be avoided. Kalle On Wed, May 25, 2011 at 1:17 AM, Davor Hrg wrote: > Hi, > > your suggestion did improve reload when only template is cha

Re: Live class reloading very slow

2011-05-25 Thread Davor Hrg
Hi, your suggestion did improve reload when only template is changed. Still 6 seconds reload happens when I change page class. Hope this is also abnormal and someone has some suggestions how to fix it as well. to clarify : adding exclude ** for resources will stop eclipse from doing anything th

Re: Live class reloading very slow

2011-05-24 Thread Bryan Lewis
I put it back into the src/main/resources line of .classpath, like: My templates are being copied to the expected place, like ... target\classes\com\companyname\appname\pages\PageName.tml. Maybe there's something else amiss with your maven/build configuration. Does your pom.xml have the se

Re: Live class reloading very slow

2011-05-24 Thread Davor Hrg
I also removed excluding ** for src/main/resurces but without it templates do not get copied to calsses dir where did you put back the excluding ** ? Davor Hrg

Re: Live class reloading very slow

2011-05-24 Thread Richard Hill
Honestly, we have a pretty complex app: multiple zones, lots of and nested components, loads of injected assets, services etc and it reloads faster than I can hit F5. On Tue, 2011-05-24 at 19:06 +0200, Davor Hrg wrote: > I've updated run-jetty, > and tried with and without page-pool > still 5-

Re: Live class reloading very slow

2011-05-24 Thread Bryan Lewis
Maybe you did the same thing I did? http://tapestry.1045711.n5.nabble.com/slow-page-reload-td4287502.html On Tue, May 24, 2011 at 1:06 PM, Davor Hrg wrote: > I've updated run-jetty, > and tried with and without page-pool > still 5-6 seconds load time. > > > I decided to try to go as simple as p

Re: Live class reloading very slow

2011-05-24 Thread Davor Hrg
I've updated run-jetty, and tried with and without page-pool still 5-6 seconds load time. I decided to try to go as simple as possible ... empty page with layout component takes 500 ms - add a form .. it jumps to 700 ms - add few submit buttons ... jumps to 800 ms - add a component with a zon

Re: Live class reloading very slow

2011-05-24 Thread Joel Halbert
Hi Davor, I use a similar spec. Should take a second or two. - Joel On Tue, 2011-05-24 at 18:10 +0200, Davor Hrg wrote: > ok, > > we are on 5.2.4 now, > I am running it from eclipse using run-jetty-run 1.1.1 > I'll try newer jetty plugin 1.2.2.1 > > how long should I expect a page reload to la

Re: Live class reloading very slow

2011-05-24 Thread Davor Hrg
ok, we are on 5.2.4 now, I am running it from eclipse using run-jetty-run 1.1.1 I'll try newer jetty plugin 1.2.2.1 how long should I expect a page reload to last for: - page - editing component inside - two forms in the component - maybe 20 form fields total Quad core intel Core i7 4GB

Re: Live class reloading very slow

2011-05-24 Thread Howard Lewis Ship
For me as well, instantaneous under Jetty. 5.2.5 adds "field write-behind" when in development mode, to assist with debugging. This is also present in 5.3. There is a switch to use the page pool, please chck the documentation (configuration page). On Tue, May 24, 2011 at 8:37 AM, Davor Hrg wro

Re: Live class reloading very slow

2011-05-24 Thread Richard Hill
Tomcat or Jetty? I forget why (perhaps I can dig out the details) but I found class reloading on Tomcat was very slow - so I switched to Jetty which is essentially instantaneous - very quick. On Tue, 2011-05-24 at 17:37 +0200, Davor Hrg wrote: > Hi, > > I may be wrong but since T5 5.2+ > live

Re: Live-Class-Reloading in a Maven-Multi-Module Project

2010-11-09 Thread Nicolas Barrera
Great jonathan, i didn't know about that parameter, maybe it's that i 'm using that resolve artifacts in workspace of m2e plugin.., and i could replace it for that parameter, anyway..., the plugin is working great for me right now.., i ll take that into account. Nicolás.- On Tue, Nov 9, 2010 at

Re: Live-Class-Reloading in a Maven-Multi-Module Project

2010-11-08 Thread Jonathan Barker
In addition to specifying the tapestry.modules property, take a look at the element in the jetty:run configuration. ../*module1*/target/classes,../*module2/target/classes/*,../ *module3*/target/classes Obviously from this I need to have resources copied to target/classes. I occasionally ge

Re: Live-Class-Reloading in a Maven-Multi-Module Project

2010-11-08 Thread Christian Riedel
mmh I don't want to commit .classpath / .project files to my repository and I couldn't find the maven switch to properly generate those files. So should read and that's it? Just tried that out but new classes are still not recognized... Didn't know about the system property

Re: Live-Class-Reloading in a Maven-Multi-Module Project

2010-11-08 Thread Nicolas Barrera
Chirstian, I 've faced that problem of yours with the manifest.mf... and the tapestry module classes..., I think it's not on tapestry documentation..., (please I think it will be positive to add it here http://tapestry.apache.org/tapestry5/tapestry-ioc/autoload.html!) but I dove into tapestry sou

Re: Live-Class-Reloading in a Maven-Multi-Module Project

2010-11-08 Thread Thiago H. de Paula Figueiredo
On Mon, 08 Nov 2010 14:36:33 -0200, Christian Riedel wrote: Hi Nicolas & Thiago! Hi! - I use Maven to generate my Manifest.mf (Tapestry-Module-Classes). Auto-resolving artifacts means there is no maven-generated manifest.mf available. You have to create one that is similar to the gener

Re: Live-Class-Reloading in a Maven-Multi-Module Project

2010-11-08 Thread Christian Riedel
Hi Nicolas & Thiago! I knew about the "resolve artifacts" flag but in the past it didn't always work as expected, so I never used it. Having played with it now a bit I see that class/resource-reloading works but there are some pitfalls: - I use Maven to generate my Manifest.mf (Tapestry-Module-

Re: Live-Class-Reloading in a Maven-Multi-Module Project

2010-11-08 Thread Nicolas Barrera
Christian, are you using the "Resolve artifacts in workspace" feature of the m2e plugin? I use it and although I 'm not using a multimodule, class reloading works like a charm... my scenario could be like this: webapp (t5 web with pages, which reference or depend on the weblib pages) |

Re: Live-Class-Reloading in a Maven-Multi-Module Project

2010-11-08 Thread Thiago H. de Paula Figueiredo
On Mon, 08 Nov 2010 11:24:53 -0200, Christian Riedel wrote: Hi list, Hi! I'm trying to build a multi-module project with maven 2 (w/ m2eclipse) and Tapestry (5.2.2) of course! One module contains the .war artifact and some of the others contribute pages and components... Now the proble

Re: Live-Class reloading for rest services.

2010-10-27 Thread Howard Lewis Ship
Response.java: /** * Invoked to indicate that the response content is either already compressed, or is not compressable. * * @since 5.2.1 */ void disableCompression(); On Wed, Oct 27, 2010 at 2:31 AM, Moritz Gmelin wrote: > Thanks > > http://jira.codehaus.org/browse/

Re: Live-Class reloading for rest services.

2010-10-27 Thread Moritz Gmelin
Thanks http://jira.codehaus.org/browse/TYNAMO-64 Regards Moritz Am 27.10.2010 um 10:57 schrieb Alejandro Scandroli: > Hi Moritz > > If you have GZIP disabled > (configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, > "false");) you can definitively use it as a RequestFilter. It will > w

Re: Live-Class reloading for rest services.

2010-10-27 Thread Alejandro Scandroli
Hi Moritz If you have GZIP disabled (configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, "false");) you can definitively use it as a RequestFilter. It will work fine and it will reload your classes. If you file a JIRA issue I can provide you with a patch to try. Alejandro. On Wed, Oct 27

Re: Live-Class reloading for rest services.

2010-10-27 Thread Moritz Gmelin
I don't know whether this is a bug or not. I've seen that you explicitly moved your RequestFilter before GZIP. Probably for a reason. I had no problem changeing the filter to be a RequestFilter (instead of a ServletRequestFilter) and push it further down the request queue. GZIP is disabled in o

Re: Live-Class reloading for rest services.

2010-10-26 Thread Alejandro Scandroli
Hi Moritz Again the issue is that the RESTEasy filter is an HttpServletRequestFilter not a RequestFilter, so the CheckForUpdatesFilter (RequestFilter) it's never called and the loader never knows that it needs to reload the services. I could make the RESTEasy filter work as a RequestFilter but th

Re: Live-Class reloading for rest services.

2010-10-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Oct 2010 10:45:55 -0200, Moritz Gmelin wrote: Hi, Hi! is there a way to extend Live Class reloading to other claasses that are not pages, components or service implementations? As far as I know, no, as it depends on class transformations. Is there some contribution I have t

Re: Live class reloading and annotations in page classes

2009-08-04 Thread Thiago H. de Paula Figueiredo
Em Sat, 01 Aug 2009 05:23:16 -0300, Massimo Lusetti escreveu: That is what ChenilleKit access module is doing. Thanks Robert, Howard and Massimo! I used ComponentClassTransformWorker and it's simple and works like a charm! :) I love the sensation of having learned something new, simple an

Re: Live class reloading and annotations in page classes

2009-08-01 Thread Massimo Lusetti
On Fri, Jul 31, 2009 at 6:42 PM, Howard Lewis Ship wrote: > If you have a ComponentClassTransformWorker that converts the > annotation into meta-data on the ComponentModel, then you can just get > the correct ComponentModel without loading the page itself. That is what ChenilleKit access module i

Re: Live class reloading and annotations in page classes

2009-07-31 Thread Howard Lewis Ship
If you have a ComponentClassTransformWorker that converts the annotation into meta-data on the ComponentModel, then you can just get the correct ComponentModel without loading the page itself. On Thu, Jul 30, 2009 at 1:35 PM, Robert Zeigler wrote: > > On Jul 29, 2009, at 7/297:00 PM , Thiago H. de

Re: Live class reloading and annotations in page classes

2009-07-30 Thread Robert Zeigler
On Jul 29, 2009, at 7/297:00 PM , Thiago H. de Paula Figueiredo wrote: Hi! I'm working on a security package for Tapestry (to be open-sourced soon) and I'm following the typical Dispatcher-based approach. Now I need to check if the requested page has a given annotation and read its value

Re: Live class reloading problems

2008-11-22 Thread Hugo Palma
may differ between maven plugin versions and eclipse versions. cheers Peter - Original Message - From: "Hugo Palma" <[EMAIL PROTECTED]> To: "Tapestry users" , "Alex Kotchnev" < [EMAIL PROTECTED]>

Re: Live class reloading problems

2008-11-21 Thread Andreas Andreou
s the jetty implementation >> works >> >> > instantly >> >> > > >> >> > > Some of our developers use Tomcat because we have a requirement to >> work >> >> > with multiple modules from source (not jars)... yes, there is probably

Re: Live class reloading problems

2008-11-21 Thread Hugo Palma
I spent hours > >> trying > >> > and failed to configure it. Recently I found: > >> > http://maven.apache.org/maven-1.x/using/multiproject.html, but > haven't > >> had > >> > a chance to look more closely into this. It would be fant

Re: Live class reloading problems

2008-11-21 Thread Andreas Andreou
and failed to configure it. Recently I found: >> > http://maven.apache.org/maven-1.x/using/multiproject.html, but haven't >> had >> > a chance to look more closely into this. It would be fantastic if there >> was >> > more detail on how to configure/tweak enterpris

Re: Live class reloading problems

2008-11-21 Thread Kalle Korhonen
> > had > > > a chance to look more closely into this. It would be fantastic if there > > was > > > more detail on how to configure/tweak enterprise tapestry projects for > > > maven. I am not sure about Netbeans, but in eclipse, LCR can fail if > your > > >

Re: Live class reloading problems

2008-11-21 Thread Hugo Palma
ipse, LCR can fail if your > > build path is not set correctly, and the exact configuration may differ > > between maven plugin versions and eclipse versions. > > > > > > cheers > > > Peter > > > > > > > > > - Original Message

Re: Live class reloading problems

2008-11-20 Thread Kalle Korhonen
/multiproject.html, but haven't > > had > > > a chance to look more closely into this. It would be fantastic if there > > was > > > more detail on how to configure/tweak enterprise tapestry projects for > > > maven. I am not sure about Netbeans, but in ecli

Re: Live class reloading problems

2008-11-20 Thread Alex Kotchnev
ere > was > > more detail on how to configure/tweak enterprise tapestry projects for > > maven. I am not sure about Netbeans, but in eclipse, LCR can fail if your > > build path is not set correctly, and the exact configuration may differ > > between maven plugin versions

Re: Live class reloading problems

2008-11-20 Thread Kalle Korhonen
ation may differ > between maven plugin versions and eclipse versions. > > > > cheers > > Peter > > > > > > - Original Message ----- > > From: "Hugo Palma" <[EMAIL PROTECTED]> > > To: "Tapestry users" , "Alex Kotchne

Re: Live class reloading problems

2008-11-20 Thread Howard Lewis Ship
; cheers > Peter > > > - Original Message - > From: "Hugo Palma" <[EMAIL PROTECTED]> > To: "Tapestry users" , "Alex Kotchnev" <[EMAIL > PROTECTED]> > Sent: Thursday, 20 November, 2008 5:05:51 PM GMT +02:00 Athens, Beirut, >

Re: Live class reloading problems

2008-11-20 Thread Peter Stavrinides
ent: Thursday, 20 November, 2008 5:05:51 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Live class reloading problems I would say that this problems with LCR should be dealt with case by case. I'm sure that "LCR only works on Jetty" is false because i have it work

Re: Live class reloading problems

2008-11-20 Thread Hugo Palma
tty (or at least clearly > state that it doesn't work w Tomcat, Glassfish, Jboss, etc)? I understand > that it is abit unfair to T5 as it was intentionally designed to support > LCR; however the docs are most useful when they describe things accurately . > > What does everyone think?

Re: Live class reloading problems

2008-11-20 Thread Alex Kotchnev
abit unfair to T5 as it was intentionally designed to support LCR; however the docs are most useful when they describe things accurately . What does everyone think? Should I file a jira issue for this? cheers, Alex Kotchnev - original message - Subject:Re: Live class reloading problems Fr

Re: Live class reloading problems

2008-11-20 Thread Geoff Callender
I haven't tried it with any others. On 20/11/2008, at 10:29 PM, Jan Vissers wrote: Sorry to say but the whole 'class reloading' feature to me seems to be specifically geared towards Jetty and tomcat. I haven't seen any other (servlet) containers that can use this Tapestry feature. Have you? -J

Re: Live class reloading problems

2008-11-20 Thread Jan Vissers
Sorry to say but the whole 'class reloading' feature to me seems to be specifically geared towards Jetty and tomcat. I haven't seen any other (servlet) containers that can use this Tapestry feature. Have you? -J. > I use the Tomcat that's in JBoss, so it might be a little different, > but all it

Re: Live class reloading problems

2008-11-20 Thread Geoff Callender
I use the Tomcat that's in JBoss, so it might be a little different, but all it needs is reloadable="true" in the Context element of context.xml. eg. and the .tml files together with the .classes in the war's WEB-INF// classes/. eg. WEB-INF/classes/com/acme/myapp/pages/Index.tml

Re: Live class reloading problems

2008-11-20 Thread Hugo Palma
I'm using Tomcat for development and both template and class live reloading work just fine. Although, i'm using the maven tomcat plugin to run the app in my laptop with the "mvn tomcat:run" command. I haven't tried it with my local instalation of tomcat. Can you try using the maven tomcat plugin a

Re: Live class reloading problems

2008-11-20 Thread Thiago H. de Paula Figueiredo
Em Thu, 20 Nov 2008 01:27:18 -0300, akochnev <[EMAIL PROTECTED]> escreveu: I'm running into some trouble w/ the live class reloading feature (the template reloading works fine), tested both on Tomcat 6 , Glassfish 3 Prelude, and Glassfish V2 (all three servers support exploded war deployment).