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/mbeans GlobalResourcesLifecycleListener.java
Date Fri, 10 Jan 2003 18:57:06 GMT
costin      2003/01/10 10:57:06

  Modified:    catalina/src/share/org/apache/catalina/mbeans
                        GlobalResourcesLifecycleListener.java
  Log:
  If no java: naming is found - report it but don't be too verbose.
  
  Revision  Changes    Path
  1.2       +6 -7      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/GlobalResourcesLifecycleListener.java
  
  Index: GlobalResourcesLifecycleListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/GlobalResourcesLifecycleListener.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GlobalResourcesLifecycleListener.java	18 Jul 2002 16:47:58 -0000	1.1
  +++ GlobalResourcesLifecycleListener.java	10 Jan 2003 18:57:06 -0000	1.2
  @@ -166,9 +166,8 @@
           try {
               context = (Context) (new InitialContext()).lookup("java:/");
           } catch (NamingException e) {
  -            e.printStackTrace();
  -            throw new IllegalStateException
  -                ("No global naming context defined for server");
  +            log("No global naming context defined for server");
  +            return;
           }
   
           // Recurse through the defined global JNDI resources context
  
  
  

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


Mime
View raw message