You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by fante <ca...@gmail.com> on 2011/07/14 15:44:36 UTC
Automatic loading of code changes not working!
Hi all,
I cant get Tapestry automatic code replacing to work without restarting the
entire webapp, which is slow and also renders a permgen, destroys sessions
etc...
Is anybody else experience this ?
Setting that may be of importance:
Im using Tapestry 5.2.5, Eclipse helios and Run-Jetty-Run 1.2.2.1.
(I have also tried to downgrade to 5.2.4 without any success)
In my AppModule I have productionMode=false
Under VM-Arguments for run-jetty-run I have:
-Dorg.mortbay.jetty.webapp.parentLoaderPriority=true
Any help would be much appreciated!
Fante
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-changes-not-working-tp4586675p4586675.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Automatic loading of code changes not working!
Posted by fante <ca...@gmail.com>.
Kalle - you are the man!
That solved my problems.
Thanks so much for that
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-changes-not-working-tp4586675p4587894.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Automatic loading of code changes not working!
Posted by Kalle Korhonen <ka...@gmail.com>.
Disable scanner (that's the container feature to reload web app
context as something changes). You could also configure to load the
templates from src without copying (that's in Eclipse build setttings,
src/main/resources), see
http://tynamo.org/Developing+with+Tomcat+and+Eclipse for more info
(copying resources part applies to Jetty too).
Kalle
On Thu, Jul 14, 2011 at 11:55 AM, fante <ca...@gmail.com> wrote:
> Hi Thiago,
>
> Yes I am using maven. In the shell I run mvn eclipse:eclipse,
> Then I import the project in eclipse as "existing maven project".
> In eclipe I check "build automatically" under "Project".
>
> In run Configuration I have the following options :
> WebApp dir target/myWebApp
> Scan Internal Seconds : 5
> Enable Scanner : Check
> ParentLoadPriority: Check
>
> Is there anything else that could be important here?
>
> Thanks a lot for your help!
> fante
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-changes-not-working-tp4586675p4587805.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Automatic loading of code changes not working!
Posted by fante <ca...@gmail.com>.
Good point Thiago,
Thanks a lot for fast and great help.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-changes-not-working-tp4586675p4587964.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Automatic loading of code changes not working!
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 14 Jul 2011 16:33:19 -0300, fante <ca...@gmail.com> wrote:
> Hi Thiago,
> the advice from Kalle actually solved my problem, but out of curiosity:
> I am using the m2Eclipse plugin:
So why are you using eclipse:eclipse in the command-line when m2eclipse
sets up your project automatically???
> disabling automatic reloading of contexts = disable scanner ?
Yes. :)
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Automatic loading of code changes not working!
Posted by fante <ca...@gmail.com>.
Hi Thiago,
the advice from Kalle actually solved my problem, but out of curiosity:
I am using the m2Eclipse plugin:
disabling automatic reloading of contexts = disable scanner ?
Best Regards!
Fante
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-changes-not-working-tp4586675p4587904.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Automatic loading of code changes not working!
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 14 Jul 2011 15:55:28 -0300, fante <ca...@gmail.com> wrote:
> Hi Thiago,
> Yes I am using maven.In the shell I run mvn eclipse:eclipse,
Why don't you use m2eclipse? Notice that m2eclipse configures the project
so it doesn't copy resource automatically. You need to change that in the
Eclipse project configuration properties if you haven't yet.
> Then I import the project in eclipse as "existing maven project".
> In eclipe I check "build automatically" under "Project".
>
> In run Configuration I have the following options :
> WebApp dir target/myWebApp
> Scan Internal Seconds : 5
> Enable Scanner : Check
> ParentLoadPriority: Check
Try disabling automatic reloading of contexts. This isn't needed for
Tapestry's live class reloading at all. And when you debug your webapp, if
Eclipse says you've made a change that cannot be hot-deployed, click
"continue".
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Automatic loading of code changes not working!
Posted by fante <ca...@gmail.com>.
Hi Thiago,
Yes I am using maven. In the shell I run mvn eclipse:eclipse,
Then I import the project in eclipse as "existing maven project".
In eclipe I check "build automatically" under "Project".
In run Configuration I have the following options :
WebApp dir target/myWebApp
Scan Internal Seconds : 5
Enable Scanner : Check
ParentLoadPriority: Check
Is there anything else that could be important here?
Thanks a lot for your help!
fante
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-changes-not-working-tp4586675p4587805.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Automatic loading of code changes not working!
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 14 Jul 2011 10:44:36 -0300, fante <ca...@gmail.com> wrote:
> Hi all,
Hi!
> I cant get Tapestry automatic code replacing to work without restarting
> the entire webapp, which is slow and also renders a permgen, destroys
> sessions etc...
> Is anybody else experience this ?
I haven't. Are you using Maven? Is your project configured to build
automatically? How is your project set up?
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org