cancel
Showing results for 
Search instead for 
Did you mean: 

edited webscript won't load new changes

vinhqchu
Champ in-the-making
Champ in-the-making
hello,

i've made a change to my webscript and went to /service/index and clicked refresh, but it does not load my changes, do i have to clean out the cache? i've made changes before and refreshed and it worked, but now it is not. any ideas?

thanks in advance,
vinh
3 REPLIES 3

lyamamot
Champ in-the-making
Champ in-the-making
If it's a script that is included in another script, there is no way to refresh without restarting the server.

mikeh
Star Contributor
Star Contributor
You can in v3.2. Add the following to log4j:
log4j.logger.org.alfresco.web.scripts.PresentationScriptProcessor=debug
log4j.logger.org.alfresco.repo.jscript.RhinoScriptProcessor=debug

These tell Tomcat to use a non-caching classloader which, although undesirable in a production environment, can be useful in development.

Thanks,
Mike

vinhqchu
Champ in-the-making
Champ in-the-making
thank you for you replies, but it's not a script within another script and i'm not yet on v3.2. it is a script that i placed in the web-inf folder and not the default webscripts folder, for security reasons. i've done this many times before and it worked fine, it just happened to not work any more. i wonder if there are any links that might have been broken.