tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: Running Tomcat as a service on win2k
Date Thu, 11 Oct 2001 12:15:53 GMT
if I recall correctly error 61 means that apache could not talk to tomcat on
the specified port. Make sure your port is the same for your
connector(AJP12/AJP13 - whatever one you are using) in server.xml and in
workers.properties


Charlie

> -----Original Message-----
> From: Tarek M. Nabil [mailto:Tarek.Nabil@itworx.com]
> Sent: Thursday, October 11, 2001 7:03 AM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: Running Tomcat as a service on win2k
> 
> 
> Brian, the service already starts successfully but it fails 
> on the first
> request. Changing the path of wrapper.properties to the full 
> path didn't
> help the problem. How about setting the environment variable, do you
> think that would help?
> 
> 
> -----Original Message-----
> From: Brian Richards [mailto:ncmusic@pobox.com]
> Sent: Wednesday, October 10, 2001 8:32 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Running Tomcat as a service on win2k
> 
> 
> Yes give it a full path name. then try again it won't give 
> you an error
> if
> it can't find the file until you try to start the service
> ----- Original Message -----
> From: "Tarek M. Nabil" <Tarek.Nabil@itworx.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Wednesday, October 10, 2001 11:49 AM
> Subject: RE: Running Tomcat as a service on win2k
> 
> 
> Thanks Brian,
> I have a few questions:
> 
> 1- You say that I should it give it the full path of the
> wrapper.properties file. Does that mean I cannot use a relative path?
> I've put the service in bin and I use 
> ../conf/wrapper.properties, won't
> this work? I think if it cannot work then I should have 
> gotten an error.
> 
> 2- Are you sure that JAVA_HOME should match the system environment
> variable? I have two jdk's installed, 1.2 and 1.3, the system variable
> is set to point to 1.3 but since 1.3 has problems with 
> running services
> I made wrapper.properties point to 1.2, is that a problem?
> 
> 3-Copying the command into a command prompt gives me an error
> 
> Asked (and given) winsock 1.1
> Error: StartServiceCtrlDispatcher failed.
> 
> Does that mean it shouldn't work? But it does. Now the service starts
> correctly, but it dies after the first request from apache, giving me
> that error = 61 in the mod_jk.log file.
> 
> Please advise me on what to do.
> 
> Thanks,
> 
> Tarek Nabil
> tnabil@itworx.com
> 
> 
> -----Original Message-----
> >From: Brian Richards [mailto:ncmusic@pobox.com]
> Sent: Wednesday, October 10, 2001 5:29 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Running Tomcat as a service on win2k
> 
> 
> Ok I gave you the wrong answer.  I think I know the problem.  
> Make sure
> when
> you install the service you give it the full path to the
> wrapper.properties
> file.  And make sure the JAVA_HOME and TOMCAT_HOME in the
> wrapper.properties
> matches the system environment variables. And just double 
> check that you
> filled out everything correctly in wrapper.properties. Go to Services
> console in windows (Adminitrative Tools->Services) right click on the
> Service name that you installed check out the command it's actually
> excuting
> just copy that into a command prompt.  See what gives.  Hope 
> that helps.
> 
> -Brian
> 
> 
> ----- Original Message -----
> >From: "Tarek M. Nabil" <Tarek.Nabil@itworx.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Wednesday, October 10, 2001 8:02 AM
> 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=C:\jdk1.2.2
> 
> As for the tomcat home, I wrote.
> 
> wrapper.tomcat_home='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 <service name> 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" <Tarek.Nabil@itworx.com>
> To: "Tomcat-User (E-mail)" <tomcat-user@jakarta.apache.org>
> 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
> 
> 
> 
> 
> 
> 
> 
> 
> 

Mime
View raw message