You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "BB@umd" <bb...@umd.edu> on 2009/05/19 23:19:51 UTC

[Eclipse+Tomcat6]How to publish modification in a text file ?

I am developing a webapp with Eclipse 3.4.2 which runs on a Tomcat v6 server.

When I click on a button of my webapp during runtime, it modifies or
createsa shell script present in my webapp folder. Then, I retrieve this
script (which contains installation instructions) at the startup of a
Virtual Machine. My problem is that this script is not updated/created on my
server whereas it is in my filesystem.  (But if I manually refresh webapp on
Eclipse, this script is correctly updated/created.)

I first thought it was a problem of caching in Tomcat, so I edited the
context.xml file to disable caching like this :
<Context reloadable="true" cachingAllowed="false">
Then I try to set the development init-param to true in my web.xml like this
<init-param>
	    <param-name>development</param-name>
	    <param-value>true</param-value>
	</init-param>

However, it changes nothing. Does anyone have an idea of how i can
automatically "refresh" my webapp folder and synchronize it with my
filesystem ?

-- 
View this message in context: http://www.nabble.com/-Eclipse%2BTomcat6-How-to-publish-modification-in-a-text-file---tp23624586p23624586.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [Eclipse+Tomcat6]How to publish modification in a text file ?

Posted by Pid <p...@pidster.com>.
BB@umd wrote:
> I am developing a webapp with Eclipse 3.4.2 which runs on a Tomcat v6 server.
> 
> When I click on a button of my webapp during runtime, it modifies or
> createsa shell script present in my webapp folder. Then, I retrieve this
> script (which contains installation instructions) at the startup of a
> Virtual Machine. My problem is that this script is not updated/created on my
> server whereas it is in my filesystem.  (But if I manually refresh webapp on
> Eclipse, this script is correctly updated/created.)
> 
> I first thought it was a problem of caching in Tomcat, so I edited the
> context.xml file to disable caching like this :
> <Context reloadable="true" cachingAllowed="false">
> Then I try to set the development init-param to true in my web.xml like this
> <init-param>
> 	    <param-name>development</param-name>
> 	    <param-value>true</param-value>
> 	</init-param>
> 
> However, it changes nothing. Does anyone have an idea of how i can
> automatically "refresh" my webapp folder and synchronize it with my
> filesystem ?
> 

This is the Tomcat Developers mailing list.
Try asking this question on the Tomcat Users mailing list, you're more
likely to get an answer there.

p

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org