You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stefano Bagnara <ba...@ngi.it> on 2003/08/26 17:12:36 UTC
RE: Setting the Tapestry no-cache system property
[..]
> I'm trying to set the Tapestry org.apache.tapestry.disable-caching
> property to true for JVM and can't make it work.
>
> My Tomcat runs as a Windows service. It executes the
> tomcat.exe file and
> there's no way to use the java.exe -D way of doing this.
[..]
> Can someone suggest a proper way of initializing Tapestry properties?
I already replied to this at your previous question.
1st way:
--------
Stop the service.
Uninstall it with
"%CATALINA_HOME%\bin\tomcat.exe" -uninstall "Apache Tomcat"
Reinstall it with no caching:
"%CATALINA_HOME%\bin\tomcat.exe"
-install "Apache Tomcat" "%JAVA_HOME%\jre\bin\server\jvm.dll"
-Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\too
ls.jar"
-Dcatalina.home="%CATALINA_HOME%"
-Xrs
-start org.apache.catalina.startup.Bootstrap -params start
-stop org.apache.catalina.startup.Bootstrap -params stop
-out "%CATALINA_HOME%\logs\stderr.log"
Start the service.
2nd way:
-------
Check that you registry for the Apache service look like this or import
this (after renaming the "Apache Tomcat" with wour service name and the
directories as needed).
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):63,3a,5c,50,72,6f,67,72,61,6d,6d,69,5c,44,65,76,5c,54
,6f,6d,\
63,61,74,20,34,2e,31,5c,62,69,6e,5c,74,6f,6d,63,61,74,2e,65,78,65,00
"DisplayName"="Apache Tomcat"
"ObjectName"="LocalSystem"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache
Tomcat\Parameters]
"JVM
Library"="C:\\Programmi\\Dev\\j2sdk1.4.1_03\\jre\\bin\\server\\jvm.dll"
"JVM Option Count"=dword:00000004
"JVM Option Number 0"="-Djava.class.path=c:\\Programmi\\Dev\\Tomcat
4.1\\bin\\bootstrap.jar;C:\\Programmi\\Dev\\j2sdk1.4.1_03\\lib\\tools.ja
r"
"JVM Option Number 1"="-Dcatalina.home=c:\\Programmi\\Dev\\Tomcat 4.1"
"JVM Option Number 2"="-Xrs"
"Start Class"="org.apache.catalina.startup.Bootstrap"
"Start Method"="main"
"Start Param Count"=dword:00000001
"Start Param Number 0"="start"
"Stop Class"="org.apache.catalina.startup.Bootstrap"
"Stop Method"="main"
"Stop Param Count"=dword:00000001
"Stop Param Number 0"="stop"
"System.out File"="c:\\Programmi\\Dev\\Tomcat 4.1\\logs\\stderr.log"
"JVM Option Number 3"="-Dorg.apache.tapestry.disable-caching=true"
-b-