Bug 48039

Summary: org.apache.catalina.core.StandardService start method doesn't return immediately when it has started already
Product: Tomcat 6 Reporter: qingyang.xu <qingyang.xu>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P2    
Version: 6.0.20   
Target Milestone: default   
Hardware: PC   
OS: All   

Description qingyang.xu 2009-10-21 19:12:53 UTC
Below is the relevant part of source code:

public void start() throws LifecycleException {

        // Validate and update our current component state
        if (log.isInfoEnabled() && started) {
            log.info(sm.getString("standardService.start.started"));
        }
        
        if( ! initialized )
            init(); 

Is it reasonable that start() method should return immediately?

I checked the start() methods in StandardServer, StandardEngine, StandardHost and StandardContext, and found that they all return immediately if 'started' has been true.
Comment 1 Mark Thomas 2010-02-02 09:29:00 UTC
Thanks for the report. This has been fixed in trunk and proposed for 6.0.x
Comment 2 Mark Thomas 2010-02-18 12:09:12 UTC
This has been fixed in 6.0.x and will be included in 6.0.25 onwards.