You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Josh Kamau <jo...@gmail.com> on 2011/11/16 18:25:15 UTC
Jetty Restarts every time i save
Hi there,
I am learning tapestry using eclipse/jetty/maven. I have followed the
instructions on the tapestry page. However, every time i save on eclipse,
jetty automatically restarts. Is this the ways it is supposed to be? when i
disable 'scanning' in jetty run configurations, my changes are not
reloaded. How can i work without jetty automatically restarting ?
regards.
Josh.
Re: Jetty Restarts every time i save
Posted by Josh Kamau <jo...@gmail.com>.
I start it from 'Run Configurations' screen.
On Wed, Nov 16, 2011 at 9:08 PM, derkoe <
tapestry.christian.koeberl@gmail.com> wrote:
>
> Josh Kamau wrote:
> >
> > Hi there,
> >
> > I am learning tapestry using eclipse/jetty/maven. I have followed the
> > instructions on the tapestry page. However, every time i save on eclipse,
> > jetty automatically restarts. Is this the ways it is supposed to be? when
> > i
> > disable 'scanning' in jetty run configurations, my changes are not
> > reloaded. How can i work without jetty automatically restarting ?
> >
> > regards.
> >
> > Josh.
> >
>
> How do you start Jetty?
>
> The best way is to use RunJettyRun (
> http://code.google.com/p/run-jetty-run/)
> or Eclipse Jetty (http://eclipse-jetty.sourceforge.net/).
>
> I think live reloading doesn't work when starting with "mvn jetty:run"
>
> Chris
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Jetty-Restarts-every-time-i-save-tp4998463p4998584.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: Jetty Restarts every time i save
Posted by Dragan Sahpaski <dr...@gmail.com>.
Hi,
If you are using 5.3. than live class realoading is turned off in
production mode [1].
Please check if SymbolConstants.PRODUCTION_MODE is false in
your contributeApplicationDefaults method in your IOC Module (AppModule by
default).
something like
public static void
contributeApplicationDefaults(MappedConfiguration<String, String>
configuration){
configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
}
[1]
http://tapestry.1045711.n5.nabble.com/Live-reload-in-production-td4313825.html
)
Cheers,
Dragan Sahpaski
On Wed, Nov 16, 2011 at 9:14 PM, Josh Kamau <jo...@gmail.com> wrote:
> Trsvax,
>
> I when i turned off scanning or set interval to a very high number,
> tapestry live classloading didnt work.
>
> Josh.
>
> On Wed, Nov 16, 2011 at 11:10 PM, trsvax <tr...@gmail.com> wrote:
>
> > The latest version of runJettyrun has an option to scan the project for
> > changes and restart. I think the default is 5 seconds. For Tapestry you
> > want
> > to turn it off. I think it's on the Jetty table after you pick run
> > configurations.
> >
> >
> > --
> > View this message in context:
> >
> http://tapestry.1045711.n5.nabble.com/Jetty-Restarts-every-time-i-save-tp4998463p4998970.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: Jetty Restarts every time i save
Posted by Josh Kamau <jo...@gmail.com>.
Trsvax,
I when i turned off scanning or set interval to a very high number,
tapestry live classloading didnt work.
Josh.
On Wed, Nov 16, 2011 at 11:10 PM, trsvax <tr...@gmail.com> wrote:
> The latest version of runJettyrun has an option to scan the project for
> changes and restart. I think the default is 5 seconds. For Tapestry you
> want
> to turn it off. I think it's on the Jetty table after you pick run
> configurations.
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Jetty-Restarts-every-time-i-save-tp4998463p4998970.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: Jetty Restarts every time i save
Posted by trsvax <tr...@gmail.com>.
The latest version of runJettyrun has an option to scan the project for
changes and restart. I think the default is 5 seconds. For Tapestry you want
to turn it off. I think it's on the Jetty table after you pick run
configurations.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Jetty-Restarts-every-time-i-save-tp4998463p4998970.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: Jetty Restarts every time i save
Posted by Josh Kamau <jo...@gmail.com>.
Thanks guys.
I ended up using mvn jetty:run and making neccesary changes to eclipse.
Everything is working fine.
Josh.
On Wed, Nov 16, 2011 at 9:32 PM, Juan Alba <ju...@condortech.com.ar>wrote:
> If you are using maven you can try something like this in the application
> pom:
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>jetty-maven-plugin</artifactId>
> <configuration>
> <reload>manual</reload>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
>
>
> On Wed, Nov 16, 2011 at 3:29 PM, Josh Kamau <jo...@gmail.com> wrote:
>
> > May be its because am using eclipse 3.7(Indigo). I can also remember
> making
> > it work months ago.
> >
> > On Wed, Nov 16, 2011 at 9:26 PM, Michael Gentry <mgentry@masslight.net
> > >wrote:
> >
> > > On Wed, Nov 16, 2011 at 1:08 PM, derkoe
> > > <ta...@gmail.com> wrote:
> > > > I think live reloading doesn't work when starting with "mvn
> jetty:run"
> > >
> > > That's almost always how I start Jetty (with T5) and it works fine,
> > > including live class-reloading.
> > >
> > > mrg
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
>
Re: Jetty Restarts every time i save
Posted by Juan Alba <ju...@condortech.com.ar>.
If you are using maven you can try something like this in the application
pom:
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<reload>manual</reload>
</configuration>
</plugin>
</plugins>
</build>
On Wed, Nov 16, 2011 at 3:29 PM, Josh Kamau <jo...@gmail.com> wrote:
> May be its because am using eclipse 3.7(Indigo). I can also remember making
> it work months ago.
>
> On Wed, Nov 16, 2011 at 9:26 PM, Michael Gentry <mgentry@masslight.net
> >wrote:
>
> > On Wed, Nov 16, 2011 at 1:08 PM, derkoe
> > <ta...@gmail.com> wrote:
> > > I think live reloading doesn't work when starting with "mvn jetty:run"
> >
> > That's almost always how I start Jetty (with T5) and it works fine,
> > including live class-reloading.
> >
> > mrg
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
Re: Jetty Restarts every time i save
Posted by Josh Kamau <jo...@gmail.com>.
May be its because am using eclipse 3.7(Indigo). I can also remember making
it work months ago.
On Wed, Nov 16, 2011 at 9:26 PM, Michael Gentry <mg...@masslight.net>wrote:
> On Wed, Nov 16, 2011 at 1:08 PM, derkoe
> <ta...@gmail.com> wrote:
> > I think live reloading doesn't work when starting with "mvn jetty:run"
>
> That's almost always how I start Jetty (with T5) and it works fine,
> including live class-reloading.
>
> mrg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Jetty Restarts every time i save
Posted by Michael Gentry <mg...@masslight.net>.
On Wed, Nov 16, 2011 at 1:08 PM, derkoe
<ta...@gmail.com> wrote:
> I think live reloading doesn't work when starting with "mvn jetty:run"
That's almost always how I start Jetty (with T5) and it works fine,
including live class-reloading.
mrg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Jetty Restarts every time i save
Posted by derkoe <ta...@gmail.com>.
Josh Kamau wrote:
>
> Hi there,
>
> I am learning tapestry using eclipse/jetty/maven. I have followed the
> instructions on the tapestry page. However, every time i save on eclipse,
> jetty automatically restarts. Is this the ways it is supposed to be? when
> i
> disable 'scanning' in jetty run configurations, my changes are not
> reloaded. How can i work without jetty automatically restarting ?
>
> regards.
>
> Josh.
>
How do you start Jetty?
The best way is to use RunJettyRun (http://code.google.com/p/run-jetty-run/)
or Eclipse Jetty (http://eclipse-jetty.sourceforge.net/).
I think live reloading doesn't work when starting with "mvn jetty:run"
Chris
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Jetty-Restarts-every-time-i-save-tp4998463p4998584.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