You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John Hendrikx <hj...@xs4all.nl> on 2005/06/13 13:45:04 UTC

Updating tapestry templates without redeploying in Eclipse JBoss IDE

I'm new to Tapestry, and I'm currently trying to evaluate it for a 
project.  I've managed to get the examples to work, and I've ran through 
a few tutorials.

The problem I'm having is that I need to repackage and then redeploy a 
.war file to JBoss for each and every modification I make to the 
templates.  What I want however is that changes to the files are 
detected automatically and a simple browser refresh shows the new 
results.  It doesn't have to work with a .war file (only final 
deployment will use a .war file, during development I'm more interested 
in convience).

One of the tutorials mentions that it is possible to have Tapestry not 
cache it's templates by specifying a vm parameter:

-Dorg.apache.tapestry.disable-caching=true

However, specifying this for my JBoss launch in Eclipse doesn't have an 
effect.  I assume this is because the entire context is stored in the 
.war file, which of course won't change if I edit a file in Eclipse.

If I use only Tomcat, I can get this to work, however I would like to be 
able to do this with the JBoss + Tomcat combination. 

So far, I checked the last 6 months of this mailinglist, googled for 
several hours and read various boards, but I'm no closer to a solution.  
I suspect it must be possible to put somekind of .xml file in the JBoss 
deploy folder, and have this .xml file point directly to my Eclipse 
workspace (just like you can do with Tomcat), but so far I've been 
unable to find anything about this.  Does anyone have any ideas or tips 
I might look into to get this to work?

--John

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Updating tapestry templates without redeploying in Eclipse JBoss IDE

Posted by Bryan Lewis <br...@maine.rr.com>.
Try this old thread:

http://marc.theaimsgroup.com/?l=tapestry-user&m=107538510116911&w=2


----- Original Message ----- 
From: "John Hendrikx" <hj...@xs4all.nl>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Monday, June 13, 2005 7:45 AM
Subject: Updating tapestry templates without redeploying in Eclipse JBoss
IDE


> I'm new to Tapestry, and I'm currently trying to evaluate it for a
> project.  I've managed to get the examples to work, and I've ran through
> a few tutorials.
>
> The problem I'm having is that I need to repackage and then redeploy a
> .war file to JBoss for each and every modification I make to the
> templates.  What I want however is that changes to the files are
> detected automatically and a simple browser refresh shows the new
> results.  It doesn't have to work with a .war file (only final
> deployment will use a .war file, during development I'm more interested
> in convience).
>
> One of the tutorials mentions that it is possible to have Tapestry not
> cache it's templates by specifying a vm parameter:
>
> -Dorg.apache.tapestry.disable-caching=true
>
> However, specifying this for my JBoss launch in Eclipse doesn't have an
> effect.  I assume this is because the entire context is stored in the
> .war file, which of course won't change if I edit a file in Eclipse.
>
> If I use only Tomcat, I can get this to work, however I would like to be
> able to do this with the JBoss + Tomcat combination.
>
> So far, I checked the last 6 months of this mailinglist, googled for
> several hours and read various boards, but I'm no closer to a solution.
> I suspect it must be possible to put somekind of .xml file in the JBoss
> deploy folder, and have this .xml file point directly to my Eclipse
> workspace (just like you can do with Tomcat), but so far I've been
> unable to find anything about this.  Does anyone have any ideas or tips
> I might look into to get this to work?
>
> --John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Updating tapestry templates without redeploying in Eclipse JBoss IDE

Posted by Kent Tong <ke...@cpttm.org.mo>.
John Hendrikx <hjohn <at> xs4all.nl> writes:

> I suspect it must be possible to put somekind of .xml file in the JBoss 
> deploy folder, and have this .xml file point directly to my Eclipse 
> workspace (just like you can do with Tomcat), but so far I've been 
> unable to find anything about this.  Does anyone have any ideas or tips 
> I might look into to get this to work?

To allow deploying a directory, edit
c:/jboss-3.2.5/server/default/deploy/jbossweb-tomcat50.sar/server.xml.
In particular, the <Host> element should set like:

     <Host name="localhost"
           autoDeploy="true" deployOnStartup="true" deployXML="true">

Then put your .xml files (context descriptors) into 
c:/jboss-3.2.5/server/default/conf/jboss.web/localhost.

To pass the JVM parameter to tomcat, edit 
c:/jboss-3.2.5/bin/run.bat to set JAVA_OPTS at the
begining:

set JAVA_OPTS=-Dorg.apache.tapestry.disable-caching=true

--
Author of an e-Book for learning Tapestry (www.agileskills2.org/EWDT)



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org