> From: sudhir singh rana [mailto:sudhirsinghr...@gmail.com]
> Subject: Re: tomcat starting even after port is in use
> 
> is there any way I can achieve this in 5.5.27

Not via configuration, as far as I know.  You could change the code at lines 
501-508 in org/apache/catalina/startup/Catalin.java from this:

        // Start the new server
        if (server instanceof Lifecycle) {
            try {
                server.initialize();
            } catch (LifecycleException e) {
                log.error("Catalina.start", e);
            }
        }

to this:

        // Start the new server
        if (server instanceof Lifecycle) {
            try {
                server.initialize();
            } catch (LifecycleException e) {
                if 
(Boolean.getBoolean("org.apache.catalina.startup.EXIT_ON_INIT_FAILURE"))
                    throw new java.lang.Error(e);
                else
                    log.error("Catalina.start", e);
            }
        }

to match the updated code in 6.0.x, allowing use of the system property.  Or 
just upgrade your Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to