Re: Tapestry 5 and Template Reloading
http://tapestry.apache.org/tapestry5/tapestry-core/dependencies.html On 6/29/07, cziesman <[EMAIL PROTECTED]> wrote: It appears that this is a version issue with javassist 3.2. The protection domain is no longer a parameter to the createClass method. I built my own version of the IOC jar without the parameter, and everything is working just fine. Can anybody say what version of javassist is used to build the 5.0.4 IOC jar? -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a11368986 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Tapestry 5 and Template Reloading
It appears that this is a version issue with javassist 3.2. The protection domain is no longer a parameter to the createClass method. I built my own version of the IOC jar without the parameter, and everything is working just fine. Can anybody say what version of javassist is used to build the 5.0.4 IOC jar? -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a11368986 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: Tapestry 5 and Template Reloading
Hi, Just for the record, yesterday i had problems like this, edit the template, save it, restart jetty, but changes don't come up, and new classes don't work properly. At same time we had some problems for internet access, when internet was running again, the problem just disappear. I don't known how or why. Marcus
Re: Tapestry 5 and Template Reloading
I am having a similar problem with the "Unable to create class $Alias" exception, only I am using NetBeans 5.5 with the bundled Tomcat 5.5.17 server on Solaris 9 and JDK 1.5_07. I have been singing the praises of Tapestry to my co-workers, so I would really like to figure this out! :) -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a11309009 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: Tapestry 5 and Template Reloading
I gave up on the JettyLauncher for now. I cannot figure it out. However, on a good note. I did move my pages to WEB-INF and launching the app from the command line using mvn jetty:run now works fine. I guess that will take care of reloading the pages when I save in Eclipse. I haven't figured out how to do the same with components as they cannot exist under WEB-INF but this is a start -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10611306 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: Tapestry 5 and Template Reloading
s/hibernate/hibernate-search/3.0.0-beta1/hibernate-search-3.0.0-beta1.jar jsontools/jsontools-core/1.5/jsontools-core-1.5.jar commons-pool/commons-pool/1.2/commons-pool-1.2.jar jboss/hibernate/asm-attrs/1.5.3/asm-attrs-1.5.3.jar org/openqa/selenium/server/selenium-server/0.8.1/selenium-server-0.8.1.jar jboss/hibernate/hibernate-commons-annotations/na/hibernate-commons-annotations-na.jar jboss/hibernate/asm/1.5.3/asm-1.5.3.jar Can you see anything off here?? -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10432312 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: Tapestry 5 and Template Reloading
http://jax.be/jettylauncher.jar just copy + paste it in place of the old jar in the correct eclipse/plugin folder ;) On 5/10/07, bjornharvold <[EMAIL PROTECTED]> wrote: This is still an issue. I have installed t5 5.0.4 with my app on two PCs and 1 mac. Jetty launcher does not like jdk 1.6. All my laptops give me the same stacktace as noted. -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10420939 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / JEE Consulting
Re: Tapestry 5 and Template Reloading
This is still an issue. I have installed t5 5.0.4 with my app on two PCs and 1 mac. Jetty launcher does not like jdk 1.6. All my laptops give me the same stacktace as noted. -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10420939 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: Tapestry 5 and Template Reloading
Another FYI, I can start my application using mvn jetty:run without problems using 5.0.4. It's the jettylauncher and eclipse that is the problem. -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10394244 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: Tapestry 5 and Template Reloading
FYI: it works great when just downloading the t 5 archetype and running it with jetty launcher etc. HOWEVER, My app has several modules with dependencies on spring, hibernate, xfire etc etc. This is where the problem must be. I think recalling seeing another post with this issue and the solution was to upgrade javassist. This is not the case for me. -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10382736 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: Tapestry 5 and Template Reloading
nal.RegistryWrapper.getService(RegistryWrapper.java:53) at org.apache.tapestry.internal.TapestryAppInitializer.setupServices(TapestryAppInitializer.java:119) at org.apache.tapestry.internal.TapestryAppInitializer.(TapestryAppInitializer.java:72) at org.apache.tapestry.internal.TapestryAppInitializer.(TapestryAppInitializer.java:55) at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71) at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) at org.mortbay.util.Container.start(Container.java:72) at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) Caused by: java.lang.RuntimeException: Unable to create class $Alias_11266c76f5c: org.apache.tapestry.ioc.internal.services.ClassFactoryClassPool.toClass(Ljavassist/CtClass;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class; at org.apache.tapestry.ioc.internal.services.CtClassSource.createClass(CtClassSource.java:96) at org.apache.tapestry.ioc.internal.services.AbstractFab.createClass(AbstractFab.java:108) at org.apache.tapestry.ioc.internal.ModuleImpl.createProxyClass(ModuleImpl.java:391) at org.apache.tapestry.ioc.internal.ModuleImpl.createProxyInstance(ModuleImpl.java:364) at org.apache.tapestry.ioc.internal.ModuleImpl.createProxy(ModuleImpl.java:358) at org.apache.tapestry.ioc.internal.ModuleImpl.create(ModuleImpl.java:249) ... 17 more Caused by: java.lang.NoSuchMethodError: org.apache.tapestry.ioc.internal.services.ClassFactoryClassPool.toClass(Ljavassist/CtClass;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class; at org.apache.tapestry.ioc.internal.services.CtClassSource.createClass(CtClassSource.java:88) ... 22 more -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10357610 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: Tapestry 5 and Template Reloading
I'm surprised about the Jetty problem; obviously, I run with Jetty 5 and Tapestry whatever-the-latest-snapshot-is all the time. On 5/4/07, bjornharvold <[EMAIL PROTECTED]> wrote: The problem was resolved. 1. I couldn't even get Jetty to run with 5.0.4-SNAPSHOT in Eclipse (this worked fine in Intellij / Tomcat). I reverted to 5.0.3. 2. The files had gotten jumbled around with html files in src/main/java and java files in src/main/resources. Real mess. 3. Maven adds the src/main/resources to the list of project resources. I removed that entry and added it as a library class folder (as shown in screen cast #1 with Howard) Golden! P.S. I even reloads *.properties (i18n) files!! -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10329265 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 TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: Tapestry 5 and Template Reloading
The problem was resolved. 1. I couldn't even get Jetty to run with 5.0.4-SNAPSHOT in Eclipse (this worked fine in Intellij / Tomcat). I reverted to 5.0.3. 2. The files had gotten jumbled around with html files in src/main/java and java files in src/main/resources. Real mess. 3. Maven adds the src/main/resources to the list of project resources. I removed that entry and added it as a library class folder (as shown in screen cast #1 with Howard) Golden! P.S. I even reloads *.properties (i18n) files!! -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10329265 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: Tapestry 5 and Template Reloading
no I am using /src/main/webapp. kristian.marinkovic wrote: > > did you use the target/ directories to configure jetty? the target > directory is refreshed only after a new build. make sure jetty points to > src/main/webapp/ and not tp target/webapp... -bjornharvold > <[EMAIL PROTECTED]> schrieb: - An: users@tapestry.apache.org > Von: bjornharvold <[EMAIL PROTECTED]> Datum: 01.05.2007 05:37PM > Thema: Re: Tapestry 5 and Template Reloading Thanks for the emails: I am > am using the same case on both my java class and html file (Start.java / > Start.html). My directory structure is the maven 2 default one > (src/main/java / src/main/resources). I did watch the screencast and did > exactly the same. I actually did install jetty 4 first as that was what > Howard had in his demo, but it didn't like hot deploy and complained when > I saved a java file. The hot deploy worked when I installed jetty 5.1. The > strange thing about this is that changes don't even occur on the template > even if I restart!! I edit the template, save it, restart, and changes > STILL don't come up. I have to CLEAN in order for it to update which > leaves me to believe this is some caching issue on jetty or eclipse. > Problem still not solved :-( thx bjorn bjornharvold wrote: > > I > can't seem to get template reloading to work. Classes reload just fine. > > I installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone > have > the same problem or better yet, the solution? > > thx > > bjorn > -- View this message in context: > http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10271041 > 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/Tapestry-5-and-Template-Reloading-tf3671362.html#a10272785 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: Tapestry 5 and Template Reloading
did you use the target/ directories to configure jetty?the target directory is refreshed only after a new build. make sure jetty points to src/main/webapp/ and not tptarget/webapp...-bjornharvold <[EMAIL PROTECTED]> schrieb: -An: users@tapestry.apache.orgVon: bjornharvold <[EMAIL PROTECTED]>Datum: 01.05.2007 05:37PMThema: Re: Tapestry 5 and Template ReloadingThanks for the emails:I am am using the same case on both my java class and html file (Start.java/ Start.html). My directory structure is the maven 2 default one(src/main/java / src/main/resources). I did watch the screencast and didexactly the same. I actually did install jetty 4 first as that was whatHoward had in his demo, but it didn't like hot deploy and complained when Isaved a java file. The hot deploy worked when I installed jetty 5.1. Thestrange thing about this is that changes don't even occur on the templateeven if I restart!! I edit the template, save it, restart, and changes STILLdon't come up. I have to CLEAN in order for it to update which leaves me tobelieve this is some caching issue on jetty or eclipse. Problem still not solved :-(thxbjornbjornharvold wrote:> > I can't seem to get template reloading to work. Classes reload just fine.> I installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have> the same problem or better yet, the solution?> > thx> bjorn> -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10271041Sent 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]
Re: Tapestry 5 and Template Reloading
Thanks for the emails: I am am using the same case on both my java class and html file (Start.java / Start.html). My directory structure is the maven 2 default one (src/main/java / src/main/resources). I did watch the screencast and did exactly the same. I actually did install jetty 4 first as that was what Howard had in his demo, but it didn't like hot deploy and complained when I saved a java file. The hot deploy worked when I installed jetty 5.1. The strange thing about this is that changes don't even occur on the template even if I restart!! I edit the template, save it, restart, and changes STILL don't come up. I have to CLEAN in order for it to update which leaves me to believe this is some caching issue on jetty or eclipse. Problem still not solved :-( thx bjorn bjornharvold wrote: > > I can't seem to get template reloading to work. Classes reload just fine. > I installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have > the same problem or better yet, the solution? > > thx > bjorn > -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10271041 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: Tapestry 5 and Template Reloading
Caution: the case matter here (one of the few areas in Tapestry). So that should be Start.html to exactly match Start.java. You might find you app broken if deployed on a platform that properly differentiates case, such as Linux or Solaris. On 4/30/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: hi bjorn, it works fine for me... where did you put your templates? do you get any exceptions? Have you tried the tutorial? you can put your templates into the WEB-INF/ folder or into the respective package... eg. my directory structure main/java/com/whatever/pages/Start.java main/resources/com/whatever/pages/start.html g, kris -bjornharvold <[EMAIL PROTECTED]> schrieb: - An: users@tapestry.apache.org Von: bjornharvold <[EMAIL PROTECTED]> Datum: 30.04.2007 09:06PM Thema: Tapestry 5 and Template Reloading I can't seem to get template reloading to work. Classes reload just fine. I installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have the same problem or better yet, the solution? thx bjorn -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10258922 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] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Antwort: Tapestry 5 and Template Reloading
hi bjorn,it works fine for me... where did you put your templates?do you get any exceptions? Have you tried the tutorial?you can put your templates into the WEB-INF/ folder or into the respective package... eg. my directory structure main/java/com/whatever/pages/Start.javamain/resources/com/whatever/pages/start.htmlg,kris-bjornharvold <[EMAIL PROTECTED]> schrieb: -An: users@tapestry.apache.orgVon: bjornharvold <[EMAIL PROTECTED]>Datum: 30.04.2007 09:06PMThema: Tapestry 5 and Template ReloadingI can't seem to get template reloading to work. Classes reload just fine. Iinstalled the latest Eclipse with JettyRunner and jetty 5.1. Anyone have thesame problem or better yet, the solution?thxbjorn-- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10258922Sent 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]
Tapestry 5 and Template Reloading
I can't seem to get template reloading to work. Classes reload just fine. I installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have the same problem or better yet, the solution? thx bjorn -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10258922 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]