Re: T5 Class Reloading & InvalidationListener
Ah, yes. Somehow my Tapestry live reloading stopped working under Tomcat 6. Off to fix that problem... Norman Franke Answering Service for Directors, Inc. www.myasd.com On Mar 15, 2012, at 5:45 PM, Josh Canfield wrote: It sounds like you have Tomcat set to watch for changes to your webapp and reload the whole context. If tomcat is reloading your context and giving you that message, then you aren't actually using tapestry's class reloading feature, right?. The InvalidationEventHub calls objectWasInvalidated when Tapestry detects a class has changed. In your case you're reloading/restarting the whole app. Or did I miss something? Josh On Thu, Mar 15, 2012 at 2:36 PM, Norman Franke wrote: I'm using Tapestry 5.2.5 I have a library I'm using that makes use of Apache Commons IO. As a result, I need to call FileCleaner.exitWhenFinished() to stop the thread, or else my application's memory usage grows about 300 MB each time Tapestry does a class reload on my development box. After some searching, it appears you can add yourself to the @ComponentClasses InvalidationEventHub. I can verify that I'm successfully calling the addInvalidationListener for my service implementation. However, objectWasInvalided is never called no matter what class(es) I modify. Tomcat reloads and prints an error saying that the "File Reaper" thread has not been terminated, which is what I'm trying to do. Why isn't my objectWasInvalided called? I've tried adding the listener in my AppModule as well as in a @PostInjection method in the implementation class (not at the same time.) Again, my function that calls addInvalidationListener IS called, but the callback is never called even after several class reloads. Thoughts? Norman Franke Answering Service for Directors, Inc. www.myasd.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 Class Reloading & InvalidationListener
It sounds like you have Tomcat set to watch for changes to your webapp and reload the whole context. If tomcat is reloading your context and giving you that message, then you aren't actually using tapestry's class reloading feature, right?. The InvalidationEventHub calls objectWasInvalidated when Tapestry detects a class has changed. In your case you're reloading/restarting the whole app. Or did I miss something? Josh On Thu, Mar 15, 2012 at 2:36 PM, Norman Franke wrote: > I'm using Tapestry 5.2.5 > > I have a library I'm using that makes use of Apache Commons IO. As a result, > I need to call FileCleaner.exitWhenFinished() to stop the thread, or else my > application's memory usage grows about 300 MB each time Tapestry does a > class reload on my development box. > > After some searching, it appears you can add yourself to the > @ComponentClasses InvalidationEventHub. I can verify that I'm successfully > calling the addInvalidationListener for my service implementation. However, > objectWasInvalided is never called no matter what class(es) I modify. Tomcat > reloads and prints an error saying that the "File Reaper" thread has not > been terminated, which is what I'm trying to do. > > Why isn't my objectWasInvalided called? > > I've tried adding the listener in my AppModule as well as in a > @PostInjection method in the implementation class (not at the same time.) > Again, my function that calls addInvalidationListener IS called, but the > callback is never called even after several class reloads. > > Thoughts? > > Norman Franke > Answering Service for Directors, Inc. > www.myasd.com > > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5 Class Reloading & InvalidationListener
I'm using Tapestry 5.2.5 I have a library I'm using that makes use of Apache Commons IO. As a result, I need to call FileCleaner.exitWhenFinished() to stop the thread, or else my application's memory usage grows about 300 MB each time Tapestry does a class reload on my development box. After some searching, it appears you can add yourself to the @ComponentClasses InvalidationEventHub. I can verify that I'm successfully calling the addInvalidationListener for my service implementation. However, objectWasInvalided is never called no matter what class(es) I modify. Tomcat reloads and prints an error saying that the "File Reaper" thread has not been terminated, which is what I'm trying to do. Why isn't my objectWasInvalided called? I've tried adding the listener in my AppModule as well as in a @PostInjection method in the implementation class (not at the same time.) Again, my function that calls addInvalidationListener IS called, but the callback is never called even after several class reloads. Thoughts? Norman Franke Answering Service for Directors, Inc. www.myasd.com
Re: [T5] class reloading for pages, templates, components possible only?
Em Sun, 16 Nov 2008 13:45:54 -0300, aldana <[EMAIL PROTECTED]> escreveu: Is live class reloading supposed to work with pages/templates/components only or do I need to configure something to enable this for all classes? Short answer: just for pages, templates, components and mixins, i.e. classes which instantiation is controlled by Tapestry. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] class reloading for pages, templates, components possible only?
Hi, This is documented here: http://tapestry.apache.org/tapestry5/guide/reload.html /Serge aldana wrote: > > hi, > > class reloading works fine for pages, template and components. But it does > not work for related class dependencies. For instance when I change the > implementation of a Dao I don't see any changes on webapp. > > Is live class reloading supposed to work with pages/templates/components > only or do I need to configure something to enable this for all classes? > -- View this message in context: http://www.nabble.com/-T5--class-reloading-for-pages%2C-templates%2C-components-possible-only--tp20527176p20527312.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] class reloading for pages, templates, components possible only?
hi, class reloading works fine for pages, template and components. But it does not work for related class dependencies. For instance when I change the implementation of a Dao I don't see any changes on webapp. Is live class reloading supposed to work with pages/templates/components only or do I need to configure something to enable this for all classes? - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/-T5--class-reloading-for-pages%2C-templates%2C-components-possible-only--tp20527176p20527176.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Class reloading not working
Em Tue, 09 Sep 2008 11:17:46 -0300, Sven Homburg <[EMAIL PROTECTED]> escreveu: sorry, dont mean "spread", mean "advantage" Faster startup time Faster (at least it is my impression, no tests made) More modular Can be used embedded in an application ... Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Class reloading not working
sorry, dont mean "spread", mean "advantage" 2008/9/9 Sven Homburg <[EMAIL PROTECTED]> > i know its off topic, and i dont want to start a discussion about what is > better, > only want know the spread of tomcet against jetty !? > > 2008/9/9 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> > > Em Tue, 09 Sep 2008 10:40:05 -0300, Inge Solvoll <[EMAIL PROTECTED]> >> escreveu: >> >> That's it then. All my page and component classes are under >>> WEB-INF/classes. >>> So I need to either switch to Jetty or find a way to compile all my T5 >>> classes to a jar file under WEB-INF/lib... >>> >> >> I think almost anyone here in this list use Jetty for development and some >> other container for production without any problems, so that's what I >> suggest you to do. :) >> >> >> Thiago >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > with regards > Sven Homburg > http://www.chenillekit.org > http://tapestry5-components.googlecode.com > > -- with regards Sven Homburg http://www.chenillekit.org http://tapestry5-components.googlecode.com
Re: T5: Class reloading not working
i know its off topic, and i dont want to start a discussion about what is better, only want know the spread of tomcet against jetty !? 2008/9/9 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> > Em Tue, 09 Sep 2008 10:40:05 -0300, Inge Solvoll <[EMAIL PROTECTED]> > escreveu: > > That's it then. All my page and component classes are under >> WEB-INF/classes. >> So I need to either switch to Jetty or find a way to compile all my T5 >> classes to a jar file under WEB-INF/lib... >> > > I think almost anyone here in this list use Jetty for development and some > other container for production without any problems, so that's what I > suggest you to do. :) > > > Thiago > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- with regards Sven Homburg http://www.chenillekit.org http://tapestry5-components.googlecode.com
Re: T5: Class reloading not working
Em Tue, 09 Sep 2008 10:40:05 -0300, Inge Solvoll <[EMAIL PROTECTED]> escreveu: That's it then. All my page and component classes are under WEB-INF/classes. So I need to either switch to Jetty or find a way to compile all my T5 classes to a jar file under WEB-INF/lib... I think almost anyone here in this list use Jetty for development and some other container for production without any problems, so that's what I suggest you to do. :) Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Class reloading not working
That's it then. All my page and component classes are under WEB-INF/classes. So I need to either switch to Jetty or find a way to compile all my T5 classes to a jar file under WEB-INF/lib... By the way, I did of course annotate the component field. This is not a problem with syntax, I have a lot of fully working pages that don't support live class reloading. Thanks! :) Inge On Tue, Sep 9, 2008 at 3:25 PM, Thiago H. de Paula Figueiredo < [EMAIL PROTECTED]> wrote: > Em Tue, 09 Sep 2008 10:09:15 -0300, Inge Solvoll <[EMAIL PROTECTED]> > escreveu: > > "Embedded component 'keyField' has no type. You should specify a type in >> the component template, or define the component inside class >> com.myapp.tapestry5.pages.admin.system.SettingsEdit using the @Component >> annotation on a private instance variable." >> > > When you create a field that is a component, you should annotate it with > @Component > > I have never really seen the nice class loading effect displayed in the >> screencasts, I have to restart tomcat after doing changes to the java >> structure in my page classes. >> I'm running T5.0.13 with tomcat 6 in debug mode in eclipse/myeclipse. >> > > Tapestry's live class reloading does not work in Tomcat, and it is Tomcat's > fault. See http://tapestry.apache.org/tapestry5/tomcat.html. > > Thiago > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: T5: Class reloading not working
Em Tue, 09 Sep 2008 10:09:15 -0300, Inge Solvoll <[EMAIL PROTECTED]> escreveu: "Embedded component 'keyField' has no type. You should specify a type in the component template, or define the component inside class com.myapp.tapestry5.pages.admin.system.SettingsEdit using the @Component annotation on a private instance variable." When you create a field that is a component, you should annotate it with @Component I have never really seen the nice class loading effect displayed in the screencasts, I have to restart tomcat after doing changes to the java structure in my page classes. I'm running T5.0.13 with tomcat 6 in debug mode in eclipse/myeclipse. Tapestry's live class reloading does not work in Tomcat, and it is Tomcat's fault. See http://tapestry.apache.org/tapestry5/tomcat.html. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: Class reloading not working
Hi! 1. I created a page and tested that it viewed nicely in my browser 2. I added a component via a private instance variable with type TextField in my page class 3. I added a reference to that component in my .tml. 4. I get the following error in the browser, indicating that tapestry can't see my class changes: "Embedded component 'keyField' has no type. You should specify a type in the component template, or define the component inside class com.myapp.tapestry5.pages.admin.system.SettingsEdit using the @Component annotation on a private instance variable." I have never really seen the nice class loading effect displayed in the screencasts, I have to restart tomcat after doing changes to the java structure in my page classes. I'm running T5.0.13 with tomcat 6 in debug mode in eclipse/myeclipse. Any ideas on what I'm doing wrong? Regards Inge
Re: T5:class reloading problem with Tomcat 6
We should capture these notes on the Wiki, or better yet, on the Tomcat deployment notes page. On Wed, Jun 25, 2008 at 7:30 AM, Geoff Callender <[EMAIL PROTECTED]> wrote: > Yep, that's normal. It's an age-old JVM/class-loading issue (try googling > it). Try running with these java options (or even bigger numbers if you > have the memory): -XX:MaxNewSize=96m -XX:MaxPermSize=96m. > > On 25/06/2008, at 11:31 PM, Angelo Chen wrote: > >> >> hi, >> >> althought reloadable="true" works, but i have memory problems now which >> not >> there before: >> >> Exception in thread "Timer-5" java.lang.OutOfMemoryError: PermGen space >> [ERROR] RequestExceptionHandler Processing of request failed with uncaught >> exception: PermGen space >> java.lang.OutOfMemoryError: PermGen space >>at java.lang.ClassLoader.defineClass1(Native Method) >>at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >>at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >>at >> >> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819) >>at >> >> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) >>at >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327) >>at >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) >>at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>at java.lang.ClassLoader.defineClass1(Native Method) >>at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >>at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >>at >> >> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819) >>at >> >> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) >>at >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327) >>at >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) >>at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>at >> >> org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:224) >>at >> >> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) >>at >> >> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) >>at >> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77) >> >> >> Geoff Callender-2 wrote: >>> >>> Does setting reloadable="true" in the Context element of context.xml >>> fix it? >>> >>> On 25/06/2008, at 6:58 PM, Angelo Chen wrote: >>> Hi, I use tomcat 6 and IDEA IDE, in the IDEA I set the project's exploded directory to: /Users/abc/myapp/ROOT and the above directory is mapped as an entry under $CATALINA_HOME. in the IDEA i did not run or debug, just compile/build, the T5 picks up any changes I made to the template file, but not the page classes, I checked the above directory and can see the java class has been compiled and placed in the correct directory, just the changes are not reflected until I re- boot the server, any idea why? Thanks. Angelo -- View this message in context: http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18112541.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5:class reloading problem with Tomcat 6
Yep, that's normal. It's an age-old JVM/class-loading issue (try googling it). Try running with these java options (or even bigger numbers if you have the memory): -XX:MaxNewSize=96m -XX:MaxPermSize=96m. On 25/06/2008, at 11:31 PM, Angelo Chen wrote: hi, althought reloadable="true" works, but i have memory problems now which not there before: Exception in thread "Timer-5" java.lang.OutOfMemoryError: PermGen space [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at org .apache .catalina .loader.WebappClassLoader.findClassInternal(WebappClassLoader.java: 1819) at org .apache .catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java: 872) at org .apache .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1327) at org .apache .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1206) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at org .apache .catalina .loader.WebappClassLoader.findClassInternal(WebappClassLoader.java: 1819) at org .apache .catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java: 872) at org .apache .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1327) at org .apache .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1206) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org .hibernate .hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:224) at org .hibernate .hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) at org .hibernate .hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java: 77) Geoff Callender-2 wrote: Does setting reloadable="true" in the Context element of context.xml fix it? On 25/06/2008, at 6:58 PM, Angelo Chen wrote: Hi, I use tomcat 6 and IDEA IDE, in the IDEA I set the project's exploded directory to: /Users/abc/myapp/ROOT and the above directory is mapped as an entry under $CATALINA_HOME. in the IDEA i did not run or debug, just compile/build, the T5 picks up any changes I made to the template file, but not the page classes, I checked the above directory and can see the java class has been compiled and placed in the correct directory, just the changes are not reflected until I re- boot the server, any idea why? Thanks. Angelo -- View this message in context: http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18112541.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5:class reloading problem with Tomcat 6
hi, althought reloadable="true" works, but i have memory problems now which not there before: Exception in thread "Timer-5" java.lang.OutOfMemoryError: PermGen space [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:224) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77) Geoff Callender-2 wrote: > > Does setting reloadable="true" in the Context element of context.xml > fix it? > > On 25/06/2008, at 6:58 PM, Angelo Chen wrote: > >> >> Hi, >> >> I use tomcat 6 and IDEA IDE, in the IDEA I set the project's >> exploded >> directory to: >> >> /Users/abc/myapp/ROOT >> >> and the above directory is mapped as an entry under $CATALINA_HOME. >> in the >> IDEA i did not run or debug, just compile/build, the T5 picks up any >> changes >> I made to the template file, but not the page classes, I checked the >> above >> directory and can see the java class has been compiled and placed in >> the >> correct directory, just the changes are not reflected until I re- >> boot the >> server, any idea why? Thanks. >> >> Angelo >> -- >> View this message in context: >> http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18112541.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5:class reloading problem with Tomcat 6
hi, i added reloadable="true", it works, but another error comes out: [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: Context values (which are added to the request URL) may not be null or blank. org.apache.tapestry5.runtime.ComponentEventException: any idea? Thanks. Geoff Callender-2 wrote: > > Does setting reloadable="true" in the Context element of context.xml > fix it? > > On 25/06/2008, at 6:58 PM, Angelo Chen wrote: > >> >> Hi, >> >> I use tomcat 6 and IDEA IDE, in the IDEA I set the project's >> exploded >> directory to: >> >> /Users/abc/myapp/ROOT >> >> and the above directory is mapped as an entry under $CATALINA_HOME. >> in the >> IDEA i did not run or debug, just compile/build, the T5 picks up any >> changes >> I made to the template file, but not the page classes, I checked the >> above >> directory and can see the java class has been compiled and placed in >> the >> correct directory, just the changes are not reflected until I re- >> boot the >> server, any idea why? Thanks. >> >> Angelo >> -- >> View this message in context: >> http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18112203.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5:class reloading problem with Tomcat 6
Does setting reloadable="true" in the Context element of context.xml fix it? On 25/06/2008, at 6:58 PM, Angelo Chen wrote: Hi, I use tomcat 6 and IDEA IDE, in the IDEA I set the project's exploded directory to: /Users/abc/myapp/ROOT and the above directory is mapped as an entry under $CATALINA_HOME. in the IDEA i did not run or debug, just compile/build, the T5 picks up any changes I made to the template file, but not the page classes, I checked the above directory and can see the java class has been compiled and placed in the correct directory, just the changes are not reflected until I re- boot the server, any idea why? Thanks. Angelo -- View this message in context: http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5:class reloading problem with Tomcat 6
Hi, I use tomcat 6 and IDEA IDE, in the IDEA I set the project's exploded directory to: /Users/abc/myapp/ROOT and the above directory is mapped as an entry under $CATALINA_HOME. in the IDEA i did not run or debug, just compile/build, the T5 picks up any changes I made to the template file, but not the page classes, I checked the above directory and can see the java class has been compiled and placed in the correct directory, just the changes are not reflected until I re-boot the server, any idea why? Thanks. Angelo -- View this message in context: http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 class reloading
On Tue, 2007-06-05 at 09:00 +0200, Martin Grotzke wrote: > On Wed, 2007-05-30 at 09:54 +0200, Francois Armand wrote: > > Le mercredi 30 mai 2007 à 07:28 +, Martin Grotzke a écrit : > > > For me changed classes are not picked up automatically, when running > > > mvn jetty6:run... > > > > Well... I encounter some strange behaviour with mvn jetty:run and class > > reloading. It works perfectly at my work, and jetty fire some exception > > about unimplemented class reloading functionality in fresh install of > > eclipse 3.2 at home. > > > > So, the way that seems to just work is to use jetty 5 + jetty launcher > > plugin, as show in the tutorial > > ( http://tapestry.apache.org/tapestry5/t5-tutorial.pdf ), and let mvn > > apart for that task. > Now I installed JettyLauncher, unfortunately I don't get it to run as it > fails with weird ClassNotFoundException like > > Caused by: java.lang.ClassNotFoundException: > org.comp.proj.shared.DBEntityEventListener > > (find the full exception below) > > However, this class definitely exists, and I also tried to add several > jars (e.g. hibernate-annotations) manually to the classpath of > JettyLauncher (as I asumed it would be a problem with the classpath). Ha, the exception was misleading, the problem was in front of the computer: the database was not running - aehem ;) Now everything's fine with JettyLauncher, really great the class reloading!! Cheers, Martin > > > > > If some one has a procedure to have mvn jetty:run + jetty 6 (0 or 1) + > > class/template reloading work, or just can explain what factors make it > > work or not, I will be glad to know them. > Yes, that would be very appreciated. > > Thx && cheers, > Martin > > > This is the full exception when starting JettyLauncher: > > 08:47:30.278 ERROR! [main] > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:203) > >09> Context initialization failed > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name > 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': > Cannot create inner bean '(inner bean)' of type > [org.springframework.transaction.interceptor.TransactionInterceptor] while > setting bean property 'transactionInterceptor'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name '(inner bean)': Cannot resolve reference to bean > 'transactionManager' while setting bean property 'transactionManager'; nested > exception is org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'transactionManager' defined in ServletContext > resource [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve > reference to bean 'sessionFactory' while setting bean property > 'sessionFactory'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'sessionFactory' defined in ServletContext resource > [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve reference to > bean 'entityEventListener' while setting bean property 'eventListeners' with > key [TypedStringValue: value [pre-insert], target type [null]]; nested > exception is org.springframework.beans.factory.CannotLoadBeanClassException: > Cannot find class [org.comp.proj.shared.DBEntityEventListener] for bean with > name 'entityEventListener' defined in ServletContext resource > [/WEB-INF/applicationContext-dataaccess.xml]; nested exception is > java.lang.ClassNotFoundException: org.comp.proj.shared.DBEntityEventListener > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name '(inner bean)': Cannot resolve reference to bean > 'transactionManager' while setting bean property 'transactionManager'; nested > exception is org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'transactionManager' defined in ServletContext > resource [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve > reference to bean 'sessionFactory' while setting bean property > 'sessionFactory'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'sessionFactory' defined in ServletContext resource > [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve reference to > bean 'entityEventListener' while setting bean property 'eventListeners' with > key [TypedStringValue: value [pre-insert], target type [null]]; nested > exception is org.springframework.beans.factory.CannotLoadBeanClassException: > Cannot find class [org.comp.proj.shared.DBEntityEventListener] for bean with > name 'entityEventListener' defined in ServletContext resource > [/WEB-INF/applicationContext-dataaccess.xml]; nested exception is > java.lang.ClassNotFoundException: org.comp.proj.shared.DBEntityEventListener > Caused by: org.springframework.beans.factory.BeanCreatio
Re: T5 class reloading
On Wed, 2007-05-30 at 09:54 +0200, Francois Armand wrote: > Le mercredi 30 mai 2007 à 07:28 +, Martin Grotzke a écrit : > > For me changed classes are not picked up automatically, when running > > mvn jetty6:run... > > Well... I encounter some strange behaviour with mvn jetty:run and class > reloading. It works perfectly at my work, and jetty fire some exception > about unimplemented class reloading functionality in fresh install of > eclipse 3.2 at home. > > So, the way that seems to just work is to use jetty 5 + jetty launcher > plugin, as show in the tutorial > ( http://tapestry.apache.org/tapestry5/t5-tutorial.pdf ), and let mvn > apart for that task. Now I installed JettyLauncher, unfortunately I don't get it to run as it fails with weird ClassNotFoundException like Caused by: java.lang.ClassNotFoundException: org.comp.proj.shared.DBEntityEventListener (find the full exception below) However, this class definitely exists, and I also tried to add several jars (e.g. hibernate-annotations) manually to the classpath of JettyLauncher (as I asumed it would be a problem with the classpath). > > If some one has a procedure to have mvn jetty:run + jetty 6 (0 or 1) + > class/template reloading work, or just can explain what factors make it > work or not, I will be glad to know them. Yes, that would be very appreciated. Thx && cheers, Martin This is the full exception when starting JettyLauncher: 08:47:30.278 ERROR! [main] org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:203) >09> Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve reference to bean 'entityEventListener' while setting bean property 'eventListeners' with key [TypedStringValue: value [pre-insert], target type [null]]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.comp.proj.shared.DBEntityEventListener] for bean with name 'entityEventListener' defined in ServletContext resource [/WEB-INF/applicationContext-dataaccess.xml]; nested exception is java.lang.ClassNotFoundException: org.comp.proj.shared.DBEntityEventListener Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve reference to bean 'entityEventListener' while setting bean property 'eventListeners' with key [TypedStringValue: value [pre-insert], target type [null]]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.comp.proj.shared.DBEntityEventListener] for bean with name 'entityEventListener' defined in ServletContext resource [/WEB-INF/applicationContext-dataaccess.xml]; nested exception is java.lang.ClassNotFoundException: org.comp.proj.shared.DBEntityEventListener Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext-dataaccess.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-dataa
Re: T5 class reloading
Le mercredi 30 mai 2007 à 07:28 +, Martin Grotzke a écrit : > For me changed classes are not picked up automatically, when running > mvn jetty6:run... > If it's working for you, what's your setup, or did you do anything > special to support class reloading? Is it connected with a context > reload of your servlet container (what AFAICS should not be necessary)? Well... I encounter some strange behaviour with mvn jetty:run and class reloading. It works perfectly at my work, and jetty fire some exception about unimplemented class reloading functionality in fresh install of eclipse 3.2 at home. So, the way that seems to just work is to use jetty 5 + jetty launcher plugin, as show in the tutorial ( http://tapestry.apache.org/tapestry5/t5-tutorial.pdf ), and let mvn apart for that task. If some one has a procedure to have mvn jetty:run + jetty 6 (0 or 1) + class/template reloading work, or just can explain what factors make it work or not, I will be glad to know them. Hope it will help, Francois - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 class reloading
On Wed, 2007-05-30 at 13:44 +0700, Ted Steen wrote: > Somewhere in the documentation it says that all pages are components, > so i guess that all components and pages (that are special kinds of > components) will automatically reload. Then the question is what's required to get it to work. For me changed classes are not picked up automatically, when running mvn jetty6:run... If it's working for you, what's your setup, or did you do anything special to support class reloading? Is it connected with a context reload of your servlet container (what AFAICS should not be necessary)? Thx && cheers, Martin > > > 2007/5/29, Martin Grotzke <[EMAIL PROTECTED]>: > > Hi, > > > > is the class reloading in T5 limited to component classes as > > described at > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html: > > "However, class reloading only applies to component classes." > > > > Although, at > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/reload.html is > > written that "In Tapestry 5, page and component classes will > > automatically reload when changed"... > > > > Of course, the latter case would be really, really cool and appreciated, > > but if so: how do I get it to work? > > > > Thx && cheers, > > Martin > > > > > > > > > > -- Martin Grotzke http://www.javakaffee.de/blog/ signature.asc Description: This is a digitally signed message part
Re: T5 class reloading
Somewhere in the documentation it says that all pages are components, so i guess that all components and pages (that are special kinds of components) will automatically reload. 2007/5/29, Martin Grotzke <[EMAIL PROTECTED]>: Hi, is the class reloading in T5 limited to component classes as described at http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html: "However, class reloading only applies to component classes." Although, at http://tapestry.apache.org/tapestry5/tapestry-core/guide/reload.html is written that "In Tapestry 5, page and component classes will automatically reload when changed"... Of course, the latter case would be really, really cool and appreciated, but if so: how do I get it to work? Thx && cheers, Martin -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 class reloading
Hi, is the class reloading in T5 limited to component classes as described at http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html: "However, class reloading only applies to component classes." Although, at http://tapestry.apache.org/tapestry5/tapestry-core/guide/reload.html is written that "In Tapestry 5, page and component classes will automatically reload when changed"... Of course, the latter case would be really, really cool and appreciated, but if so: how do I get it to work? Thx && cheers, Martin signature.asc Description: This is a digitally signed message part
RE: T5 : class reloading error mvn jetty:run eclipse
Alex, I hit the same issue while running mvn jetty:run from outside Eclipse. In addition to the code replacement issue, I couldn't save my CSS files while Jetty was running (though I hear this is specific to Windows) I eventually gave up, installed a copy of jetty 5.1.12, installed the Jetty Launcher Eclipse plugin, and have had no problems. I still really like Maven for bringing order to chaos, but for now the maven jetty plugin is not my friend. If anyone has a real solution to the problem, I would love to hear it as well. Jonathan > -Original Message- > From: Alexandru Dragomir [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 31, 2007 7:31 AM > To: Tapestry users > Subject: T5 : class reloading error mvn jetty:run eclipse > > Hello! > > I can't get to work the class reloading. > > I'm using eclipse 3.2.0 WTP and running mvn jetty:run from inside > eclipse. > Also i'm using the pom.xml generated by the quickstart archetype. > > > Every time i make a change to a page class i'm getting the error : > > org.maven.ide.eclipse.Maven2Executor at localhost:39733 (may be out of > synch) was unable to replace the running code with the code in the > workspace. > Reason : Hot code replace failed - Hierarchy change not implemented. > > Anybody got into the same issue ? > > In the console i can see that jetty-6.1-SNAPSHOT is being used. > > Maybe i shouldn't be using 6.1 ? > > I tried to disable the hot code replacement feature (i suppose is not > needed) but did not succed. > > Thanks , > > Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 : class reloading error mvn jetty:run eclipse
Hello! I can't get to work the class reloading. I'm using eclipse 3.2.0 WTP and running mvn jetty:run from inside eclipse. Also i'm using the pom.xml generated by the quickstart archetype. Every time i make a change to a page class i'm getting the error : org.maven.ide.eclipse.Maven2Executor at localhost:39733 (may be out of synch) was unable to replace the running code with the code in the workspace. Reason : Hot code replace failed - Hierarchy change not implemented. Anybody got into the same issue ? In the console i can see that jetty-6.1-SNAPSHOT is being used. Maybe i shouldn't be using 6.1 ? I tried to disable the hot code replacement feature (i suppose is not needed) but did not succed. Thanks , Alex