tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r937542 - /tomcat/trunk/java/org/apache/catalina/core/NamingContextListener.java
Date Fri, 23 Apr 2010 22:20:34 GMT
Author: markt
Date: Fri Apr 23 22:20:33 2010
New Revision: 937542

URL: http://svn.apache.org/viewvc?rev=937542&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49132
Need to start JNDI before listeners are called

Modified:
    tomcat/trunk/java/org/apache/catalina/core/NamingContextListener.java

Modified: tomcat/trunk/java/org/apache/catalina/core/NamingContextListener.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/NamingContextListener.java?rev=937542&r1=937541&r2=937542&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/NamingContextListener.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/NamingContextListener.java Fri Apr 23 22:20:33
2010
@@ -212,7 +212,7 @@ public class NamingContextListener
             return;
         }
 
-        if (Lifecycle.START_EVENT.equals(event.getType())) {
+        if (Lifecycle.CONFIGURE_START_EVENT.equals(event.getType())) {
 
             if (initialized)
                 return;
@@ -272,7 +272,7 @@ public class NamingContextListener
 
             initialized = true;
 
-        } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
+        } else if (Lifecycle.CONFIGURE_STOP_EVENT.equals(event.getType())) {
 
             if (!initialized)
                 return;



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


Mime
View raw message