Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 33998 invoked by uid 500); 10 Oct 2001 14:20:40 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 33802 invoked from network); 10 Oct 2001 14:20:39 -0000 content-class: urn:content-classes:message Subject: RE: Running Tomcat as a service on win2k MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 10 Oct 2001 16:17:31 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Running Tomcat as a service on win2k Thread-Index: AcFRddcHkMBIgOKXTwSl/7P5nHTA2AADEfDwAATyf9A= From: "Tarek M. Nabil" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm sorry to say that my happiness didn't last for long. Tomcat dies after the first request, I checked the log files, and I found this error in mod_jk.log... [jk_connect.c (143)]: jk_open_socket, connect() failed errno =3D 61 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd =3D -1 I checked the archives and it says that this error is connection refused and it's caused when the port specified for ajp12 in workers.porperties is different from the one in server.xml. I check this out, and they are the same (I never changed anything in those files). Is there any other reason this is happening? Tarek Nabil tnabil@itworx.com -----Original Message----- From: Tarek M. Nabil=20 Sent: Wednesday, October 10, 2001 2:02 PM To: tomcat-user@jakarta.apache.org Subject: RE: Running Tomcat as a service on win2k Brian, According to the use of jk_nt_service.exe, it should be used with either a -i or a -r flag. When I use it with a -i flag, the service is installed successfully, but then fails to start with netstart. Without the -i flag, it gives the following error.. Asked (and given) winsock 1.1 Error: StartServiceCtrlDispatcher failed. but I think that's caused by improper usage, cause you have to specify one of the two flags. If I try to run tomcat on it's own, it does run successfully. It also works fine with Apache. The only thing that I can't do is make it run as a service. I'm not using spaces in the specification of the javahome....I wrote the following line in wrapper.properties wrapper.java_home=3DC:\jdk1.2.2 As for the tomcat home, I wrote. wrapper.tomcat_home=3D'D:\jakarta-tomcat-3.2.2' You know what, while I was writing this email I tried out something and it worked, can you imagine, the single quotes are the reason the service doesn't wanna start, woow :) Brian and David, thanks a million :)) Tarek Nabil tnabil@itworx.com -----Original Message----- From: Brian Richards [mailto:ncmusic@pobox.com] Sent: Tuesday, October 09, 2001 11:04 PM To: tomcat-user@jakarta.apache.org Subject: Re: Running Tomcat as a service on win2k did you try running jk_ntserver on the command line instead of using net start? does tomcat run by itself? is it integrated with apache or anything else? -brian ----- Original Message ----- From: "Tarek M. Nabil" To: "Tomcat-User (E-mail)" Sent: Tuesday, October 09, 2001 10:19 AM Subject: Running Tomcat as a service on win2k I've been trying to get Tomcat to run as a service on win2k professional, but it's not working. I install the service and modify the wrapper.properties file and when I try to start the service, it doesn't start. The problem is, it doesn't return any errors, it simply doesn't start. I thought the problem might be with the jdk1.3, so I tried 1.2.2 and still, nothing's changed. Any ideas? Thanks, Tarek Nabil