tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core StandardServer.java
Date Tue, 22 Apr 2003 17:13:23 GMT
costin      2003/04/22 10:13:23

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardServer.java
  Log:
  Fix startup if you create the server mbean ( if you want to use server.xml
  from embeded )
  
  Revision  Changes    Path
  1.16      +8 -7      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardServer.java
  
  Index: StandardServer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- StandardServer.java	9 Apr 2003 19:25:10 -0000	1.15
  +++ StandardServer.java	22 Apr 2003 17:13:22 -0000	1.16
  @@ -2296,9 +2296,10 @@
       public void start() throws LifecycleException {
   
           // Validate and update our current component state
  -        if (started)
  -            throw new LifecycleException
  -                (sm.getString("standardServer.start.started"));
  +        if (started) {
  +            log.debug(sm.getString("standardServer.start.started"));
  +            return;
  +        }
   
           // Notify our interested LifecycleListeners
           lifecycle.fireLifecycleEvent(BEFORE_START_EVENT, null);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message