Re: Hot deployment / code swapping
See Thread at: http://www.techienuggets.com/Detail?tx=51475 Posted on behalf of a User I also have the same problem. Even I added getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND); to WebApplication class. I am using wicket 1.3.4. Before Wicket come to Apache I never have this problem before. In Response To: Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! -- ... http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19410295.html Sent from the Wicket - User mailing list archive at - To unsubscribe, e-mail: users-no...@spam.com For additional commands, e-mail: users-no...@spam.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Hot deployment / code swapping
wicket has never redeployed changes made to class files. this is accomplished by the jvm when the app is ran in debug mode. changes to .html and other resources such as .css are reflected if the application is launched in development mode. -igor On Thu, Dec 11, 2008 at 11:03 PM, s...@twinix.com wrote: See Thread at: http://www.techienuggets.com/Detail?tx=51475 Posted on behalf of a User I also have the same problem. Even I added getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND); to WebApplication class. I am using wicket 1.3.4. Before Wicket come to Apache I never have this problem before. In Response To: Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! -- ... http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19410295.html Sent from the Wicket - User mailing list archive at - To unsubscribe, e-mail: users-no...@spam.com For additional commands, e-mail: users-no...@spam.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Hot deployment / code swapping
Martijn Dashorst wrote: Wicket can't magically detect changes that are not on the classpath. Well, you never what what Frameworks might be able to do below the hood. And with all the magical things wicket can do, I wouldn't have been too surprised to find a config param pointing to my sources folder so that it could be scanned at runtime... Even more when there is something like IResourceSettings#setResourcePollFrequency which def helped lead me into the wrong direction here - but I guess this is just for polling the files within the target location then... Thanks. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19432378.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Hi, if your app is configured to run in developpment mode, hot deployment should work as expected (at least for html templates). afaik, it doesn't apply for changes in classes files. You have to redeploy to get the changes in class files. pixologe a écrit : Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Thanks for your reply. The app is running in development mode and I did not change anything in the quickstart project, however there's no re-deployment at all. :-/ Other wicket users out there, does this work for you? If yes: HTML only or classes too? Just wondering what exactly is the way it should be, and whether I am the only one having problems... Pills wrote: Hi, if your app is configured to run in developpment mode, hot deployment should work as expected (at least for html templates). afaik, it doesn't apply for changes in classes files. You have to redeploy to get the changes in class files. pixologe a écrit : Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19411794.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, in Application take a look at getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND); which should at least work for resource files (like html-templates or property-files). Witold Am Wed, 10 Sep 2008 03:57:22 -0700 (PDT) schrieb pixologe [EMAIL PROTECTED]: Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! - -- Mit freundlichen Gren Witold Czaplewski Projektmanagement Softwareentwicklung CTS GmbH creative technology solutions Otto-Hahn-Str. 7 ***Ab dem 01.10.2008: Gut Friedrichshof*** D - 50997 K__ln Fon: +49 (0)2236 - 96926-3 Fax: +49 (0)2236 - 96926-1 http://www.cts-media.eu http://www.cts-hosting.eu UST-Id. DE218137586 HRB 36066 | Registergericht K__ln Gesch__ftsf__hrer: Stefan Godulla http://www.xing.com/profile/Witold_Czaplewski Kennen Sie schon den serverseitigen Spamschutz von cts media? Erhalten Sie bis zu __ber 90% weniger Spam und sparen Sie wertvolle Zeit. Keine Konfiguration, kein Aufwand f__r Sie ___ einfach ungest__rt arbeiten. F__r Preise, Buchung, R__ckfragen oder weitere Informationen erreichen Sie uns jederzeit unter [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjHtK0ACgkQ4gvv3qOY2ph+8gCgiNp6HOge8C4BGTYH0H4d9IT7 QeEAoLw1Hs29KZHST4UGl8NPQMHywemA =bdao -END PGP SIGNATURE-
Re: Hot deployment / code swapping
The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. Martijn On Wed, Sep 10, 2008 at 1:44 PM, pixologe [EMAIL PROTECTED] wrote: Thanks for your reply. The app is running in development mode and I did not change anything in the quickstart project, however there's no re-deployment at all. :-/ Other wicket users out there, does this work for you? If yes: HTML only or classes too? Just wondering what exactly is the way it should be, and whether I am the only one having problems... Pills wrote: Hi, if your app is configured to run in developpment mode, hot deployment should work as expected (at least for html templates). afaik, it doesn't apply for changes in classes files. You have to redeploy to get the changes in class files. pixologe a écrit : Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19411794.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Hi, I use eclipse as a development environment and eclipse supports in the debug mode a fairly good hotreplace of changed java-code (not always but often enough :-)). Kind regards Florian Sperber pixologe schrieb: Thanks for your reply. The app is running in development mode and I did not change anything in the quickstart project, however there's no re-deployment at all. :-/ Other wicket users out there, does this work for you? If yes: HTML only or classes too? Just wondering what exactly is the way it should be, and whether I am the only one having problems... Pills wrote: Hi, if your app is configured to run in developpment mode, hot deployment should work as expected (at least for html templates). afaik, it doesn't apply for changes in classes files. You have to redeploy to get the changes in class files. pixologe a écrit : Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! - 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: Hot deployment / code swapping
Thanks - I saw this one before, it is set to 1 second by default... but has no effect for me ... Witold Czaplewski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, in Application take a look at getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND); which should at least work for resource files (like html-templates or property-files). Witold Am Wed, 10 Sep 2008 03:57:22 -0700 (PDT) schrieb pixologe [EMAIL PROTECTED]: Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! - -- Mit freundlichen Gren Witold Czaplewski Projektmanagement Softwareentwicklung CTS GmbH creative technology solutions Otto-Hahn-Str. 7 ***Ab dem 01.10.2008: Gut Friedrichshof*** D - 50997 K__ln Fon: +49 (0)2236 - 96926-3 Fax: +49 (0)2236 - 96926-1 http://www.cts-media.eu http://www.cts-hosting.eu UST-Id. DE218137586 HRB 36066 | Registergericht K__ln Gesch__ftsf__hrer: Stefan Godulla http://www.xing.com/profile/Witold_Czaplewski Kennen Sie schon den serverseitigen Spamschutz von cts media? Erhalten Sie bis zu __ber 90% weniger Spam und sparen Sie wertvolle Zeit. Keine Konfiguration, kein Aufwand f__r Sie ___ einfach ungest__rt arbeiten. F__r Preise, Buchung, R__ckfragen oder weitere Informationen erreichen Sie uns jederzeit unter [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjHtK0ACgkQ4gvv3qOY2ph+8gCgiNp6HOge8C4BGTYH0H4d9IT7 QeEAoLw1Hs29KZHST4UGl8NPQMHywemA =bdao -END PGP SIGNATURE- -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19412123.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Yeah I know - but there are several reasons why I do not like working with it. Hot swapping is not enough to make me change ;-) Netbeans is capable of replacing java code, too - you just have to tell it when to do this... :) Florian Sperber wrote: Hi, I use eclipse as a development environment and eclipse supports in the debug mode a fairly good hotreplace of changed java-code (not always but often enough :-)). Kind regards Florian Sperber pixologe schrieb: Thanks for your reply. The app is running in development mode and I did not change anything in the quickstart project, however there's no re-deployment at all. :-/ Other wicket users out there, does this work for you? If yes: HTML only or classes too? Just wondering what exactly is the way it should be, and whether I am the only one having problems... Pills wrote: Hi, if your app is configured to run in developpment mode, hot deployment should work as expected (at least for html templates). afaik, it doesn't apply for changes in classes files. You have to redeploy to get the changes in class files. pixologe a écrit : Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! - 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/Hot-deployment---code-swapping-tp19410295p19412169.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
pixologe schrieb: Thanks - I saw this one before, it is set to 1 second by default... but has no effect for me ... did anyone mention javarebel? http://zeroturnaround.com this one aims to solve this exact problem. i use it, and i´m quite happy with it. cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
No, there isn't even an init method in the untouched quickstart project :) According to Martijn's message, there has some jetty config to be done... Currently having a look Thanks so far... Witold Czaplewski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 it works for me. Did you call configure() in your init method? Then make sure, that you set the resource poll frequency after it. In deployment mode configure sets it to null. Am Wed, 10 Sep 2008 05:05:00 -0700 (PDT) schrieb pixologe [EMAIL PROTECTED]: Thanks - I saw this one before, it is set to 1 second by default... but has no effect for me ... -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjHvx0ACgkQ4gvv3qOY2pjbpwCghQ5sPjljPwX18gkLw55a13Rj K98An2xFVhacFyXu21BMQrnH2zF5Yb2b =3nOL -END PGP SIGNATURE- -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19412919.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
In this thread, no. However, free software (and - if possible - genuine solutions) is preferred of course. I might consider using JavaRebel (since there is obviously no out-of-the-box-support as have thought), however some time would have to be spent first with evaluation etc... In my present situation, the time is better spent with restarting jetty 100times a day ;-) Uwe Schäfer wrote: pixologe schrieb: Thanks - I saw this one before, it is set to 1 second by default... but has no effect for me ... did anyone mention javarebel? http://zeroturnaround.com this one aims to solve this exact problem. i use it, and i´m quite happy with it. cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413276.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Regarding the embedded jetty, do you know if it is possible to point it to an external WAR so it will be as if deployed as well? I looked into Jetty's document but didn't find. On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Hot deployment / code swapping
I am using the maven jetty plugin in development and it works fine for me. I don't see why you shouldn't use it as Martijn pointed out? If there's a need, I can post the required configuration here. I am working under WinXP, all my stuff is redeployed after changes have been made when working with `cmd`, only if I am working with cygwin, it doesn't recognize changes made to files other than .java Roman Eyal Golan wrote: Regarding the embedded jetty, do you know if it is possible to point it to an external WAR so it will be as if deployed as well? I looked into Jetty's document but didn't find. On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Martijn Dashorst wrote: The maven jetty plugin is not meant for development, but for quick demos. Well, at least to me, this was not obvious. Good to know. However, also after starting the quickstart project within the IDE, there is not hot deployment of classes or HTML files. Same behavior. Netbeans replaces a class if I tell him to do so, but no chance for HTML and properties. So is this behavior intended or am I just too stupid to get it? -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19414150.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Because of discussions such as this. I'd like folks to actually use an IDE and the quickstart as it was intended. We made the quickstart so that this type of questions don't get asked—saves time, energy and frustrations on both ends. mvn jetty:run is nice to quickly test a web project, but not for development. As you mentioned redeployment— with the embedded jetty in a debugger redeployment is often not necessary when you use hotswap. If you haven't used that, you're missing out. With JavaRebel things are even brighter—no redeployment or restarting of servers (but I haven't toyed with their latest releases) Martijn On Wed, Sep 10, 2008 at 3:53 PM, Roman Zechner [EMAIL PROTECTED] wrote: I am using the maven jetty plugin in development and it works fine for me. I don't see why you shouldn't use it as Martijn pointed out? If there's a need, I can post the required configuration here. I am working under WinXP, all my stuff is redeployed after changes have been made when working with `cmd`, only if I am working with cygwin, it doesn't recognize changes made to files other than .java Roman Eyal Golan wrote: Regarding the embedded jetty, do you know if it is possible to point it to an external WAR so it will be as if deployed as well? I looked into Jetty's document but didn't find. On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Then you don't have netbeans configured to copy the html over to the classpath, like I told in my first reply. Martijn On Wed, Sep 10, 2008 at 3:56 PM, pixologe [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: The maven jetty plugin is not meant for development, but for quick demos. Well, at least to me, this was not obvious. Good to know. However, also after starting the quickstart project within the IDE, there is not hot deployment of classes or HTML files. Same behavior. Netbeans replaces a class if I tell him to do so, but no chance for HTML and properties. So is this behavior intended or am I just too stupid to get it? -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19414150.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Well, that was sort of the initial question... Does wicket itself or the quickstart project provide any more hot deployment than my IDE's? (Which is, in case of netbeans, replacing classes in debug mode)... Still, I am not sure what the answer is... Martijn Dashorst wrote: Because of discussions such as this. I'd like folks to actually use an IDE and the quickstart as it was intended. We made the quickstart so that this type of questions don't get asked—saves time, energy and frustrations on both ends. mvn jetty:run is nice to quickly test a web project, but not for development. As you mentioned redeployment— with the embedded jetty in a debugger redeployment is often not necessary when you use hotswap. If you haven't used that, you're missing out. With JavaRebel things are even brighter—no redeployment or restarting of servers (but I haven't toyed with their latest releases) Martijn On Wed, Sep 10, 2008 at 3:53 PM, Roman Zechner [EMAIL PROTECTED] wrote: I am using the maven jetty plugin in development and it works fine for me. I don't see why you shouldn't use it as Martijn pointed out? If there's a need, I can post the required configuration here. I am working under WinXP, all my stuff is redeployed after changes have been made when working with `cmd`, only if I am working with cygwin, it doesn't recognize changes made to files other than .java Roman Eyal Golan wrote: Regarding the embedded jetty, do you know if it is possible to point it to an external WAR so it will be as if deployed as well? I looked into Jetty's document but didn't find. On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19414575.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
You mean the one in which you say one shouldn't use mvn jetty plugin for development? Hmmm... it says The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Sorry, maybe I am just to stupid to get what you are trying to tell me... But I guess this *does* mean that there is no swapping apart from the one my IDE offers and thus indirectly answers my question. Thanks. Sorry if this conversation is/was frustrating to you. Martijn Dashorst wrote: s/first/second/ On Wed, Sep 10, 2008 at 4:12 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Then you don't have netbeans configured to copy the html over to the classpath, like I told in my first reply. Martijn On Wed, Sep 10, 2008 at 3:56 PM, pixologe [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: The maven jetty plugin is not meant for development, but for quick demos. Well, at least to me, this was not obvious. Good to know. However, also after starting the quickstart project within the IDE, there is not hot deployment of classes or HTML files. Same behavior. Netbeans replaces a class if I tell him to do so, but no chance for HTML and properties. So is this behavior intended or am I just too stupid to get it? -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19414150.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19414599.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
I don't know about the time efforts in using your suggested way, but by using the maven jetty plugin you only have to configure the project once, so each new developer joining the project doesn't have to make any configuration on its's IDE. In that way you always provide kind of a quickstart for your own project :-) But maybe I should give it a try, I can imagine that development will be faster using hotswap. Roman Martijn Dashorst wrote: Because of discussions such as this. I'd like folks to actually use an IDE and the quickstart as it was intended. We made the quickstart so that this type of questions don't get asked—saves time, energy and frustrations on both ends. mvn jetty:run is nice to quickly test a web project, but not for development. As you mentioned redeployment— with the embedded jetty in a debugger redeployment is often not necessary when you use hotswap. If you haven't used that, you're missing out. With JavaRebel things are even brighter—no redeployment or restarting of servers (but I haven't toyed with their latest releases) Martijn On Wed, Sep 10, 2008 at 3:53 PM, Roman Zechner [EMAIL PROTECTED] wrote: I am using the maven jetty plugin in development and it works fine for me. I don't see why you shouldn't use it as Martijn pointed out? If there's a need, I can post the required configuration here. I am working under WinXP, all my stuff is redeployed after changes have been made when working with `cmd`, only if I am working with cygwin, it doesn't recognize changes made to files other than .java Roman Eyal Golan wrote: Regarding the embedded jetty, do you know if it is possible to point it to an external WAR so it will be as if deployed as well? I looked into Jetty's document but didn't find. On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Hmm sorry, I had it typed in but apparently didn't send it. You have to tell Maven, Jetty, Your IDE that it needs to copy the html files from the src directory to the classpath. Wicket Quickstart does this on each compile because of the resources section. Apparently the jetty plugin doesn't pick this up, and neither does netbeans. Wicket can't magically detect changes that are not on the classpath. If your setup doesn't copy those resources, Wicket won't find it. On how to configure netbeans or maven jetty plugin, see their forums. Martijn On Wed, Sep 10, 2008 at 4:36 PM, pixologe [EMAIL PROTECTED] wrote: You mean the one in which you say one shouldn't use mvn jetty plugin for development? Hmmm... it says The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Sorry, maybe I am just to stupid to get what you are trying to tell me... But I guess this *does* mean that there is no swapping apart from the one my IDE offers and thus indirectly answers my question. Thanks. Sorry if this conversation is/was frustrating to you. Martijn Dashorst wrote: s/first/second/ On Wed, Sep 10, 2008 at 4:12 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Then you don't have netbeans configured to copy the html over to the classpath, like I told in my first reply. Martijn On Wed, Sep 10, 2008 at 3:56 PM, pixologe [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: The maven jetty plugin is not meant for development, but for quick demos. Well, at least to me, this was not obvious. Good to know. However, also after starting the quickstart project within the IDE, there is not hot deployment of classes or HTML files. Same behavior. Netbeans replaces a class if I tell him to do so, but no chance for HTML and properties. So is this behavior intended or am I just too stupid to get it? -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19414150.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19414599.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
I don't have to configure anything. run the archetype command, import project into eclipse, right click on Start class select Debug as Java application and I'm done. I don't know what configuration you are talking about, but I don't have to meddle with external jetty configurations, making sure that the resources are copied over etc, or redeploy on each compile. Martijn On Wed, Sep 10, 2008 at 4:38 PM, Roman Zechner [EMAIL PROTECTED] wrote: I don't know about the time efforts in using your suggested way, but by using the maven jetty plugin you only have to configure the project once, so each new developer joining the project doesn't have to make any configuration on its's IDE. In that way you always provide kind of a quickstart for your own project :-) But maybe I should give it a try, I can imagine that development will be faster using hotswap. Roman Martijn Dashorst wrote: Because of discussions such as this. I'd like folks to actually use an IDE and the quickstart as it was intended. We made the quickstart so that this type of questions don't get asked—saves time, energy and frustrations on both ends. mvn jetty:run is nice to quickly test a web project, but not for development. As you mentioned redeployment— with the embedded jetty in a debugger redeployment is often not necessary when you use hotswap. If you haven't used that, you're missing out. With JavaRebel things are even brighter—no redeployment or restarting of servers (but I haven't toyed with their latest releases) Martijn On Wed, Sep 10, 2008 at 3:53 PM, Roman Zechner [EMAIL PROTECTED] wrote: I am using the maven jetty plugin in development and it works fine for me. I don't see why you shouldn't use it as Martijn pointed out? If there's a need, I can post the required configuration here. I am working under WinXP, all my stuff is redeployed after changes have been made when working with `cmd`, only if I am working with cygwin, it doesn't recognize changes made to files other than .java Roman Eyal Golan wrote: Regarding the embedded jetty, do you know if it is possible to point it to an external WAR so it will be as if deployed as well? I looked into Jetty's document but didn't find. On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket
Re: Hot deployment / code swapping
wicket does not provide anything in the way of deployment. what it does in dev mode is monitor any changes to html/properties files and when they are changed it evicts them from cache so next time you reload the page you see the changes. obviously wicket does not know where your source file live, so it can only monitor files in the classes dir by default. usually your ide copies html/properties to the right place automatically when you change them so it is nice and transparent and magical, but that involves using an ide... -igor On Wed, Sep 10, 2008 at 3:57 AM, pixologe [EMAIL PROTECTED] wrote: Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19410295.html Sent from the Wicket - 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: Hot deployment / code swapping
Sorry, I misinterpreted your previous post. I will check the bonus chapters of WiA. Roman Martijn Dashorst wrote: I don't have to configure anything. run the archetype command, import project into eclipse, right click on Start class select Debug as Java application and I'm done. I don't know what configuration you are talking about, but I don't have to meddle with external jetty configurations, making sure that the resources are copied over etc, or redeploy on each compile. Martijn On Wed, Sep 10, 2008 at 4:38 PM, Roman Zechner [EMAIL PROTECTED] wrote: I don't know about the time efforts in using your suggested way, but by using the maven jetty plugin you only have to configure the project once, so each new developer joining the project doesn't have to make any configuration on its's IDE. In that way you always provide kind of a quickstart for your own project :-) But maybe I should give it a try, I can imagine that development will be faster using hotswap. Roman Martijn Dashorst wrote: Because of discussions such as this. I'd like folks to actually use an IDE and the quickstart as it was intended. We made the quickstart so that this type of questions don't get asked—saves time, energy and frustrations on both ends. mvn jetty:run is nice to quickly test a web project, but not for development. As you mentioned redeployment— with the embedded jetty in a debugger redeployment is often not necessary when you use hotswap. If you haven't used that, you're missing out. With JavaRebel things are even brighter—no redeployment or restarting of servers (but I haven't toyed with their latest releases) Martijn On Wed, Sep 10, 2008 at 3:53 PM, Roman Zechner [EMAIL PROTECTED] wrote: I am using the maven jetty plugin in development and it works fine for me. I don't see why you shouldn't use it as Martijn pointed out? If there's a need, I can post the required configuration here. I am working under WinXP, all my stuff is redeployed after changes have been made when working with `cmd`, only if I am working with cygwin, it doesn't recognize changes made to files other than .java Roman Eyal Golan wrote: Regarding the embedded jetty, do you know if it is possible to point it to an external WAR so it will be as if deployed as well? I looked into Jetty's document but didn't find. On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED]
Re: Hot deployment / code swapping
Cool... thanks a lot. I will check this out tomorrow! Thanks for sharing this piece have a nice evening. Roman Zechner | Liland wrote: don't worry, we had our own problems in the beginning to get this stuff working. here we go - hope I haven't forgotten anything. you need to modify pom.xml jetty-env.xml set MAVEN_OPTS pom.xml: properties jetty.version6.1.4/jetty.version /properties dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version${jetty.version}/version scopeprovided/scope /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-util/artifactId version${jetty.version}/version scopeprovided/scope /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-management/artifactId version${jetty.version}/version scopeprovided/scope /dependency !-- jdbc drivers (needed for execution in jetty) -- dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.0.8/version scoperuntime/scope /dependency plugins plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId configuration scanIntervalSeconds7/scanIntervalSeconds jettyEnvXml${basedir}/etc/jetty-env.xml/jettyEnvXml /configuration /plugin jetty-env.xml: ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext New id=jdbc/eventmanager class=org.mortbay.jetty.plus.naming.Resource Argjdbc/myDB/Arg Arg New class=org.apache.commons.dbcp.BasicDataSource Set name=DriverClassNamecom.mysql.jdbc.Driver/Set Set name=Url jdbc:mysql://localhost:3306/myDB?autoReconnect=true /Set Set name=Usernamemyusr/Set Set name=Passwordmypwd/Set /New /Arg /New /Configure set env variable MAVEN_OPTS to get debugging port -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n Hope that helps! Cheers, Roman pixologe wrote: Hi Roman, even though my current main project is not under maven control, i'd be happy to have a look at your config, if you are willing to share it. Obviously there are quite some things not 100% clear to me yet... both with and without maven and maven jetty plugin :-/ Cheers+thanks Roman Zechner | Liland wrote: I am using the maven jetty plugin in development and it works fine for me. I don't see why you shouldn't use it as Martijn pointed out? If there's a need, I can post the required configuration here. I am working under WinXP, all my stuff is redeployed after changes have been made when working with `cmd`, only if I am working with cygwin, it doesn't recognize changes made to files other than .java Roman Eyal Golan wrote: Regarding the embedded jetty, do you know if it is possible to point it to an external WAR so it will be as if deployed as well? I looked into Jetty's document but didn't find. On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: The maven jetty plugin is not meant for development, but for quick demos. Stop trying to use the jetty plugin for something it is not intended for. The Wicket quickstart project provides a very well functioning embedded jetty server, which runs like a charm in the Eclipse debugger (and IDEA and Netbeans debugger) providing everything Java offers without *any* additional configuration. Setting up your Wicket project is described in detail in Wicket in Action's bonus chapter, available from the Manning website (http://manning.com/dashorst) Martijn On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote: Hi Martijn, So this means that the wicket quickstart project does NOT do it out of the box? Which obviously goes for non-maven-projects too then? That's good to know, I obviously have been terribly misinformed then... Even though it will obviously take me some more time to figure out how this can be achieved, all the more in a project that does not use maven - if anybody knows a good site regarding to this, i'd be happy to see a link :) Thanks a lot Martijn Dashorst wrote: The maven jetty plugin needs to be configured separately. See its documentation regarding hot deployment. -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Hot deployment / code swapping
Now I am using the embedded jetty server as suggested in the bonus chapters of Wicket in Action. But Spring complains that it is missing a bean dataSource, so I set the jetty deployment descriptor with WebAppContext bb = new WebAppContext(); bb.setDefaultsDescriptor(etc/jetty-env.xml); But it's still not working - any ideas? Roman Igor Vaynberg wrote: wicket does not provide anything in the way of deployment. what it does in dev mode is monitor any changes to html/properties files and when they are changed it evicts them from cache so next time you reload the page you see the changes. obviously wicket does not know where your source file live, so it can only monitor files in the classes dir by default. usually your ide copies html/properties to the right place automatically when you change them so it is nice and transparent and magical, but that involves using an ide... -igor On Wed, Sep 10, 2008 at 3:57 AM, pixologe [EMAIL PROTECTED] wrote: Hi everybody, I have read in some older messages of this list that wicket by default takes care of re-deploying changed classes and HTML files, does that still apply? It does not work for me, not even with a fresh quickstart project. Neither HTML files nor Java classes are reloaded when they are changed. Are there any issues with this under certain circumstances (e.g. having vista ;-)? What I just did is this: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject cd myproject mvn package mvn jetty:run [changed HomePage.class and HomePage.html] The changes do not have any effect until I restart jetty. Any hints on this issue are highly appreciated, thanks a lot in advance! -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19410295.html Sent from the Wicket - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]