tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GOMEZ Henri" <>
Subject RE: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/startup
Date Wed, 27 Feb 2002 10:33:35 GMT
Let me resume and tag the correct behaviour :

to start/stop with ajp12 : -ajpid /var/spool/tomcat3/ -ajp12 -ajpid /var/spool/tomcat3/ -ajp12

to start/stop with ajp13 : -ajpid /var/spool/tomcat3/ -ajp13 -ajpid /var/spool/tomcat3/ -ajp13

If tomcat didn't read server.xml at stop time, 
it may be better to remove AjpidFile from server.xml to avoid
such problems and make it setable only in command line ?

Henri Gomez                 ___[_]____
EMAIL :        (. .)                    
PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6

-----Original Message-----
From: Larry Isaacs []
Sent: Wednesday, February 27, 2002 1:01 AM
To: Tomcat Developers List
Subject: RE: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/startup

Hi Henri,

With implementation of the "" file, stopTomcat() quit reading
the server.xml file ( v1.2).  It appears the comment
about searching for the AJP12 connector has been out of date for a

For situations where the "ajp??.id" file is in a non-default
location, the "-ajpid" command line argument must be used to specify
the alternate location.  Specifying the "-ajp12" or "-ajp13" is also
recommended.  I still need to update the Users Guide to mention these
new arguments.


-----Original Message----- 
From: GOMEZ Henri [] 
Sent: Tue 2/26/2002 4:38 PM 
To: Tomcat Developers List 
Subject: RE: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/startup

There is a problem with that patch : 
    void stopTomcat() throws Exception { 
        // if a parameter isn't set, try to read it from a file 
        if( port < 0 || host == null || secret == null ) { 
            String tchome=getTomcatHome(); 
            String defAjp12File=tchome + "/conf/"; 
            String defAjp13File=tchome + "/conf/"; 
            String ajpFile=secretFile; 
            int portSave=port; 
            String hostSave=host; 
            String secretSave=secret; 
            boolean pickAjp=(!isAjp13 && !isAjp12); 
What happen if you put or, in another location 
using : 
        <Ajp12Connector address="" port="8007" AjpidFile="/var/spool/tomcat3/"
        <Ajp13Connector port="8009" AjpidFile="/var/spool/tomcat3/" /> 
View raw message