I haven't tried it with any others.
On 20/11/2008, at 10:29 PM, Jan Vissers wrote:
Sorry to say but the whole 'class reloading' feature to me seems to be
specifically geared towards Jetty and tomcat. I haven't seen any other
(servlet) containers that can use this Tapestry feature. Have you?
-J.
I use the Tomcat that's in JBoss, so it might be a little different,
but all it needs is reloadable="true" in the Context element of
context.xml. eg.
<Context cookies="true" crossContext="true" reloadable="true">
and the .tml files together with the .classes in the war's WEB-INF//
classes/. eg.
WEB-INF/classes/com/acme/myapp/pages/Index.tml
WEB-INF/classes/com/acme/myapp/pages/Index.class
Might be worth a try in vanilla Tomcat.
On 20/11/2008, at 9:59 PM, Hugo Palma wrote:
I'm using Tomcat for development and both template and class live
reloading
work just fine.
Although, i'm using the maven tomcat plugin to run the app in my
laptop with
the "mvn tomcat:run" command. I haven't tried it with my local
instalation
of tomcat. Can you try using the maven tomcat plugin and see if it
works for
you ?
On Thu, Nov 20, 2008 at 4:27 AM, akochnev <[EMAIL PROTECTED]>
wrote:
I'm running into some trouble w/ the live class reloading feature
(the
template reloading works fine), tested both on Tomcat 6 ,
Glassfish 3
Prelude, and Glassfish V2 (all three servers support exploded war
deployment). If I re-deploy the application in these servers, then
I get
the
new version of the class. Everything works if I'm running it in
Jetty (mvn
jetty:run).
Here's what I do ( I use NetBeans to go through these steps):
* Create a new project based on a quickstart archetype
* Changed the <archiveClasses> option in the war goal to false so
that
re-deploying to the app server doesn't fail with the "manifest not
found
problem"
* I run the app. I can successfully reload the Index page and it
works OK.
Now, for testing the live reloading. Using the war:exploded target,
I can
have the app running on the server, and without re-deploying the
app in the
server, I can update the .tml files and the class files inside of
the
target/app-name directory. However, T5 doesn't seem to pick up the
class
changes neither in Tomcat nor in Glassfish. Interestingly enough,
after I
run "mvn compile war:exploded", the next time I refresh the page, I
see
some
T5 output on the console indicating that the class is being
transformed.
However, the output of the Index.class is the same as with the old
version
of the class.
Any ideas about why this might be so ? Is anyone else developing on
something other than Jetty to confirm that the live class reloading
works
for them ?
--
View this message in context:
http://www.nabble.com/Live-class-reloading-problems-tp20594857p20594857.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]