Re: How to run tomcat without specifying a JDK location?
Hi, Yes, I was able to figure that out. But, it the following which puzzles me. I'd already pasted this in my initial mail, but here it is again: But the tomcat documentation available at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html states this: Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of the JDK or a JRE. If only a JRE (or an incorrect path) is specified, Tomcat will run but will be unable to compile JSP pages at runtime. Either all webapps will need to be precompiled (this can be easily done using the Tomcat deployer), or the lib\tools.jar file from a JDK installation must be copied to the common\lib path of the Tomcat installation. In light of this, how do I just tell tomcat that it isn't needed to do ANY JSP processing, just serve my servlets. Once again, eagerly awaiting your reply, Regards, - Lakshmi Narayanan K. On 4/29/05, Oto Bossert [EMAIL PROTECTED] wrote: Yoo, JSP are compiled at runtime and need a compiler for this purpose - JDK! Greetings O. On 4/28/05, Lakshmi Narayanan K. [EMAIL PROTECTED] wrote: Hi All, I am currently using Tomcat 5.0.28 coupled with JDK 1.4.2_02 to run the tomcat service. I have noticed that unless the path to a JDK is specified in JAVA_HOME, the tomcat does not start. On Windows, the setclasspath.bat file has the following entries: :noJavaHome echo The JAVA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program echo NB: JAVA_HOME should point to a JDK not a JRE goto exit But the tomcat documentation available at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html states this: Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of the JDK or a JRE. If only a JRE (or an incorrect path) is specified, Tomcat will run but will be unable to compile JSP pages at runtime. Either all webapps will need to be precompiled (this can be easily done using the Tomcat deployer), or the lib\tools.jar file from a JDK installation must be copied to the common\lib path of the Tomcat installation. If this is possible, why is it that the Windows installer for Tomcat does not accept the location of JRE (it accepts ONLY a JDK), and why does the batch files state that only a JDK should be provided, and not a JRE? In case anyone has successfully been able to start Tomcat without specifying a JDK, please help me. Eagerly awaiting your replies. Many thanks in advance and Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to run tomcat without specifying a JDK location?
Hi, Thanks very much for replying. I don't think that just modifying JAVA_HOME to point to a JRE will work. The file catalina.bat internally calls setclasspath.bat which in turn checks for the presence of the following: * %JAVA_HOME%\bin\java.exe * %JAVA_HOME%\bin\javaw.exe * %JAVA_HOME%\bin\jdb.exe * %JAVA_HOME%\bin\javac.exe Following are the lines of code that say so: if not exist %JAVA_HOME%\bin\java.exe goto noJavaHome if not exist %JAVA_HOME%\bin\javaw.exe goto noJavaHome if not exist %JAVA_HOME%\bin\jdb.exe goto noJavaHome if not exist %JAVA_HOME%\bin\javac.exe goto noJavaHome goto okJavaHome :noJavaHome echo The JAVA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program echo NB: JAVA_HOME should point to a JDK not a JRE goto exit I even checked in the latest version of the setclasspath.bat file obtained from: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/bin/setclasspath.bat But the same code is present. So, once again, eagerly awaiting your replies. Warm Regards, - Lakshmi Narayanan K. On 4/29/05, Oto Bossert [EMAIL PROTECTED] wrote: Yoo, Have a look at the startup script and look for JAVA_HOME, you can modify this script to point to JRE location WITHOUT setting JAVA_HOME... Greetings O. On 4/29/05, Lakshmi Narayanan K. [EMAIL PROTECTED] wrote: Hi, Yes, I was able to figure that out. But, it the following which puzzles me. I'd already pasted this in my initial mail, but here it is again: But the tomcat documentation available at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html states this: Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of the JDK or a JRE. If only a JRE (or an incorrect path) is specified, Tomcat will run but will be unable to compile JSP pages at runtime. Either all webapps will need to be precompiled (this can be easily done using the Tomcat deployer), or the lib\tools.jar file from a JDK installation must be copied to the common\lib path of the Tomcat installation. In light of this, how do I just tell tomcat that it isn't needed to do ANY JSP processing, just serve my servlets. Once again, eagerly awaiting your reply, Regards, - Lakshmi Narayanan K. On 4/29/05, Oto Bossert [EMAIL PROTECTED] wrote: Yoo, JSP are compiled at runtime and need a compiler for this purpose - JDK! Greetings O. On 4/28/05, Lakshmi Narayanan K. [EMAIL PROTECTED] wrote: Hi All, I am currently using Tomcat 5.0.28 coupled with JDK 1.4.2_02 to run the tomcat service. I have noticed that unless the path to a JDK is specified in JAVA_HOME, the tomcat does not start. On Windows, the setclasspath.bat file has the following entries: :noJavaHome echo The JAVA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program echo NB: JAVA_HOME should point to a JDK not a JRE goto exit But the tomcat documentation available at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html states this: Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of the JDK or a JRE. If only a JRE (or an incorrect path) is specified, Tomcat will run but will be unable to compile JSP pages at runtime. Either all webapps will need to be precompiled (this can be easily done using the Tomcat deployer), or the lib\tools.jar file from a JDK installation must be copied to the common\lib path of the Tomcat installation. If this is possible, why is it that the Windows installer for Tomcat does not accept the location of JRE (it accepts ONLY a JDK), and why does the batch files state that only a JDK should be provided, and not a JRE? In case anyone has successfully been able to start Tomcat without specifying a JDK, please help me. Eagerly awaiting your replies. Many thanks in advance and Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! -- Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to run tomcat without specifying a JDK location?
Hi Jason, Thank you very much for replying. It worked. I modified setclasspath.bat to NOT check for the presence of jdb and javac. I was then able to start Tomcat by using 'catalina run' and 'catalina start'. Now I have a few more questions: 1) What is the role of the tools.jar file? Does it help in compilation of JSP's? I mean, is tools.jar enough to compile JSP's without a JDK? 2) On Windows, I have registered tomcat to run a system service. If we modify setclasspath.bat, how do we make the service startup not depend on the JDK. How to specify just the JRE? Can we modify the service parameters (using tomcat5w) to point to the JRE's jvm.dll? Is that just enough? Eagerly awaiting your replies... Warm Regards, /kLn On 4/29/05, Jason Bainbridge [EMAIL PROTECTED] wrote: JSP are compiled at runtime and need a compiler for this purpose - JDK! Actually that is't correct, we run JSP's that aren't pre-compiled (our application is servlet based but we have a few utility JSP's that we write/use for support) and still use just a JRE. I think from memory you just need to edit one of the .bat files either catalina.bat or setclasspath.bat if I remember correctly but I can't remember exactly what needed to be edited and I'm not in front of one of the servers right now. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to run tomcat without specifying a JDK location?
Hi All, I am currently using Tomcat 5.0.28 coupled with JDK 1.4.2_02 to run the tomcat service. I have noticed that unless the path to a JDK is specified in JAVA_HOME, the tomcat does not start. On Windows, the setclasspath.bat file has the following entries: :noJavaHome echo The JAVA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program echo NB: JAVA_HOME should point to a JDK not a JRE goto exit But the tomcat documentation available at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html states this: Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of the JDK or a JRE. If only a JRE (or an incorrect path) is specified, Tomcat will run but will be unable to compile JSP pages at runtime. Either all webapps will need to be precompiled (this can be easily done using the Tomcat deployer), or the lib\tools.jar file from a JDK installation must be copied to the common\lib path of the Tomcat installation. If this is possible, why is it that the Windows installer for Tomcat does not accept the location of JRE (it accepts ONLY a JDK), and why does the batch files state that only a JDK should be provided, and not a JRE? In case anyone has successfully been able to start Tomcat without specifying a JDK, please help me. Eagerly awaiting your replies. Many thanks in advance and Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to run tomcat without specifying a JDK location?
Hi All, I am currently using Tomcat 5.0.28 coupled with JDK 1.4.2_02 to run the tomcat service. I have noticed that unless the path to a JDK is specified in JAVA_HOME, the tomcat does not start. On Windows, the setclasspath.bat file has the following entries: :noJavaHome echo The JAVA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program echo NB: JAVA_HOME should point to a JDK not a JRE goto exit But the tomcat documentation available at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html states this: Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of the JDK or a JRE. If only a JRE (or an incorrect path) is specified, Tomcat will run but will be unable to compile JSP pages at runtime. Either all webapps will need to be precompiled (this can be easily done using the Tomcat deployer), or the lib\tools.jar file from a JDK installation must be copied to the common\lib path of the Tomcat installation. If this is possible, why is it that the Windows installer for Tomcat does not accept the location of JRE (it accepts ONLY a JDK), and why does the batch files state that only a JDK should be provided, and not a JRE? In case anyone has successfully been able to start Tomcat without specifying a JDK, please help me. Eagerly awaiting your replies. Many thanks in advance and Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Query on catalina.bat of Tomcat 5.0.28
Hi All, In the file catalina.bat, the following lines of code are present: echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% set _EXECJAVA=%_RUNJAVA% My question here is, who / wherefrom is the value of _RUNJAVA being set/obtained? I noticed that shutdown.bat file calls catalina.bat file with stop option. I am facing a problem with the execution of the same. When I executed shutdown.bat via the command prompt, the value of _RUNJAVA gets set to the value of the proper java that is present in JAVA_HOME. But when I am executed the same shutdown.bat script from within our product application, the value _RUNJAVA isn't getting set as expected. Because of this, tomcat shutdown is not getting called, hence tomcat never stops when I try to stop it via our application. Any ideas??? - Lakshmi Narayanan K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hi QM, Thanks for your reply. If there are many developers on this list, then why aren't there any replies? :( I've tested this problem on all my available windows boxes, and the value always gets set to 0. Can somebody else try this out and see if they too are getting the same behavior? I am really hard-pressed to find a more elegant solution (which would be to use the tomcat5 executable provided by Tomcat) rather than modify those registry values by hand. So, as usual, your replies are eagerly awaited... Warm Regards, - Lakshmi Narayanan K. On Wed, 30 Mar 2005 06:16:50 -0600, QM [EMAIL PROTECTED] wrote: On Wed, Mar 30, 2005 at 10:02:50AM +0530, Lakshmi Narayanan K. wrote: : No replies yet??? :( : Is it possible that this is a possible bug in the tomcat5.exe : executable? Can this thread be forwarded to the other mailing list, : the tomcat-developers one??? Rest assured, there are several developers on this list. If you really think you've found a bug, wrap it up in a test case and file a Bugzilla report. -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hi Mladen, Thank you very very much for having replied to my query. If there are many developers on this list, then why aren't there any replies? :( Well, I replied to you already, and I wrote the damn thing :). Please don't mistake my statement above. I only meant that there weren't replies on how exactly to set those values without modifying them in the registry. I can easily update any of those params from command line. For example: tomcat5 //US//Tomcat5 --JvmMs 256 --JvmMx 512 Sets the params in the registry correctly (256 and 512). Are you doing this from the tomcat5 binary from TC 5.0.30? I ask this because we have already rolled out TC 5.0.28 onto production systems, and if so, I cant roll out the newer TC 5.0.30 on them. : The Tomcat product I am bundling is being installed using the Administrator account on the Windows box. Are you saying that it is possible that that account didnt have the permission to set those values in the registry? Many thanks once again for replying... and (once again :D) eagerly awaiting your replies... Regards, - Lakshmi Narayanan K. On Wed, 30 Mar 2005 16:27:07 +0200, Mladen Turk [EMAIL PROTECTED] wrote: Lakshmi Narayanan K. wrote: If there are many developers on this list, then why aren't there any replies? :( Well, I replied to you already, and I wrote the damn thing :). So, as usual, your replies are eagerly awaited... Try to use the tomcat5.exe from 5.0.30 or better from 5.5.8. I have not tried the version from 5.0.28 for quite some time, but AFAICT they are the same. I can easily update any of those params from command line. For example: tomcat5 //US//Tomcat5 --JvmMs 256 --JvmMx 512 Sets the params in the registry correctly (256 and 512). The values passed to JVM are -Xms256m and -Xmx512m. Only problem that can be is that the account you are using has no administrative privilege. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hi Mladen, I visited that site and took/downloaded version Revision 1.4 of tomcat5.exe where the comment says Latest Tomcat5 and Tomcat5w binaries. Fixes the environment and JvmMs and JvmMx parsing. Then I issued the command tomcat5 //US//OvTomcatA --JvmSs 256 This was able to set the registry value of JvmSs to 256 correctly. Now, my question is, can I roll out only this executable as that of Tomcat version 5.0.28? Or do I need to roll out some other files as well? Please let me know. Thank you very much once again for your time, and eagerly awaiting your reply. - Lakshmi Narayanan K. On Wed, 30 Mar 2005 17:39:43 +0200, Mladen Turk [EMAIL PROTECTED] wrote: Lakshmi Narayanan K. wrote: Are you doing this from the tomcat5 binary from TC 5.0.30? I ask this because we have already rolled out TC 5.0.28 onto production systems, and if so, I cant roll out the newer TC 5.0.30 on them. : Use that one: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/procrun/bin/ Click on the tomcat5.exe and select (HEAD: download). If it does not work, then I have no clue what might be the problem, and is for sure related to your OS setup, rather then tomcat5.exe. Regards, Mladen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
No replies yet??? :( Is it possible that this is a possible bug in the tomcat5.exe executable? Can this thread be forwarded to the other mailing list, the tomcat-developers one??? Eagerly awaiting your replies... -- Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hi Jason, Thanks for your suggestion. I would like to modify the registry by hand as a LAST resort only. Isn't there a way to do this via the tocmat5 command line tool itself? If there isn't any, then of course, I would have to do it by hand by modifying the registry. Please let me know. Thanks and Regards, - Lakshmi Narayanan K. On Fri, 25 Mar 2005 20:52:40 -0600, Jason Bainbridge [EMAIL PROTECTED] wrote: On Sat, 26 Mar 2005 07:30:23 +0530, Lakshmi Narayanan K. [EMAIL PROTECTED] wrote: Hello All, I am currently using Tomcat 5.0.28 coupled with JK2 connector to talk to Apache 2.0.48. I am encountering a problem similar to as reported in the following link: http://issues.apache.org/bugzilla/show_bug.cgi?id=32063 I am in a position where I *CANNOT* access the GUI based Tomcat configurator for setting the values of JvmMx and JvmMx. So my only way out is to use the tomcat command line utility to modify the Tomcat parameters. However, on the same lines as both Sigal and Ilona have faced (in the above mentioned bugzilla link), the values of JvmMs and JvmMx that get set (as shown in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\OvTomcatA\Parameters\Java) are always set to 0 irrespective of whatever value i set. Why don't you just set them via regedit? I'm not in front of any of my wrk boxes right now and I can't be bothered remoting in to get the entries you need to edit but it is pretty straight forward. -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com -- Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hi Mladen, Thanks for your suggestion. I had actually tried setting the values in the manner you have suggested, but like I had already mentioned, the values always get set to 0 in the registry. Of course, I haven't tried setting them individually, so I shall try that when I get back to office, but my gut feeling is even that wont help. Thanks once again. Regards, - Lakshmi Narayanan K. On Sat, 26 Mar 2005 12:59:59 +0100, Mladen Turk [EMAIL PROTECTED] wrote: Lakshmi Narayanan K. wrote: Hi Jason, Thanks for your suggestion. I would like to modify the registry by hand as a LAST resort only. Isn't there a way to do this via the tocmat5 command line tool itself? If there isn't any, then of course, I would have to do it by hand by modifying the registry. Please let me know. You can do that by using Tomcat5.exe: tomcat5 //US// --JvmSs NNN tomcat5 //US// --JvmMs NNN tomcat5 //US// --JvmMx NNN etc... (Of course you can do that all in once) tomcat5 //US// --JvmSs NNN --JvmMs NNN --JvmMx NNN If your service name is different then 'tomcat5' (mening that you used service.bat with non-default service name), you can either rename the tomcat5.exe to 'your_service_name.exe' or use: 'tomcat5 //US//your-service_name --JvmSS NNN' Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Warm Regards, Lakshmi Narayanan K. When the buying stops, the killing can too! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry
Hello All, I am currently using Tomcat 5.0.28 coupled with JK2 connector to talk to Apache 2.0.48. I am encountering a problem similar to as reported in the following link: http://issues.apache.org/bugzilla/show_bug.cgi?id=32063 I am in a position where I *CANNOT* access the GUI based Tomcat configurator for setting the values of JvmMx and JvmMx. So my only way out is to use the tomcat command line utility to modify the Tomcat parameters. However, on the same lines as both Sigal and Ilona have faced (in the above mentioned bugzilla link), the values of JvmMs and JvmMx that get set (as shown in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\OvTomcatA\Parameters\Java) are always set to 0 irrespective of whatever value i set. I even tried to manually execute the following but to no avail (I am installing Tomcat service as OvTomcatA): tomcat5.exe //US//OvTomcatA --JvmMs 256 --JvmMx 512 I desperately need to fix this problem. Is there any way out for me to set these values manually using the tomcat5 command line tool?? I must say here that when trying to set via the GUI based Tomcat configurator, the values of JvmMs and JvmMx get set as expected. Eagerly awaiting your reply, Warm Regards, - Lakshmi Narayanan K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]