procrun and NT service
Setting the --StartMode parameter of procrun to java or exe seems to be not working. Any other special setting is needed in order to have these parameters work? If i try to install my server application as nt service with procrun, it starts and after the startup process the service ends. From the command line it normally starts and remain active waiting for incoming connection. Any idea? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: procrun and NT service
Alessandro Fredianelli wrote: Setting the --StartMode parameter of procrun to java or exe seems to be not working. Any other special setting is needed in order to have these parameters work? --StartMode=java|jvm It defines if the JNI or out of process java.exe will be used. The same is for --StopMode Perhaps you were thinking on --Startup=manual|auto params? If i try to install my server application as nt service with procrun, it starts and after the startup process the service ends. From the command line it normally starts and remain active waiting for incoming connection. Any idea? Just post the command line you are using for installation. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: procrun and NT service
@echo off call setenv.bat echo %CLASSPATH% pause set line= set line=%line% --ClassPath=%CLASSPATH% set line=%line% --Description=ClinicalIntegrationServer set line=%line% --Install=c:\cis\xqueue\service.exe set line=%line% --DisplayName=CIS set line=%line% --JvmOptions=-Djava.security.policy=cis.policy;-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl set line=%line% --JvmMx=20M --JvmMs=20M set line=%line% --Startup=auto set line=%line% --User=.\Administrator set line=%line% --Password=pwd set line=%line% --LogPath=c:\cis\xqueue\log set line=%line% --LogPrefix=service.log set line=%line% --StdOutput=c:\cis\xqueue\log\out.log.txt set line=%line% --StdError=c:\cis\xqueue\log\err.log.txt set line=%line% --JavaHome=c:\java set line=%line% --Jvm=C:\java\jre\bin\server\jvm.dll set line=%line% --StartPath=c:\cis\xqueue set line=%line% --StartMode=jvm set line=%line% --StartClass=xqueue.server.WorkFlowManager set line=%line% --StartParams=start set line=%line% --StopPath=c:\cis\xqueue set line=%line% --StopClass=xqueue.server.WorkFlowManager set line=%line% --StopParams=stop set line=%line% --StopMode=jvm service //IS//CIS %line% set line= that's how i create the service. If i set startmode=java in order to have the possibility to specify an account different than LocalSystem, procrun doesent start. With the settings showed my server starts and after starting process the service ends without any error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: procrun and NT service
Alessandro Fredianelli wrote: that's how i create the service. If i set startmode=java in order to have the possibility to specify an account different than LocalSystem, procrun doesent start. Hmm, are you using the CVS HEAD or last released version? Any log messages? Also does you Administrator account has a 'Log On As Service' privilege? Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: procrun and NT service
Mladen Turk wrote: Hmm, are you using the CVS HEAD or last released version? Any log messages? Also does you Administrator account has a 'Log On As Service' privilege? last released. Using LocalSystem account. this is the log. [2005-04-26 13:00:37] [info] Service CIS name CIS [2005-04-26 13:00:38] [info] Service CIS installed [2005-04-26 13:00:38] [info] Procrun finished. [2005-04-26 13:02:14] [info] Running Service... [2005-04-26 13:02:15] [info] Starting service... [2005-04-26 13:02:16] [info] Service started in 1265 ms. [2005-04-26 13:02:18] [info] Run service finished. [2005-04-26 13:02:18] [info] Procrun finished. [2005-04-26 13:03:57] [1193 prunsrv.c] [debug] Procrun log initialized [2005-04-26 13:03:57] [info] Running Service... [2005-04-26 13:03:57] [1036 prunsrv.c] [debug] Inside ServiceMain... [2005-04-26 13:03:57] [info] Starting service... [2005-04-26 13:03:57] [408 javajni.c] [debug] Jvm Option[0] -Djava.security.policy=cis.policy [2005-04-26 13:03:57] [408 javajni.c] [debug] Jvm Option[1] -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl [2005-04-26 13:03:57] [408 javajni.c] [debug] Jvm Option[2] -Xrs [2005-04-26 13:03:57] [408 javajni.c] [debug] Jvm Option[3] -Djava.class.path=c:\cis\xqueue\bin\jdbc.jar;c:\cis\xqueue\bin\router.jar;c:\cis\xqueue\bin\xengine.jar;c:\cis\xqueue\bin\xplorer.jar;c:\cis\xqueue\bin\fs2mom.jar;c:\cis\xqueue\bin\scheduler.jar;lib\aqapi.jar;lib\jms.jar;lib\nls_charset12.jar;lib\ojdbc14.jar;c:\cis\xqueue\bin\client.jar;c:\cis\xqueue\bin\utilities.jar;c:\cis\xqueue\bin\server.jar;c:\cis\xqueue\bin\logservice.jar;c:\cis\xqueue\lib\saxon8.jar;c:\cis\xqueue\lib\saxon8-jdom.jar;c:\cis\xqueue\lib\saxon8-sql.jar;c:\cis\xqueue [2005-04-26 13:03:58] [408 javajni.c] [debug] Jvm Option[4] vfprintf [2005-04-26 13:03:58] [494 javajni.c] [debug] argv[0] = start [2005-04-26 13:03:59] [907 prunsrv.c] [debug] Java started xqueue/server/WorkFlowManager [2005-04-26 13:03:59] [info] Service started in 1875 ms. [2005-04-26 13:03:59] [1110 prunsrv.c] [debug] Waitning worker to finish... [2005-04-26 13:04:01] [531 javajni.c] [debug] Java Worker thread finished [2005-04-26 13:04:01] [1115 prunsrv.c] [debug] Worker finished. [2005-04-26 13:04:01] [info] Run service finished. [2005-04-26 13:04:01] [info] Procrun finished. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Tomcat 4.1 in security mode (NT service)
Hi all, I run a Tomcat 4.1 on Windows 2000. I have installed it as an NT service and it works fine. here is the script used to install the service : -- set SERVICENAME=Apache Tomcat set JAVACLASSPATH=%CLASSPATH% set JAVACLASSPATH=%JAVACLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar set JAVACLASSPATH=%JAVACLASSPATH%;%CATALINA_HOME%\common\lib\servlet.jar set JAVACLASSPATH=%JAVACLASSPATH%;%JAVA_HOME%\lib\tools.jar tomcat.exe -install %SERVICENAME% %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%JAVACLASSPATH% -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\stdout.log -err %CATALINA_HOME%\logs\stderr.log --- Now I need to run tomcat with the -security option : If I run it with %CATALINA_HOME%\bin\catalina start -security everything's fine. Then I install it as a service by modifing the previous script as follows : --- set SERVICENAME=Apache Tomcat set JAVACLASSPATH=%CLASSPATH% set JAVACLASSPATH=%JAVACLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar set JAVACLASSPATH=%JAVACLASSPATH%;%CATALINA_HOME%\common\lib\servlet.jar set JAVACLASSPATH=%JAVACLASSPATH%;%JAVA_HOME%\lib\tools.jar tomcat.exe -install %SERVICENAME% %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%JAVACLASSPATH% -Dcatalina.home=%CATALINA_HOME% -Djava.security.manager -Djava.security.policy=%CATALINA_HOME%\conf\catalina.policy -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log --- It works good until I get the following Exception . java.lang.NoClassDefFoundError: sun/io/CharToByteConverter at org.apache.xml.serialize.EncodingInfo.isPrintable(Unknown Source) at org.apache.xml.serialize.XMLSerializer.printXMLChar(Unknown Source) at org.apache.xml.serialize.XMLSerializer.printEscaped(Unknown Source) at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source) at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source) at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source) at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source) at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source) at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source) at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source) at org.apache.xml.serialize.BaseMarkupSerializer.serialize(Unknown Source) at altaix.intranet.objets.Arbre.Sauver(Arbre.java:168) at altaix.intranet.transactions.AjouterInfo.Executer(AjouterInfo.java:38) at altaix.intranet.transactions.Transaction.Executer(Transaction.java:59) at altaix.intranet.servlets.gc.doGet(gc.java:181) at altaix.intranet.servlets.gc.doPost(gc.java:196) ... I really don't understand what it means as the sun/io/CharToByteConverter class is part of rt.jar. On the other hand I never get this error when Tomcat is not lauched as a service.
Problem With Tomcat and NT service
Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
Hi In this case, can we change the base directory? Regards, hui -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:28 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
Not AFAIK. Chris -Original Message- From: hui [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 9:15 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service Hi In this case, can we change the base directory? Regards, hui -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:28 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
Hi, You can change the base directory by changing the location from which you start the server, on some operating systems. On others, this doesn't matter. Which is of course the problem with relying on a concept like base directory, or current working directory, as part of your design. It's poor design that lacks in portability: change it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: hui [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 9:15 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service Hi In this case, can we change the base directory? Regards, hui -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:28 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
http://www.tburke.net/info/reskittools/topics/srvany_using.htm See the paragraph about setting the working directory... Charlie -Original Message- From: hui [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 9:15 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service Hi In this case, can we change the base directory? Regards, hui -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:28 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
reinstalled SDK - NT Service doesn't start
Hello guys, After reinstalling the SDK. Tomcat 4.1.28 works from console but the NT doesn't start Do you guys know how to fix this? I'm suspecting that some config files are pointing to the old SDK install. Or maybe some registry value? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reinstalled SDK - NT Service doesn't start
From the tomcat config screen, click the Java tab and update the path to your jvm. On Fri, 2004-11-05 at 16:01, David Aleksanyan wrote: Hello guys, After reinstalling the SDK. Tomcat 4.1.28 works from console but the NT doesn't start Do you guys know how to fix this? I'm suspecting that some config files are pointing to the old SDK install. Or maybe some registry value? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reinstalled SDK - NT Service doesn't start
The Tomcat config app has been long gone. Is there any way to do it without the interface? - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:14 PM Subject: Re: reinstalled SDK - NT Service doesn't start From the tomcat config screen, click the Java tab and update the path to your jvm. On Fri, 2004-11-05 at 16:01, David Aleksanyan wrote: Hello guys, After reinstalling the SDK. Tomcat 4.1.28 works from console but the NT doesn't start Do you guys know how to fix this? I'm suspecting that some config files are pointing to the old SDK install. Or maybe some registry value? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reinstalled SDK - NT Service doesn't start
Search the registry for your old sdk path. When you find it, replace it with the new one. Repeat as necessary. [EMAIL PROTECTED] 11/05/04 2:24 PM The Tomcat config app has been long gone. Is there any way to do it without the interface? - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:14 PM Subject: Re: reinstalled SDK - NT Service doesn't start From the tomcat config screen, click the Java tab and update the path to your jvm. On Fri, 2004-11-05 at 16:01, David Aleksanyan wrote: Hello guys, After reinstalling the SDK. Tomcat 4.1.28 works from console but the NT doesn't start Do you guys know how to fix this? I'm suspecting that some config files are pointing to the old SDK install. Or maybe some registry value? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reinstalled SDK - NT Service doesn't start
On Fri, 2004-11-05 at 16:37, Larry Meadors wrote: Search the registry for your old sdk path. When you find it, replace it with the new one. Repeat as necessary. I second that... But, before you edit your registry, I would strongly recommend backing it up. Of course, you could also take this opportunity to upgrade Tomcat ;) [EMAIL PROTECTED] 11/05/04 2:24 PM The Tomcat config app has been long gone. Is there any way to do it without the interface? - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:14 PM Subject: Re: reinstalled SDK - NT Service doesn't start From the tomcat config screen, click the Java tab and update the path to your jvm. On Fri, 2004-11-05 at 16:01, David Aleksanyan wrote: Hello guys, After reinstalling the SDK. Tomcat 4.1.28 works from console but the NT doesn't start Do you guys know how to fix this? I'm suspecting that some config files are pointing to the old SDK install. Or maybe some registry value? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reinstalled SDK - NT Service doesn't start
Chicken. :-D [EMAIL PROTECTED] 11/05/04 2:56 PM But, before you edit your registry, I would strongly recommend backing it up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reinstalled SDK - NT Service doesn't start
We've done that. It seems to not work. This is a production environment so I'm not in a position to do something drastic. - Original Message - From: Larry Meadors [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:37 PM Subject: Re: reinstalled SDK - NT Service doesn't start Search the registry for your old sdk path. When you find it, replace it with the new one. Repeat as necessary. [EMAIL PROTECTED] 11/05/04 2:24 PM The Tomcat config app has been long gone. Is there any way to do it without the interface? - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:14 PM Subject: Re: reinstalled SDK - NT Service doesn't start From the tomcat config screen, click the Java tab and update the path to your jvm. On Fri, 2004-11-05 at 16:01, David Aleksanyan wrote: Hello guys, After reinstalling the SDK. Tomcat 4.1.28 works from console but the NT doesn't start Do you guys know how to fix this? I'm suspecting that some config files are pointing to the old SDK install. Or maybe some registry value? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4 as an NT Service
I'm trying to install tomcat 4 as a service. I can't use the exe as I need to pass in jvm args for SSL. I've tried multiple different args to tomcat.exe. I've seen several posts mentioning that the jvm's are different. I tried the one in java_home\jre\bin\server and the one in client. They both install without any errors, but when I go to start the service, it tells me that it couldn't start and there was no error. I tried installing the service with the jvm.dll in program files\java\j2re1.4.2_03\bin\client, and when I first started it, there was no error, but it immediately stopped. I then started it again and it gave me the followingError 1607: The process terminated unexpectedly Any help would be appreciated. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AutoReply: Tomcat 4 as an NT Service
Hello Tomcat Users List [EMAIL PROTECTED], This refers to your mail with subject as Tomcat 4 as an NT Service. Thank you for sending your CV and registering with A.S. Consultancy Services. Our team will review your CV and match it against current requirements. If your profile matches with any ongoing opening, we will contact you by telephone / email. We recommend that you update your profile and send us an updated CV whenever your contact details or your career path changes, so that your record is up-to-date with us. Please be assured that your CV will remain confidential with us and we will submit your profile to our clients only after due consultation with you. In case you require any further information please do contact us. with warm regards, Staffing Team A.S. Consultancy Services #1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] URL: www.asconsultancy.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 as an NT Service
Hello Chris: If you don't mind me asking, what args do you need to pass to enable SSL? My implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml file... In either case, if you wish to pass arguments to the Apache Tomcat service, just go into computer management (right click my computer, properties) and then scroll down to services, double click the Apache Tomcat service and you can specify Start parameters towards the bottom of that dialog window. Good luck Azam Khan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 10:54 AM To: [EMAIL PROTECTED] Subject: Tomcat 4 as an NT Service I'm trying to install tomcat 4 as a service. I can't use the exe as I need to pass in jvm args for SSL. I've tried multiple different args to tomcat.exe. I've seen several posts mentioning that the jvm's are different. I tried the one in java_home\jre\bin\server and the one in client. They both install without any errors, but when I go to start the service, it tells me that it couldn't start and there was no error. I tried installing the service with the jvm.dll in program files\java\j2re1.4.2_03\bin\client, and when I first started it, there was no error, but it immediately stopped. I then started it again and it gave me the followingError 1607: The process terminated unexpectedly Any help would be appreciated. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 as an NT Service
I'm doing client auth and need to provide the server with a truststore. Your method only works for one initial run of tomcat. As soon as you stop the service, the parameter goes away, and upon starting again, it's back to the default. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 11:16 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat 4 as an NT Service Hello Chris: If you don't mind me asking, what args do you need to pass to enable SSL? My implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml file... In either case, if you wish to pass arguments to the Apache Tomcat service, just go into computer management (right click my computer, properties) and then scroll down to services, double click the Apache Tomcat service and you can specify Start parameters towards the bottom of that dialog window. Good luck Azam Khan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 10:54 AM To: [EMAIL PROTECTED] Subject: Tomcat 4 as an NT Service I'm trying to install tomcat 4 as a service. I can't use the exe as I need to pass in jvm args for SSL. I've tried multiple different args to tomcat.exe. I've seen several posts mentioning that the jvm's are different. I tried the one in java_home\jre\bin\server and the one in client. They both install without any errors, but when I go to start the service, it tells me that it couldn't start and there was no error. I tried installing the service with the jvm.dll in program files\java\j2re1.4.2_03\bin\client, and when I first started it, there was no error, but it immediately stopped. I then started it again and it gave me the followingError 1607: The process terminated unexpectedly Any help would be appreciated. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 as an NT Service
I see.. Why don't you try to modify the registry key directly. Head over to HKLM\SYSTEM\CurrentControlSet\Services\[your tomcat service]\ Look for the ImagePath key.. You should be able to update that value to whatever you want. Thanks, Azam Khan Network Data Support Center Verizon Wireless 866-222-7114 http://ndsc.eng.vzwcorp.com -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 11:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4 as an NT Service I'm doing client auth and need to provide the server with a truststore. Your method only works for one initial run of tomcat. As soon as you stop the service, the parameter goes away, and upon starting again, it's back to the default. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 11:16 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat 4 as an NT Service Hello Chris: If you don't mind me asking, what args do you need to pass to enable SSL? My implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml file... In either case, if you wish to pass arguments to the Apache Tomcat service, just go into computer management (right click my computer, properties) and then scroll down to services, double click the Apache Tomcat service and you can specify Start parameters towards the bottom of that dialog window. Good luck Azam Khan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 10:54 AM To: [EMAIL PROTECTED] Subject: Tomcat 4 as an NT Service I'm trying to install tomcat 4 as a service. I can't use the exe as I need to pass in jvm args for SSL. I've tried multiple different args to tomcat.exe. I've seen several posts mentioning that the jvm's are different. I tried the one in java_home\jre\bin\server and the one in client. They both install without any errors, but when I go to start the service, it tells me that it couldn't start and there was no error. I tried installing the service with the jvm.dll in program files\java\j2re1.4.2_03\bin\client, and when I first started it, there was no error, but it immediately stopped. I then started it again and it gave me the followingError 1607: The process terminated unexpectedly Any help would be appreciated. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 as an NT Service
If it were just one machine, that wouldn't be a problem. However, I need to set this up so that any user can install it. I think I finally got it working, however, it doesn't seem to want to stop. Anyone have any suggestions? Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 11:29 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat 4 as an NT Service I see.. Why don't you try to modify the registry key directly. Head over to HKLM\SYSTEM\CurrentControlSet\Services\[your tomcat service]\ Look for the ImagePath key.. You should be able to update that value to whatever you want. Thanks, Azam Khan Network Data Support Center Verizon Wireless 866-222-7114 http://ndsc.eng.vzwcorp.com -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 11:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4 as an NT Service I'm doing client auth and need to provide the server with a truststore. Your method only works for one initial run of tomcat. As soon as you stop the service, the parameter goes away, and upon starting again, it's back to the default. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 11:16 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat 4 as an NT Service Hello Chris: If you don't mind me asking, what args do you need to pass to enable SSL? My implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml file... In either case, if you wish to pass arguments to the Apache Tomcat service, just go into computer management (right click my computer, properties) and then scroll down to services, double click the Apache Tomcat service and you can specify Start parameters towards the bottom of that dialog window. Good luck Azam Khan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 10:54 AM To: [EMAIL PROTECTED] Subject: Tomcat 4 as an NT Service I'm trying to install tomcat 4 as a service. I can't use the exe as I need to pass in jvm args for SSL. I've tried multiple different args to tomcat.exe. I've seen several posts mentioning that the jvm's are different. I tried the one in java_home\jre\bin\server and the one in client. They both install without any errors, but when I go to start the service, it tells me that it couldn't start and there was no error. I tried installing the service with the jvm.dll in program files\java\j2re1.4.2_03\bin\client, and when I first started it, there was no error, but it immediately stopped. I then started it again and it gave me the followingError 1607: The process terminated unexpectedly Any help would be appreciated. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NT Service / Tomcat 4 memory setting ignoring Catalina.bat
Hi there, I'm looking for any help on how to force the Tomcat NT Service installed with Tomcat 4.1.30 to respect the Xms and Xmx setting in Catalina.bat on startup of the Tomcat service. I have added to Catalina.bat : set CATALINA_OPTS=-Xms32M -Xmx256M ... but this is being ignored by the service on startup. If I run startup.bat the above setting is being respected. Do I have to set a registry setting to control the Tomcat service ? Any references would be greatly appreciated. Matt Hall-Smith www.pauaware.co.nz Pauaware Information Architects
RE: NT Service / Tomcat 4 memory setting ignoring Catalina.bat
Have answered my own question. Please see http://www.pauaware.co.nz/tomcatntservice.htm Any comments gratefully accepted. Cheers, Matt -Original Message- From: matt hall-smith [mailto:[EMAIL PROTECTED] Sent: Friday, 24 September 2004 12:17 p.m. To: [EMAIL PROTECTED] Subject: NT Service / Tomcat 4 memory setting ignoring Catalina.bat Hi there, I'm looking for any help on how to force the Tomcat NT Service installed with Tomcat 4.1.30 to respect the Xms and Xmx setting in Catalina.bat on startup of the Tomcat service. I have added to Catalina.bat : set CATALINA_OPTS=-Xms32M -Xmx256M ... but this is being ignored by the service on startup. If I run startup.bat the above setting is being respected. Do I have to set a registry setting to control the Tomcat service ? Any references would be greatly appreciated. Matt Hall-Smith www.pauaware.co.nz Pauaware Information Architects - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running Tomcat 5.0.25 as an NT service
I just spent several hours getting Tomcat 5.0.25 to run as a service on Windows XP and didn't find a lot of useful information anywhere, so I thought I'd post my findings. The service.bat which comes with the Tomcat 5.0.25 distribution doesn't seem to pass all the proper parameters to the version of procrun represented by the tomcat5.exe. The proper parameters also don't seem to be documented anywhere. Using the tomcat5w GUI tool, I was able to discover what the missing parameters were. I have attached my modified service.bat if anyone finds it useful. Here are the changes I made (thanks to Jacob Kjome for pointing out the missing tools.jar): added %JAVA_HOME%\lib\tools.jar to the PR_CLASSPATH added the parameters --StartMethod main --StopMethod main to the call to tomcat5.exe added the parameter --Startup Automatic to set the startup type Derek Greer @echo off if %OS% == Windows_NT setlocal rem --- rem NT Service Install/Uninstall script rem rem Options rem installInstall the service using Tomcat5 as service name. remService is installed using default settings. rem remove Remove the service from the System. rem rem name(optional) If the second argument is present it is considered remto be new service name rem rem $Id: service.bat,v 1.5 2004/04/08 16:49:37 mturk Exp $ rem --- rem Guess CATALINA_HOME if not defined set CURRENT_DIR=%cd% if not %CATALINA_HOME% == goto gotHome set CATALINA_HOME=%cd% if exist %CATALINA_HOME%\bin\tomcat5.exe goto okHome rem CD to the upper dir cd .. set CATALINA_HOME=%cd% :gotHome if exist %CATALINA_HOME%\bin\tomcat5.exe goto okHome echo The tomcat.exe was not found... echo The CATALINA_HOME environment variable is not defined correctly. echo This environment variable is needed to run this program goto end :okHome if not %CATALINA_BASE% == goto gotBase set CATALINA_BASE=%CATALINA_HOME% :gotBase set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe rem Set default Service name set SERVICE_NAME=Tomcat5 if %1 == goto displayUsage if %2 == goto setServiceName set SERVICE_NAME=%2 :setServiceName if %1 == install goto doInstall if %1 == remove goto doRemove echo Unknown parameter %1 :displayUsage echo echo Usage: service.bat install/remove [service_name] goto end :doRemove rem Remove the service %EXECUTABLE% //DS//%SERVICE_NAME% echo The service '%SERVICE_NAME%' has been removed goto end :doInstall rem Install the service rem Use the environment variables as an exaple rem Each command line option is prefixed with PR_ set PR_DISPLAYNAME=Apache Tomcat set PR_DESCRIPTION=Apache Tomcat Server - http://jakarta.apache.org/tomcat set PR_INSTALL=%EXECUTABLE% set PR_LOGPATH=%CATALINA_HOME%\logs set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar set PR_STDOUTPUT=%CATALINA_HOME%\logs\stdout.log set PR_STDERROR=%CATALINA_HOME%\logs\stderr.log %EXECUTABLE% //IS//%SERVICE_NAME% --Jvm auto --StartClass org.apache.catalina.startup.Bootstrap --StartMethod main --StartParams start --StopClass org.apache.catalina.startup.Bootstrap --StopMethod main --StopParams stop --Startup Automatic rem Clear the environment variables. They are not needed any more. set PR_DISPLAYNAME= set PR_DESCRIPTION= set PR_INSTALL= set PR_LOGPATH= set PR_CLASSPATH= set PR_STDOUTPUT= set PR_STDERROR= rem Set extra parameters %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions -Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed; --StartMode jvm --StopMode jvm rem %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions -Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed;-Djava.io.tmpdir=%CATALINA_BASE%\temp --StartMode jvm --StopMode jvm rem More extra parameters %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions -Djava.io.tmpdir=%CATALINA_BASE%\temp echo The service '%SERVICE_NAME%' has been installed :end echo changing to %CURRENT_DIR% cd %CURRENT_DIR% - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 nt service
Sasha Borodin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a working installation of Tomcat 5 (on a Windows 2000 Server SP4 machine with jdk_1.4.1), which works great. I tried running the service.bat script under the bin directory to install the NT service, which ran without errors and reported success. However, when I try to start the service from the Services console, I get an error 0, and the jakarta_service log has the following entry: [2004-05-10 15:38:49] [info] Running Service... [2004-05-10 15:38:49] [info] Starting service... [2004-05-10 15:38:50] [364 javajni.c] [error] Unsuported JNI version 65537 [2004-05-10 15:38:50] [770 prunsrv.c] [error] Failed initializing java D:\jakarta-tomcat-5.0.24\bin\bootstrap.jar [2004-05-10 15:38:50] [982 prunsrv.c] [error] ServiceStart returned 2 [2004-05-10 15:38:50] [info] Run service finished. [2004-05-10 15:38:50] [info] Procrun finished. I have searched the mail-archive.com repository as well as google for unsupported JNI version errors, cross-referencing with tomcat 5, to no avail; but I've never in my life encountered something that someone else hasn't already found, so posting to the list is always hopeful ;-) I guess that there is a first time for everything ;-). The version of procrun (aka 'tomcat.exe') that ships with 5.0.24 is relatively new, and does some things differently than the version that shipped with previous version of Tomcat. What the error message means is that procrun found on older version of the JVM than it wanted, and so it gave up. The easiest thing to do is to run: tomcat5w //ES//Tomcat5 (you should also be able to run it with no arguments :), and change the 'jvm' setting to point to the jvm.dll file that you want to use. Thanks for any help. -Sasha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 nt service
Hello, I have a working installation of Tomcat 5 (on a Windows 2000 Server SP4 machine with jdk_1.4.1), which works great. I tried running the service.bat script under the bin directory to install the NT service, which ran without errors and reported success. However, when I try to start the service from the Services console, I get an error 0, and the jakarta_service log has the following entry: [2004-05-10 15:38:49] [info] Running Service... [2004-05-10 15:38:49] [info] Starting service... [2004-05-10 15:38:50] [364 javajni.c] [error] Unsuported JNI version 65537 [2004-05-10 15:38:50] [770 prunsrv.c] [error] Failed initializing java D:\jakarta-tomcat-5.0.24\bin\bootstrap.jar [2004-05-10 15:38:50] [982 prunsrv.c] [error] ServiceStart returned 2 [2004-05-10 15:38:50] [info] Run service finished. [2004-05-10 15:38:50] [info] Procrun finished. I have searched the mail-archive.com repository as well as google for unsupported JNI version errors, cross-referencing with tomcat 5, to no avail; but I've never in my life encountered something that someone else hasn't already found, so posting to the list is always hopeful ;-) Thanks for any help. -Sasha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NT Service terminates
Thanks for that advice - I'll try the upgrade soon as I get a moment Cheers Tariq Cox, Charlie [EMAIL PROTECTED] wrote: I had found the JVM version 1.4.0_02 (as a service) to provide random crashes, not particularly caused by load, that went away when changing to 1.4.0_04. This was with tomcat 4.1.24. I am now using 4.1.29/JDK 1.4.2_02 without a problem. Do you have any native libraries(db?) that may be the cause of the crash? Look for an hs_err*.log file. This file should be in \%SYSTEMROOT%\system32. If the user does not have write permission to there, then it will go to the user's TEMP directory. I'm not sure about win2k, but when using Win2003 explorer's 'search' feature will not search the 'Documents and Settings' folder. This is where the user's TEMP folder is by default. I wasted waaay too much time learning this the hard way. You can use a command prompt to search the drive. Charlie -Original Message- From: Adrian Kristiawan [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 7:52 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: NT Service terminates Importance: High I have a similiar problem with you, I am using Tomcat 4.1.18, but currently I'm not running it as a Windows Service on Windows 2000 Server, instead I start the Tomcat service by clicking the Start Tomcat shortcut in the windows desktop. Whenever there is a communication link error or the communication is down between the client and the server where Tomcat resides, the Tomcat service just stops by itself. I thought the solution to my problem was to start the Tomcat as a windows service,but you stated otherwise, now I'm confused on how to fix my problem. Is it also true that if the load is too big, the Tomcat service will automatically stop by itself? Can anyone help us on this matter? Thanks. ---Original Message--- From: Tomcat Users List Date: 03/08/04 17:31:40 To: Tomcat Subject: NT Service terminates I have Tomcat 4.1.24 running as Windows Service on Windows 2000 Server - hosting a number of applications. I currently have it running When I run a simple load test using Microsoft Stress Tester - as I increase the load I can repeatedly force the Window Service to terminate. I'm only running with a load of 100 users. When I run Tomcat from the command-line as an application and I repeat the test - Tomcat runs fine - performance is fine. No problems. So what is it about running Tomcat as a service that makes it so easy to bring down? I'm tempted to blame the OS - but that doesn't really solve the problem - or explain what the difference is. Has anyone else observed this? Is it possible to get Tomcat to start as an application - on start-up i.e. as if it were a service - but running as an application. Sorry if that's a meaningless question. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now IncrediMail - Email has finally evolved - Click Here - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: NT Service terminates
I had found the JVM version 1.4.0_02 (as a service) to provide random crashes, not particularly caused by load, that went away when changing to 1.4.0_04. This was with tomcat 4.1.24. I am now using 4.1.29/JDK 1.4.2_02 without a problem. Do you have any native libraries(db?) that may be the cause of the crash? Look for an hs_err*.log file. This file should be in \%SYSTEMROOT%\system32. If the user does not have write permission to there, then it will go to the user's TEMP directory. I'm not sure about win2k, but when using Win2003 explorer's 'search' feature will not search the 'Documents and Settings' folder. This is where the user's TEMP folder is by default. I wasted waaay too much time learning this the hard way. You can use a command prompt to search the drive. Charlie -Original Message- From: Adrian Kristiawan [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 7:52 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: NT Service terminates Importance: High I have a similiar problem with you, I am using Tomcat 4.1.18, but currently I'm not running it as a Windows Service on Windows 2000 Server, instead I start the Tomcat service by clicking the Start Tomcat shortcut in the windows desktop. Whenever there is a communication link error or the communication is down between the client and the server where Tomcat resides, the Tomcat service just stops by itself. I thought the solution to my problem was to start the Tomcat as a windows service,but you stated otherwise, now I'm confused on how to fix my problem. Is it also true that if the load is too big, the Tomcat service will automatically stop by itself? Can anyone help us on this matter? Thanks. ---Original Message--- From: Tomcat Users List Date: 03/08/04 17:31:40 To: Tomcat Subject: NT Service terminates I have Tomcat 4.1.24 running as Windows Service on Windows 2000 Server - hosting a number of applications. I currently have it running When I run a simple load test using Microsoft Stress Tester - as I increase the load I can repeatedly force the Window Service to terminate. I'm only running with a load of 100 users. When I run Tomcat from the command-line as an application and I repeat the test - Tomcat runs fine - performance is fine. No problems. So what is it about running Tomcat as a service that makes it so easy to bring down? I'm tempted to blame the OS - but that doesn't really solve the problem - or explain what the difference is. Has anyone else observed this? Is it possible to get Tomcat to start as an application - on start-up i.e. as if it were a service - but running as an application. Sorry if that's a meaningless question. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now IncrediMail - Email has finally evolved - Click Here
NT Service terminates
I have Tomcat 4.1.24 running as Windows Service on Windows 2000 Server - hosting a number of applications. I currently have it running When I run a simple load test using Microsoft Stress Tester - as I increase the load I can repeatedly force the Window Service to terminate. I'm only running with a load of 100 users. When I run Tomcat from the command-line as an application and I repeat the test - Tomcat runs fine - performance is fine. No problems. So what is it about running Tomcat as a service that makes it so easy to bring down? I'm tempted to blame the OS - but that doesn't really solve the problem - or explain what the difference is. Has anyone else observed this? Is it possible to get Tomcat to start as an application - on start-up i.e. as if it were a service - but running as an application. Sorry if that's a meaningless question. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: NT Service terminates
I have a similiarproblem with you, I amusing Tomcat 4.1.18, but currently I'm not running it as a Windows Service on Windows 2000 Server, instead I start the Tomcat service byclicking the Start Tomcatshortcut in the windows desktop. Whenever there is a communication link error or the communication is downbetween the client and the server where Tomcat resides, the Tomcat service just stops by itself. I thought the solution to my problem was to start the Tomcat as a windows service,but you stated otherwise, now I'm confused on how to fix my problem. Is it also true that if the load is too big, the Tomcat service will automatically stop by itself? Can anyone help us on this matter? Thanks. ---Original Message--- From: Tomcat Users List Date: 03/08/04 17:31:40 To: Tomcat Subject: NT Service terminates I have Tomcat 4.1.24 running as Windows Service on Windows 2000 Server- hosting a number of applications.I currently have it running When I run a simple load test using Microsoft Stress Tester - as I increase the load I can repeatedly force the Window Service to terminate.I'm only running with a load of 100 users. When I run Tomcat from the command-line as an application and I repeat the test - Tomcat runs fine - performance is fine.No problems. So what is it about running Tomcat as a service that makes it so easy to bring down?I'm tempted to blame the OS - but that doesn't really solve the problem - or explain what the difference is. Has anyone else observed this? Is it possible to get Tomcat to start as an application - on start-up i.e. as if it were a service - but running as an application.Sorry if that's a meaningless question. - Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now IncrediMail - Email has finally evolved - Click Here
NT service shutdown (w2k 5.0.18)
Can anyone help? I'm running 5.0.18 under w2k If I go to the services gui and stop the 'apache tomcat' service it does so but takes always approx 1 minute to do so. From the command line if I do net stop tomcat5 it says The Apache Tomcat service is stopping. The Apache Tomcat service could not be stopped. but does stop it, again after approx 1 minute Is there a way to force shutdown immediately. I'd like for the batch file to wait until is has actually stopped. Any help greatly appreciated Thanks, Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat running as NT service can't locate JNI DLLs
I have a web app that utilizes various 3rd party/in-house JNI DLLs, but System.loadLibrary() fails to locate them only when Tomcat 4.1 is run as a service under Win2k. Two odd surrounding issues: (a) Tomcat is run from Drive D:, the DLLs are located drive D:\myDLLs and the system PATH has D:\myDLLs directory in it. (b) Running Tomcat in console mode _works_ with the DLLs in D:\myDLLs. (c) Running Tomcat as a service fails however...but if I simply move the DLLs to C:\myDLLs it works. So, on the surface it seems to be ignoring the drive prefix in the PATH. I've tried un-installing, then re-installing the Tomcat service using the '-path' option pointing to D:\myDLLs directory, but it still fails. I have a feeling I'm missing something fundamental, but I'm just not seeing it. Has anyone dealt with this before? Thanks in advance Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NT Service shutsdown unexpectedly
My setup is Win2k server, Tomcat 4.1.24 installed as a Windows Service, IIS 5, JSDK 1.4.1_02. I'm using the JK2 connector and here's the copy of my workers2.properties. # change this to your own location [shm] file=D:/Program Files/Apache Group/Tomcat 4.1/temp/shm.txt size=1048576 # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 [logger.file:0] level=INFO file=D:/Program Files/Apache Group/Tomcat 4.1/logs/iis_jk2.log # uses the newly created File logger as the default one.. [workerEnv:] logger=logger.file:0 # Map the Tomcat examples webapp to the Web server uri space [uri:/axis/services/AuthService*] [uri:/policeAdmin/*] [uri:/ccWeb/*] [uri:/manager/*] I've developed a Struts based app that uses the Commons Connection Pool to read/ write data from an Oracle database. Everything works fine when I'm testing the app by myself. The only slightly puzzling thing is that I get a stream of errors logged from the ISAPI filter - typical messages are: Thu Feb 12 09:51:24 2004] (error ) [jk_worker_ajp13.c (416)] ajp13.service() ajpGetReply recoverable error 12 [Thu Feb 12 09:51:24 2004] (error ) [jk_channel_socket.c (557)] channelSocket.receive(): Error receiving message body -1 0 [Thu Feb 12 09:51:24 2004] (error ) [jk_workerEnv.c (482)] workerEnv.processCallbacks() Error reading reply So far I've ignored these - because everything seems to work. Can anyone tell me how to stop these messages? However - when I increase the load on the site in stress testing - the Tomcat service unexpectedly shutsdown. This is repeatable. I get a Dr Watson in the event viewer log - but no indications of any other error in the Tomcat logs But if I run Tomcat from the command line there is no problem - the site copes well with the extra load. I've noticed that have been other posts describing similar behaviour. Is this a reported bug? Is there a cure? Thanks in advance Tariq - BT Yahoo! Broadband - Free modem offer, sign up online today and save £80
RE: need help adding classpath to Tomcat 5.0.18 NT Service
Hi folks. I'm still unsuccessful at adding an explicit classpath to Tomcat when running as a service via the -Djava.class.path= switch detailed below. Can someone confirm or deny that this is the proper way to add an explicit classpath to the service? If so, I'll log the bug. Thanks, -R -Original Message- From: Robert Ensinger [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 11:40 PM To: [EMAIL PROTECTED] Subject: need help adding classpath to Tomcat 5.0.18 NT Service Hi Folks, I'm working with an app that needs a classpath kickstart to run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\. When starting the server via the startup.bat, the app works properly when the set classpath variable in the setclasspath.bat is defined as: set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar Now I wish to see this app run when Tomcat is started as a service. Under Java VM in the configuration utility I have added: -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar My Java Options box reads as follows: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0 -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar -Xrs This isn't working. I've read the docs and How Tos, spelunked this list, googled, added this classpath to the systems environmental variables, to the catalina.xml, and even the catalina.proprties. None of this seems to work. Where is the proper spot to add a classpath to Tomcat running as a service? What is the proper syntax? (examples?) My java version is 1.4.2. I have successfully setup this app in JRun4 Weblogic 8.1 running as services. Need a little help with the Tomcat. Thanks! Robert Ensinger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: need help adding classpath to Tomcat 5.0.18 NT Service
If you moved engine.jar from the shared/lib folder to the common/lib folder, would that remove the need to explicitly set the classpath? -Original Message- From: Robert Ensinger [mailto:[EMAIL PROTECTED] Sent: 06 February 2004 16:49 To: 'Tomcat Users List' Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service Hi folks. I'm still unsuccessful at adding an explicit classpath to Tomcat when running as a service via the -Djava.class.path= switch detailed below. Can someone confirm or deny that this is the proper way to add an explicit classpath to the service? If so, I'll log the bug. Thanks, -R -Original Message- From: Robert Ensinger [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 11:40 PM To: [EMAIL PROTECTED] Subject: need help adding classpath to Tomcat 5.0.18 NT Service Hi Folks, I'm working with an app that needs a classpath kickstart to run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\. When starting the server via the startup.bat, the app works properly when the set classpath variable in the setclasspath.bat is defined as: set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar Now I wish to see this app run when Tomcat is started as a service. Under Java VM in the configuration utility I have added: -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar My Java Options box reads as follows: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0 -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar -Xrs This isn't working. I've read the docs and How Tos, spelunked this list, googled, added this classpath to the systems environmental variables, to the catalina.xml, and even the catalina.proprties. None of this seems to work. Where is the proper spot to add a classpath to Tomcat running as a service? What is the proper syntax? (examples?) My java version is 1.4.2. I have successfully setup this app in JRun4 Weblogic 8.1 running as services. Need a little help with the Tomcat. Thanks! Robert Ensinger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: need help adding classpath to Tomcat 5.0.18 NT Service
I gave moving the jar a shot yesterday just to be sure but no dice. I'm not the developer of this app so I can't speak to why its necessary, but the only way to get full functionality from this app is to explicitly add the classpath to the server startup. This works successfully on Weblogic 8.1, SunOne, JRun4. I can get the full app to work properly in Tomcat when started via the startup.bat (classpath added to the setclasspath.bat); now the problem I need to solve is how I duplicate this success when running Tomcat as an NT Service. I haven't found any documentation that specifically addresses adding the classpath to the nt service startup, so I've tried the approaches listed below. Until I can confirm or deny I'm adding the classpath properly I don't know if I have a bug here. I will check if anyone has added an enhancement request for better documentation on the configure tomcat utility. -Original Message- From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 12:00 PM To: 'Tomcat Users List' Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service If you moved engine.jar from the shared/lib folder to the common/lib folder, would that remove the need to explicitly set the classpath? -Original Message- From: Robert Ensinger [mailto:[EMAIL PROTECTED] Sent: 06 February 2004 16:49 To: 'Tomcat Users List' Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service Hi folks. I'm still unsuccessful at adding an explicit classpath to Tomcat when running as a service via the -Djava.class.path= switch detailed below. Can someone confirm or deny that this is the proper way to add an explicit classpath to the service? If so, I'll log the bug. Thanks, -R -Original Message- From: Robert Ensinger [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 11:40 PM To: [EMAIL PROTECTED] Subject: need help adding classpath to Tomcat 5.0.18 NT Service Hi Folks, I'm working with an app that needs a classpath kickstart to run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\. When starting the server via the startup.bat, the app works properly when the set classpath variable in the setclasspath.bat is defined as: set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar Now I wish to see this app run when Tomcat is started as a service. Under Java VM in the configuration utility I have added: -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar My Java Options box reads as follows: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0 -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar -Xrs This isn't working. I've read the docs and How Tos, spelunked this list, googled, added this classpath to the systems environmental variables, to the catalina.xml, and even the catalina.proprties. None of this seems to work. Where is the proper spot to add a classpath to Tomcat running as a service? What is the proper syntax? (examples?) My java version is 1.4.2. I have successfully setup this app in JRun4 Weblogic 8.1 running as services. Need a little help with the Tomcat. Thanks! Robert Ensinger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
need help adding classpath to Tomcat 5.0.18 NT Service
Hi Folks, I'm working with an app that needs a classpath kickstart to run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\. When starting the server via the startup.bat, the app works properly when the set classpath variable in the setclasspath.bat is defined as: set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar Now I wish to see this app run when Tomcat is started as a service. Under Java VM in the configuration utility I have added: -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar My Java Options box reads as follows: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0 -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar -Xrs This isn't working. I've read the docs and How Tos, spelunked this list, googled, added this classpath to the systems environmental variables, to the catalina.xml, and even the catalina.proprties. None of this seems to work. Where is the proper spot to add a classpath to Tomcat running as a service? What is the proper syntax? (examples?) My java version is 1.4.2. I have successfully setup this app in JRun4 Weblogic 8.1 running as services. Need a little help with the Tomcat. Thanks! Robert Ensinger
RE: need help adding classpath to Tomcat 5.0.18 NT Service
why don't you just add the files to /common/endorsed/ that way they will get automatically added to the tomcat classpath without you setting any variables. also, setting up tomcat in a file system with spaces in the paths, can be a debug pain in the butt, I would try to avoid doing that Filip -Original Message- From: Robert Ensinger [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 8:40 PM To: [EMAIL PROTECTED] Subject: need help adding classpath to Tomcat 5.0.18 NT Service Hi Folks, I'm working with an app that needs a classpath kickstart to run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\. When starting the server via the startup.bat, the app works properly when the set classpath variable in the setclasspath.bat is defined as: set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar Now I wish to see this app run when Tomcat is started as a service. Under Java VM in the configuration utility I have added: -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar My Java Options box reads as follows: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0 -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar -Xrs This isn't working. I've read the docs and How Tos, spelunked this list, googled, added this classpath to the systems environmental variables, to the catalina.xml, and even the catalina.proprties. None of this seems to work. Where is the proper spot to add a classpath to Tomcat running as a service? What is the proper syntax? (examples?) My java version is 1.4.2. I have successfully setup this app in JRun4 Weblogic 8.1 running as services. Need a little help with the Tomcat. Thanks! Robert Ensinger --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat 4.1.27 as NT service - logs
Hi, I had no problems installing the tomcat as service but its deleting my logs anytime I restart the server, Can someone tell me how to change the configuration so it will not delete the logs? Regards, Yuval - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Nt Service Log
Hi all, I have install my tomcat 5.18 as a service NT with the parameter --Java C:\j2sdk1.4.2_03\jre\bin\client\jvm.dll and --StdOutputFile %CATALINA_HOME%\logs\stdout.log --StdErrorFile %CATALINA_HOME%\logs\stderr.log. %CATALINA_HOME% is correctly set When i start the service there is no log print into stdout.log why ??? When i use --Java java it's work. thanks a lot for your answer. Olivier.
NT Service Stopped
Hi, I am using Apache2.0.44, Mod_jk2 and Tomcat4.1.24. All of sudden my tomcat service (NT Service) stopped and checked the event viewer log found nothing. Tomcat service configured as Automatic and using Local System Account for logon. Any help will be greatly appreciated. Thanks, Rama Reddy Pottipati _ | Sr. Technical Specialist | iGATE Global Solutions Limited | Office: 412.406.4394 | Fax: 412.494.9272 | [EMAIL PROTECTED] | | 246 Alpha Drive, Pittsburgh, PA 15238 | Website: http://www.igate.com/ www.igate.com |
Working with the Jakarta NT Service document
The document is great, except for section 1. Get a hold on the NT Executable The link doesn't link to the jk_nt_service.exe, and I cannot find the pesky file on the apache site at all... in fact, there is no win32/i386 directory in any of the binary archives that I found. The document is unclear on where to find this .exe. I haven't found it yet, but hold out hope that it does exist... Scott _ Winterize your home with tips from MSN House Home. http://special.msn.com/home/warmhome.armx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Working with the Jakarta NT Service document
It's with the TC 3.3 download. Go to http://jakarta.apache.org/site/binindex.cgi, click on the 'Tomcat 3' link, click on the 'bin' link, and you will find it. Scott Schlatter [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The document is great, except for section 1. Get a hold on the NT Executable The link doesn't link to the jk_nt_service.exe, and I cannot find the pesky file on the apache site at all... in fact, there is no win32/i386 directory in any of the binary archives that I found. The document is unclear on where to find this .exe. I haven't found it yet, but hold out hope that it does exist... Scott _ Winterize your home with tips from MSN House Home. http://special.msn.com/home/warmhome.armx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Nt Service and Sax Parser
Hi, I have got very strange problem. Here is the problem If i write a bat file to start Tomcat like this set TOMCAT_HOME=C:\tomcat set JAVA_HOME=C:\j2sdk1.4.1 set RTDIR=c:\rt set PATH=%RTDIR%\bin;c:\tomcat\;c:\tomcat\bin;. set CATALINA_OPTS=-Xmx1024m set CATALINA_HOME=C:\tomcat set CATALINA_BASE=C:\tomcat set CLASSPATH=C:\tomcat;. cd %RTDIR% call %TOMCAT_HOME%\bin\shutdown.bat call %TOMCAT_HOME%\bin\startup.bat Tomcat starts and my application works well. In my application i used SAX parser APIs so i put crimson.jar and jaxp.jar to TOMCAT_HOME\common\endorsed Anyway this is not problem, the problem is when i want to make Tomcat NT service, my JSP pages which are uses SAX Parser API doesn't work. Here is the comments which i tried to make NT Service ** set TOMCAT_HOME=C:\tomcat set JAVA_HOME=C:\j2sdk1.4.1 set RTDIR=c:\rt set PATH=%RTDIR%\bin;C:\tomcat;C:\tomcat;. set CATALINA_OPTS=-Xmx1024m set CATALINA_HOME=C:\tomcat set CATALINA_BASE=C:\tomcat set CLASSPATH=C:\tomcat;. %CATALINA_HOME%\bin\tomcat.exe -install tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\comm on\lib;%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatali na.home=%CATALINA_HOME% -djava.home=%JAVA_HOME%\jre %CATALINA_OPTS% -Dfile.encoding=ISO-8859-9 -Xrs -start org.apache.catalina.startup.BootstrapService -params start -config %CATALINA_HOME%\conf\server.xml -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log -current c:\rt -path c:\rt ** My code is same, crimson.jar and jaxp.jar files are same, the difference is between normal start and NT start. Any idea ?? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NT Service and Home Directory
Hey all, I'm running tomcat 4.1.29 as a service on a windows xp machine. My webapp uses some CORBA stuff and needs a jacorb.properties file located in my home directory. I've tried setting up the service to run using my user account but it can't find the properties file in my home directory. Is there anyway to setup the service to run as if I was logged into the machine and ran 'catalina run'?? Cheers, Graham Graham Lounder - Java Developer CARIS Spatial Components Division [EMAIL PROTECTED] Phone: (506) 458-8533 Fax:(506) 459-3849 NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME AS A WRITTEN DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat as NT service with deleting work folder
Does anyone know of a way to delete the tomcat\work folder prior to startup of tomcat as an NT service. Normally we add a line to the batch script to remove the folder but how is that done when tomcat is running as a NT service (for NT 4.0 and 2000)? The Win2000 Services menu provide a dependencies tab but NT4 doesn't. Can we make tomcat.exe service depend on another windows *.exe that deletes the work directory? TIA Giao Nguyen
Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Also note that you have to adjust the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\JVM Library -- you have to make sure that's pointing to a real copy of jvm.dll -- the default is c:\program files\Java\j2rex.x.x\bin\client\jvm.dll and if that's not where you have Java installed, all kinds of weird things will happen. - Original Message - From: Goehring, Chuck Mr., RCI - San Diego [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:37 PM Subject: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
I got a mail loop error?? -Original Message- From: Goehring, Chuck Mr., RCI - San Diego Sent: Tuesday, October 21, 2003 10:49 AM To: 'Jose Euclides da Silva Junior - DATAPREVRJ'; 'Tomcat Users List' Subject: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides
Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Just a thought. You can reinstall Tomcat to a different port, with the NT Service checked. Or better yet, go ahead and install the Tomcat 4.1.2x to a different port. This is a great opportunity to upgrade. Put some of your apps there for test runs. If there is no issue, then move everything over to the new installation. After that, you can change the port number back. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:45 PM Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
I will tried it, but i am afraid of unknowed changes done by Tcservcfg on Windows register. Since Tomcat isnt running anyway, i will reinstall it to the same port. One question: Do you know how could i remove the remained Tomcat service? Euclides. -Mensagem original- De: epyonne [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 15:13 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Just a thought. You can reinstall Tomcat to a different port, with the NT Service checked. Or better yet, go ahead and install the Tomcat 4.1.2x to a different port. This is a great opportunity to upgrade. Put some of your apps there for test runs. If there is no issue, then move everything over to the new installation. After that, you can change the port number back. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:45 PM Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
The Tomcat download site has an executable file which is built with InstallShield. If you install Tomcat using that executable file, you should have an Uninstall Tomcat option on your Start|Programs menu. Or you can always go to the Add/Remove Programs to remove it. Hope this helps. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 01:55 PM Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) I will tried it, but i am afraid of unknowed changes done by Tcservcfg on Windows register. Since Tomcat isnt running anyway, i will reinstall it to the same port. One question: Do you know how could i remove the remained Tomcat service? Euclides. -Mensagem original- De: epyonne [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 15:13 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Just a thought. You can reinstall Tomcat to a different port, with the NT Service checked. Or better yet, go ahead and install the Tomcat 4.1.2x to a different port. This is a great opportunity to upgrade. Put some of your apps there for test runs. If there is no issue, then move everything over to the new installation. After that, you can change the port number back. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:45 PM Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Dear Chuck and friends, here is all steps taken: 1 - disable old tomcat's service 2 - download new tomcat 4.1.17 3 - install it as a NT service 4 - process of app configuration ( server.xml, web.xml and adding folders ) AGAIN, the old big problem still alive: only the static pages are availables, so whenever my app tries to use ResultSet, I get that known error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) Really, what is wrong with this procedure? Let me remind you: since i have runned this fucking tcservcfg ( to turn tomcat a service), my app have never been running correctly anymore.Probably, some NT internal configuration was wrongly mismatched by tcservcfg. Any last hint? -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 16:00 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Apache. Org (E-mail) Assunto: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
The first thing I would look into is logging some info about the ResultSet you are getting back. Is the ResultSet from execute query null? It probably is. Then pin point the problem to Statement.executeQuery. If this is the problem, then I think since the error you are receiving is in a JDBC method and this is a method in the Oracle driver you may want to try a different database (just make some simple tables and things for testing) make some simple pages and test the Oracle Driver and the other Database. If the other driver works fine, and the Oracle Driver is the one having the problem; then you need to contact Oracle about the issue. Explain that with one users permissions you can do this Show them an example. Then, with this users this happens. Also, show them code using a different driver. Working with Oracle on issues is never fun, and it is never fast, and they always want someone else to front the cost...even if it is their fault. But, at the end of the day, the code in the JDBC driver is their responsibility. I would go that route. It will pin point you to the source of the problem with proof that X works and Y doesn't. Y happens to be Oracles thin db driver. Find out what it may be accessing in the file system or other things that could be causing this problem. Hope that helps you some. Wade -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 4:40 PM To: 'Tomcat Users List'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Dear Chuck and friends, here is all steps taken: 1 - disable old tomcat's service 2 - download new tomcat 4.1.17 3 - install it as a NT service 4 - process of app configuration ( server.xml, web.xml and adding folders ) AGAIN, the old big problem still alive: only the static pages are availables, so whenever my app tries to use ResultSet, I get that known error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) Really, what is wrong with this procedure? Let me remind you: since i have runned this fucking tcservcfg ( to turn tomcat a service), my app have never been running correctly anymore.Probably, some NT internal configuration was wrongly mismatched by tcservcfg. Any last hint? -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 16:00 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Apache. Org (E-mail) Assunto: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Tomcat (as far as I know) doesn't use the registry settings. The service side of things probably would, but tomcat should be looking at it's config files. Check your oracle driver version, you want to make sure that you're either on the current driver for your version of the database, or the latest driver. Either or, doesn't matter to much either way. Another thing I've seen is when working with servlets and dispatching to a jsp that the url for the dispatch which works on one server may not work on another. You could be barking up the wrong tree with the result set, even though the error says that it's the line with the result set. I've had a couple of times where the line number from the error didn't exactly match up with the line that it should have been. I usually find that it's helpful to put in debug output when I'm seriously stumped. --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:40 PM To: 'Tomcat Users List'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Dear Chuck and friends, here is all steps taken: 1 - disable old tomcat's service 2 - download new tomcat 4.1.17 3 - install it as a NT service 4 - process of app configuration ( server.xml, web.xml and adding folders ) AGAIN, the old big problem still alive: only the static pages are availables, so whenever my app tries to use ResultSet, I get that known error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) Really, what is wrong with this procedure? Let me remind you: since i have runned this fucking tcservcfg ( to turn tomcat a service), my app have never been running correctly anymore.Probably, some NT internal configuration was wrongly mismatched by tcservcfg. Any last hint? -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 16:00 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Apache. Org (E-mail) Assunto: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, Regarding the service installed by the tcservcfg - don't know anything about what it did. But, since you installed the service outside of the Tomcat installer, it probably won't uninstall it. Could be that tool will remove it also, don't know. There is no GUI command to remove services that I know of. Generically, to remove a service, you have to go into the registry with regedit by using the run command on the start menu. This is generally considered dangerous so you must pay attention and be carefull. And backup anything that is important first. Don't do this if your not used to using regedit.exe to fix things. Use run conmmand or Command prompt to execute regedit.exe. Go to HKEY_LOCAL_MACHINE Under that, go to SYSTEM Under that, go to CurrentControlSet Under that, go to Services There you should see Apache Tomcat listed on the left side. When you clisk it, you will see DisplayName on the right with Apache Tomcat as the value. Make sure the Apache Tomcat on the left is selected by clicking it again and use the menu to select Edit/Delete. That should remove the Apache Tomcat from the left and values for it from the right. Close regedit and reboot. That should do it. Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Steps to make Tomcat a NT service
Hi guys, where can i find all steps to make Tomcat 4.1.18 a NT service? Regards, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Steps to make Tomcat a NT service
FAQ. http://jakarta.apache.org/tomcat/faq/windows.html -Tim Jose Euclides da Silva Junior - DATAPREVRJ wrote: Hi guys, where can i find all steps to make Tomcat 4.1.18 a NT service? Regards, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Steps to make Tomcat a NT service
At the Jakarta Tomcat download site, there is an executable file which is an install program (I believe it is built with InstallShield). Run that and it will set up Tomcat as NT service for you. By the way, that is for 4.1.24, and I don't know if they have the same install program for 4.1.18. Hope this helps. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 08:31 AM Subject: Steps to make Tomcat a NT service Hi guys, where can i find all steps to make Tomcat 4.1.18 a NT service? Regards, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Steps to make Tomcat a NT service
I ve gotten this error message when i tried to run the main application (tcserver.exe). Does anyone know why? Configuration Service name tomcat-www Catalina home C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager Catalina base C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager Tomcat config file C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\conf\server.xml Use security manager 0 Security policy file C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\conf\catalina.policy Java home c:\j2sdk1.4.1_01 JVM Path c:\j2sdk1.4.1_01\jre\bin\server\jvm.dll Classpath C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\bin\bootstrap.jar;C:\jak arta-tomcat-4.1.18\bin\tomcat-service-manager\common\lib;c:\j2sdk1.4.1_01\li b\tools.jar Temp directory C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\temp System.out file C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\logs System.err file C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\logs Initial heap Max heap Stack size JVM server -Xrs 1 Info, Errors and Warnings 'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\conf\server.xml' is specified for 'Tomcat config file' but it does not exist. Tomcat may not start without it. 'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\bin\tomcat.exe' is specified for 'Tomcat service executable' but it does not exist. Tomcat may not start without it. 'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\temp' is specified for 'Temp directory' but it does not exist. Create it? 'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\logs' is specified for 'System.outfile' but it does not exist. Create it? 'C:\jakarta-tomcat-4.1.18\bin\tomcat-service-manager\logs' is specified for 'System.err file' but it does not exist. Create it? -Mensagem original- De: Tim Funk [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 16 de outubro de 2003 10:33 Para: Tomcat Users List Assunto: Re: Steps to make Tomcat a NT service FAQ. http://jakarta.apache.org/tomcat/faq/windows.html -Tim Jose Euclides da Silva Junior - DATAPREVRJ wrote: Hi guys, where can i find all steps to make Tomcat 4.1.18 a NT service? Regards, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javac problems with Tomcat as NT Service
I have installed the J2SE and J2EE SDKs to c:\java. I installed Tomcat to c:\Tomcat. I have X_HOME variables for both installations in my computers Environment Variables. The problem is that the SDKs also install a JRE to c:\program files\java\. When I run Tomcat in a console window, everything runs fine. Tomcat uses JAVA_HOME which has javac. When Tomcat runs as a service, I assume it is using the JRE in Program Files because JSPs that have not been compiled cannot be! I receive an error and the logs point to the fact that Tomcat cannot create the javac process. Is there a way to set the Tomcat service to use my JAVA_HOME installation instead of the Program Files JRE? Are there any other solutions to this problem? I don't want to have to precompile every JSP page before I put code onto my production box, nor do I want to run my production server in a console window started by hand. Thanks in advance, Mark Turansky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javac problems with Tomcat as NT Service
-Original Message- From: Turansky, Mark [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 1:57 PM To: [EMAIL PROTECTED] Subject: javac problems with Tomcat as NT Service Is there a way to set the Tomcat service to use my JAVA_HOME installation instead of the Program Files JRE? Are there any other solutions to this problem? I don't want to have to precompile every JSP page before I put code onto my production box, nor do I want to run my production server in a console window started by hand. If you used the Windows Installer for Tomcat, it used what was set as JAVA_HOME when it was installed. (I think). What you can do is, by hand, uninstall the service with tomcat.exe and then install it by hand. Or you can also tweak the registry to point to the right JAVA_HOME. See http://www.alexandriasc.com/software/JavaService/index.html for more information about uninstalling and installing the service by hand, since this is what Tomcat uses. -- Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javac problems with Tomcat as NT Service
Far simpler to just edit the registry. -Original Message- From: Shatzer, Larry [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 2:31 PM To: 'Tomcat Users List' Subject: RE: javac problems with Tomcat as NT Service -Original Message- From: Turansky, Mark [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 1:57 PM To: [EMAIL PROTECTED] Subject: javac problems with Tomcat as NT Service Is there a way to set the Tomcat service to use my JAVA_HOME installation instead of the Program Files JRE? Are there any other solutions to this problem? I don't want to have to precompile every JSP page before I put code onto my production box, nor do I want to run my production server in a console window started by hand. If you used the Windows Installer for Tomcat, it used what was set as JAVA_HOME when it was installed. (I think). What you can do is, by hand, uninstall the service with tomcat.exe and then install it by hand. Or you can also tweak the registry to point to the right JAVA_HOME. See http://www.alexandriasc.com/software/JavaService/index.html for more information about uninstalling and installing the service by hand, since this is what Tomcat uses. -- Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javac problems with Tomcat as NT Service
At 22:56 26/08/03, you wrote: I have installed the J2SE and J2EE SDKs to c:\java. I installed Tomcat to c:\Tomcat. I have X_HOME variables for both installations in my computers Environment Variables. The problem is that the SDKs also install a JRE to c:\program files\java\. When I run Tomcat in a console window, everything runs fine. Tomcat uses JAVA_HOME which has javac. When Tomcat runs as a service, I assume it is using the JRE in Program Files because JSPs that have not been compiled cannot be! I receive an error and the logs point to the fact that Tomcat cannot create the javac process. Is there a way to set the Tomcat service to use my JAVA_HOME installation instead of the Program Files JRE? Are there any other solutions to this problem? I don't want to have to precompile every JSP page before I put code onto my production box, nor do I want to run my production server in a console window started by hand. Thanks in advance, Mark Turansky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I've never experienced the problem (i'm not running NT) but it seems to me that you need to unset your path and set your JAVA_HOME to your java SDK dir. This could be done in tomcat.conf (maybe its .bat on an NT) or otherwise in catalina.bat There are 10 types of people when it comes to binary, those that understand it.. and those who don't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javac problems with Tomcat as NT Service
Edit the registry. Off the top of my head it is something like: HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services Apache Tomcat 4.1 Parameters You need to change the value for the JVM library to point to the jvm.dll in the server directory of your jre. Should be something like JAVA_HOME/jre/bin/server/jvm.dll. When ran as a service, the environment variables are not read -- possibly because Java can not read environment variables (at least without using methods which have been deprecated.) -Original Message- From: Fred Kreek [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 10:45 PM To: Tomcat Users List Subject: Re: javac problems with Tomcat as NT Service At 22:56 26/08/03, you wrote: I have installed the J2SE and J2EE SDKs to c:\java. I installed Tomcat to c:\Tomcat. I have X_HOME variables for both installations in my computers Environment Variables. The problem is that the SDKs also install a JRE to c:\program files\java\. When I run Tomcat in a console window, everything runs fine. Tomcat uses JAVA_HOME which has javac. When Tomcat runs as a service, I assume it is using the JRE in Program Files because JSPs that have not been compiled cannot be! I receive an error and the logs point to the fact that Tomcat cannot create the javac process. Is there a way to set the Tomcat service to use my JAVA_HOME installation instead of the Program Files JRE? Are there any other solutions to this problem? I don't want to have to precompile every JSP page before I put code onto my production box, nor do I want to run my production server in a console window started by hand. Thanks in advance, Mark Turansky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I've never experienced the problem (i'm not running NT) but it seems to me that you need to unset your path and set your JAVA_HOME to your java SDK dir. This could be done in tomcat.conf (maybe its .bat on an NT) or otherwise in catalina.bat There are 10 types of people when it comes to binary, those that understand it.. and those who don't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javac problems with Tomcat as NT Service
This is perfect, thank you! -Original Message- From: John Corrigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 4:34 AM To: Tomcat Users List Subject: RE: javac problems with Tomcat as NT Service Edit the registry. Off the top of my head it is something like: HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services Apache Tomcat 4.1 Parameters You need to change the value for the JVM library to point to the jvm.dll in the server directory of your jre. Should be something like JAVA_HOME/jre/bin/server/jvm.dll. When ran as a service, the environment variables are not read -- possibly because Java can not read environment variables (at least without using methods which have been deprecated.) -Original Message- From: Fred Kreek [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 10:45 PM To: Tomcat Users List Subject: Re: javac problems with Tomcat as NT Service At 22:56 26/08/03, you wrote: I have installed the J2SE and J2EE SDKs to c:\java. I installed Tomcat to c:\Tomcat. I have X_HOME variables for both installations in my computers Environment Variables. The problem is that the SDKs also install a JRE to c:\program files\java\. When I run Tomcat in a console window, everything runs fine. Tomcat uses JAVA_HOME which has javac. When Tomcat runs as a service, I assume it is using the JRE in Program Files because JSPs that have not been compiled cannot be! I receive an error and the logs point to the fact that Tomcat cannot create the javac process. Is there a way to set the Tomcat service to use my JAVA_HOME installation instead of the Program Files JRE? Are there any other solutions to this problem? I don't want to have to precompile every JSP page before I put code onto my production box, nor do I want to run my production server in a console window started by hand. Thanks in advance, Mark Turansky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I've never experienced the problem (i'm not running NT) but it seems to me that you need to unset your path and set your JAVA_HOME to your java SDK dir. This could be done in tomcat.conf (maybe its .bat on an NT) or otherwise in catalina.bat There are 10 types of people when it comes to binary, those that understand it.. and those who don't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat NT service hangs when using -config
Hi, I am using Tomcat 4.1.27 and have encountered the following problem. In my configuration, server.xml is located outside the common CATALINA_BASE directory. (Test.0)If I start the server with the following command: C:\j2re1.4.1_01\bin\java.exe -jar -Duser.dir=C:\Program Files\Tomcat C:\Program Files\Tomcat\bin\bootstrap.jar -config C:\data\server.xml start everything works fine and I can access the webapplications regularly. (Test.1)If I try to start it as a service, where the following values are in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters: Start Class org.apache.catalina.startup.BootstrapService Start Method main Start Param Count 3 Start Param Number 0-config Start Param Number 1C:\data\server.xml Start Param Number 2start (There are others, but they are the standard) then when I start the service tomcat start, no errors are reported in stdout.log and stderr.log, but the webapplication is not started. When I try to connect to the server, the connection hangs (i.e. is established, but the browser hangs waiting for the server to send back some data). (Test.2)If I don't set a custom location for server.xml: Start Param Count 1 Start Param Number 0start and leave server.xml in the conf directory, everything works fine again. (Test.3)But if I test with server.xml in conf directory, and the following parameters: Start Param Count 2 Start Param Number 0-debug Start Param Number 1start then the server hangs exaclty like in the first case (only more info is written to stdout.log). This leads me thinking that it has to do with some parameter count thing, but I recompiled CatalinaService.java with some logging info and it appears that it always get passed the correct number of arguments. And indeed, the -debug is picked up correctly in Test.3 because the logging increases. And if, in Test.1, I specify a non-existing location for server.xml, I get an error in the logs. Finally, I also tried to apply the suggested synchronization patch that solved a problem with the same symptoms (http://issues.apache.org/bugzilla/show_bug.cgi?id=15693), but it made no difference. And it wouldn't explain why if I use only one parameter (start) it works fine... Note that the service, configured as I described in Test.1, was working fine with Tomcat 4.0.4 Ah, I tested all of this on my 2 PCs (XP and w2000), with the same results. I pretty much exhausted my research... has anyone got an idea? Thanks in advance Dan Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify -D to Tomcat NT service
Hey All, I am currently installing Tomcat on a Windows 2000 box and cannot see any way to specifying -Duser.home=x Can anyone tell me how this is done? Thanks, Ramsay -- Ramsay Domloge Lead Developer W : http://www.arkemedia.com T : +44 1256 869 200 F : +44 1256 329 119 E : mailto:[EMAIL PROTECTED] A R K E M E D I A T E C H N O L O G I E S L T D VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4RG http://www.arkemedia.com mailto:[EMAIL PROTECTED] Tel : +44 1256 869 200 Fax : +44 1256 329 119 The information in this e-mail and in any attachments is confidential and is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or a person responsible for passing it on to the intended recipient, you are not authorised to hold a copy of this information and you must therefore not disclose, copy, distribute, or retain this message or any part of it. MAILTO:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify -D to Tomcat NT service
As we were discussing a security issue today (I think on the development list), somebody incidentally wrote how to do this. Here is what they did: quote name=Laurent Blume I added those keys in thr registry for the Tomcat service, and restarted it: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters] JVM Option Count=dword:0005 JVM Option Number 3=-Dfile.encoding=ISO-8859-1 JVM Option Number 4=-Dsun.io.useCanonCaches=false /quote I don't know where this is documented - look in the faq ( http://jakarta.apache.org/tomcat/faq ), or in the various how-to documents at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/13/03 9:57:48 AM Hey All, I am currently installing Tomcat on a Windows 2000 box and cannot see any way to specifying -Duser.home=x Can anyone tell me how this is done? Thanks, Ramsay -- Ramsay Domloge Lead Developer W : http://www.arkemedia.com T : +44 1256 869 200 F : +44 1256 329 119 E : mailto:[EMAIL PROTECTED] A R K E M E D I A T E C H N O L O G I E S L T D VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4RG http://www.arkemedia.com mailto:[EMAIL PROTECTED] Tel : +44 1256 869 200 Fax : +44 1256 329 119 The information in this e-mail and in any attachments is confidential and is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or a person responsible for passing it on to the intended recipient, you are not authorised to hold a copy of this information and you must therefore not disclose, copy, distribute, or retain this message or any part of it. MAILTO:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging applications running in NT Service.
Hi there, I have a webapp that runs fine in Tomcat 4.1.24 standalone or Eclipse-based (Sysdeo plugin). If I start the same code in the JK2 service, I sometimes get application-specific errors that point into the direction a different class set and / or configuration is used, even after a complete restart of Tomcat and even although the standalone webapp works. Are there two different webapp code bases? (I am using pretty much standard configurations) In order to resolve these problems, is there a simple way to: - step-debug a web-application running in Tomcat in NT service mode. - force Tomcat to reload classes at runtime (or at least identify which jars / classes have been loaded by Tomcat). Thanks and regards, Gregor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat as an NT Service
We have just made a small mod to the javaservice.exe program (see also http://www.alexandriasc.com) , known to most of you as tomcat.exe from the tomcat bin directory. If you are interested, please get in touch with [EMAIL PROTECTED] or [EMAIL PROTECTED] The reason for the change is that we wanted to use the Win2000 Server service recovery feature in some cases in order to keep the system alive even when there is a problem. One case in point is a java.lang.OutOfMemory error which is definitely and demonstrably dodgy, probably due to a garbage collecting problem. (Honest). In the original software a System.exit(i) would indeed cause the service to terminate, but always gracefully, i.e. the service was always reported as STOPPED to the Service Control Manager. Since this is not a failure, the service recovery does not come into action. In order to be able to force the service recovery we modified the code to take different actions on different JVM exit codes. A code of 0 is as per usual. No extra error messages, service stops. An exit code 0 a service specific error message is logged in the application log, but the service stops normally. An exit code 0 is considered as a serious fail and will register a service specific message, and FAIL the service. This means that the Service Recovery will come into action. A minute later your system can be up and running again. Note that there is a registry key which determines the system behaviour after service failure: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug Auto = 0 Prompt user with debug window BEFORE terminating the process (and therefore before allowing the service to restart). REQUIRES USER INPUT: Auto = 1 (server default) Don't prompt user with debug window, create dump file and then end the process, therefore allowing the service to restart Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging applications running in NT Service.
Hi there, I have a webapp that runs fine in Tomcat 4.1.18 standalone or Eclipse-based (Sysdeo plugin). If I start the same code in the service, I am getting application-specific errors that point into the direction a different configuration is used. In order to resolve these problems, is there a simple way to: - step-debug a web-application running in Tomcat in NT service mode. - identify which jars have been loaded by Tomcat. Thanks and greets, Gregor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1x running as NT Service Issue
I told you wrong about how to set the memory limits when running as a service. You can set the memory options in the Windows registry using regedit. In regedit, open HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Apache Tomcat 4.1\Parameters Add a string value named: JVM Option Number 3 and set it's value to -Xms100m Add a string value named: JVM Option Number 4 and set it's value to -Xmx100m Change the JVM Option Count to 5 (was 3 at least on my machine. The value of this field must match the number of JVM Option Number x values). You can also write log statements to check allocated and available memory. Following is an example thread that we used. I've cut out a few parts that are specific to our application and the formatting is screwed up from cutting and pasting it, but should be close enough to get you going. public class MemoryMonitor implements Runnable { private boolean done = false; private Runtime rt = Runtime.getRuntime(); public MemoryMonitor() { Thread theThread = new Thread(this); theThread.setDaemon(true); theThread.setPriority(Thread.MIN_PRIORITY); theThread.start(); } public void run() { while (!done) { try { long freeMemory = rt.freeMemory()/1024; long totalMemory = rt.totalMemory()/1024; long memoryUsed = (totalMemory-freeMemory)/1024; long allocatedMemory = (totalMemory/1024); AppLog.info([Memory Monitor] -- +new Timestamp(System.currentTimeMillis()).toString()+ --- Memory Allocated: +(int)allocatedMemory+k); AppLog.info([Memory Monitor] -- +new Timestamp(System.currentTimeMillis()).toString()+ --- Memory Used: +(int)memoryUsed+k); rt.gc(); if(allocatedMemorytotalMemory){ } Thread.sleep( MemoryMonitorProperties.getInstance().getCheckMemoryInterval()); } catch (Exception ie) { AppLog.error(AppError.getStackTraceAsString(ie)); } } AppLog.info(MemoryMonitor terminated.); } } - Original Message - From: Robert Porter [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 11:34 PM Subject: RE: Tomcat 4.1x running as NT Service Issue I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application
Debugging and Running as NT Service
Can someone explain how to configure a Tomcat server that is running as a Windows service to be debugable via dt_socket? Thank you John
RE: Tomcat 4.1x running as NT Service Issue
I dont think the java versi0on is necessarily a problem however what you need to remeber is when you install the service, you fix the settings of the JVM. If you want to control memory settings, you need to do it in the tomcat.exe command which you run to install the service. My server is down at the moment so I cant give you an example but if you look in tomcat.exe help you can see how to add java options, and one of them will need to be somthing like what was suggested below (ie -Xmx128m). As an aside, I personally wouldnt do the -Xms128m as well because this will mean that that much memory is used up irrespective of requirements. Whilst this configuration is good in a server environment, in a client where memory is more of a premium, you should only default to what you expect it to use on a minimal or average basis. cheers Pete Kiss Technologies http://www.kisstechnologies.co.uk/ 4, Percy Street London W1T 1DF Phone numbers: Phone 020 7692 9922 Fax 020 7692 9923 Robert Porter [EMAIL PROTECTED] 03/08/2003 04:49 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 5:26 AM To: Tomcat Users List Subject: RE: Tomcat 4.1x running as NT Service Issue I dont think the java versi0on is necessarily a problem however what you need to remeber is when you install the service, you fix the settings of the JVM. If you want to control memory settings, you need to do it in the tomcat.exe command which you run to install the service. My server is down at the moment so I cant give you an example but if you look in tomcat.exe help you can see how to add java options, and one of them will need to be somthing like what was suggested below (ie -Xmx128m). As an aside, I personally wouldnt do the -Xms128m as well because this will mean that that much memory is used up irrespective of requirements. Whilst this configuration is good in a server environment, in a client where memory is more of a premium, you should only default to what you expect it to use on a minimal or average basis. cheers Pete Kiss Technologies http://www.kisstechnologies.co.uk/ 4, Percy Street London W1T 1DF Phone numbers: Phone 020 7692 9922 Fax 020 7692 9923 Robert Porter [EMAIL PROTECTED] 03/08/2003 04:49 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app
RE: Tomcat 4.1x running as NT Service Issue
The settings are not controlled in the startup.bat - if you want to control them from the command line, you set the environment variable JAVA_OPTS with them. The default settings for a Sun JVM is to allow a max heap of 64m - if you try to exceed this, java.lang.OutOfMemoryException s will be thrown and by and large the whole thing will fall over. You can probably see these in the log file if you look. Again if you havent specified anything in the service setup, it will probably run with 64m of memory as well. Pete Robert Porter [EMAIL PROTECTED] 03/08/2003 14:27 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 5:26 AM To: Tomcat Users List Subject: RE: Tomcat 4.1x running as NT Service Issue I dont think the java versi0on is necessarily a problem however what you need to remeber is when you install the service, you fix the settings of the JVM. If you want to control memory settings, you need to do it in the tomcat.exe command which you run to install the service. My server is down at the moment so I cant give you an example but if you look in tomcat.exe help you can see how to add java options, and one of them will need to be somthing like what was suggested below (ie -Xmx128m). As an aside, I personally wouldnt do the -Xms128m as well because this will mean that that much memory is used up irrespective of requirements. Whilst this configuration is good in a server environment, in a client where memory is more of a premium, you should only default to what you expect it to use on a minimal or average basis. cheers Pete Kiss Technologies http://www.kisstechnologies.co.uk/ 4, Percy Street London W1T 1DF Phone numbers: Phone 020 7692 9922 Fax 020 7692 9923 Robert Porter [EMAIL PROTECTED] 03/08/2003 04:49 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior
Re: Tomcat 4.1x running as NT Service Issue
If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1x running as NT Service Issue
thanks been looking for something like that for ages! Tim Funk [EMAIL PROTECTED] 03/08/2003 16:52 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:52 AM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
well in that case the tomcat.exe included with the tomcat dist is fine once you have fixed your setup. It is simply run as a batch script, or as part of an install (you execute tomcat.exe once with the relevant parameters to install it) Pete Robert Porter [EMAIL PROTECTED] 03/08/2003 18:01 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:52 AM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
I reinstalled Tomcat using the ServiceCfg tool mentioned previously and badda boom badda bing! No more creeping memory loss, at least not over the past several hours. I set some limits on memory usage etc. Am now trying to determine what exactly, I have to pass as parameters to the tomcat.exe service installation tool. I feel like I am missing something obvious, when you install the Tomcat service with the provided tomcat.exe what happens to all the JVM parameters? Are they set in the registry? Environment, where? But, I can at last see daylight again! Thanks to all for your help! Cheers, Bob Porter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 1:04 PM To: Tomcat Users List Subject: RE: Tomcat 4.1x running as NT Service Issue well in that case the tomcat.exe included with the tomcat dist is fine once you have fixed your setup. It is simply run as a batch script, or as part of an install (you execute tomcat.exe once with the relevant parameters to install it) Pete Robert Porter [EMAIL PROTECTED] 03/08/2003 18:01 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:52 AM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
Appears I spoke to soon. While memory usage is much better during the application execution, it still eventually begins a steep climb in terms of memory consumption, even with setting the various memory parameters on the JVM. What is most baffling to me is that this behavior does not occur when Tomcat is not running as a service. Anyone have any clues?? Bob Porter -Original Message- From: Robert Porter [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 5:39 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1x running as NT Service Issue I reinstalled Tomcat using the ServiceCfg tool mentioned previously and badda boom badda bing! No more creeping memory loss, at least not over the past several hours. I set some limits on memory usage etc. Am now trying to determine what exactly, I have to pass as parameters to the tomcat.exe service installation tool. I feel like I am missing something obvious, when you install the Tomcat service with the provided tomcat.exe what happens to all the JVM parameters? Are they set in the registry? Environment, where? But, I can at last see daylight again! Thanks to all for your help! Cheers, Bob Porter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 1:04 PM To: Tomcat Users List Subject: RE: Tomcat 4.1x running as NT Service Issue well in that case the tomcat.exe included with the tomcat dist is fine once you have fixed your setup. It is simply run as a batch script, or as part of an install (you execute tomcat.exe once with the relevant parameters to install it) Pete Robert Porter [EMAIL PROTECTED] 03/08/2003 18:01 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:52 AM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1x running as NT Service Issue
I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1x running as NT Service Issue
I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NT Service with jvm options
Hello, I have created a NT Service to run Tomcat 4.1.24 on Windows NT with this command : %CATALINA_HOME%\tomcat.exe -install Tomcat-4.1.24 %JAVA_HOME%\jre\bin\hotspot\jvm.dll -showversion -verbose:gc -Xmx200M -Xms64M -Xrs -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar -Dcatalina.base=%CATALINA_HOME% -Dcatalina.home=%CATALINA_HOME% -Djava.endorsed.dirs=%CATALINA_HOME%\bin;%CATALINA_HOME%\common\endorsed -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\jvm.stdout.log -err %CATALINA_HOME%\logs\jvm.stderr.log -current %CATALINA_HOME% -path c:\;d:\ JAVA_HOME is set to the JDK root directory PATH=%JAVA_HOME%\bin;%PATH% The service was correctly created and Tomcat works fine. But the -showversion and the -verbose:gc options don't produce any entry in the jvm.stdout.log or jvm.stderr.log log files. I tried whith the Sun JDKs 1.3.0_02 and 1.3.1_08. When I run Tomcat with %CATALINA_HOME%\bin\startup.bat with the same jvm options (set on CATALINA_OPTS), the logs are ok. With Tomcat 3.2.1 and jk_nt_service.exe there was no problem with these jvm options. What's wrong ? Thanks for any advice Jean-Louis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAVA_HOME for TOMCAT as an NT Service
Hello. I am trying to get TOMCAT 4.1 to run as an NT service. When I have the service running I get a 500 error for all jsp pages I've made a change to. I've set JAVA_HOME to the correct path as a System Variable in windows 2000. If I were to shut down the service and choose Start Tomcat from the program folder, it compiles fine. Any ideas of where I should look for the problem? When I look in stderr.log I see this message. I know you don't need to see all of it but. Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExtern alCompile(DefaultCompilerAdapter.java:455) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal. java:81) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 73) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 90) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Unknown Source) Nicholas Rapagnani Phone: (484) 762-3105 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to configure Jakarta 4.1.24 as NT service?
Hi, I installed Jakarta 4.1.24 from ZIP file on W2K. How can I configure it to run as a NT service? Thanks, Emil BTW: Using Jakarta 4.1.12 the command below worked but this doesn't work with 4.1.24: %CATALINA_HOME%\bin\tomcat.exe -install FA-Tomcat %JAVA_HOME%\jre\bin\client\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]