Author: markt
Date: Sun Feb 5 20:12:26 2012
New Revision: 1240795
URL: http://svn.apache.org/viewvc?rev=1240795&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=52587
Ensure that if it is necessary to fall back to the default NullRealm,
the NullRealm instance is created early enough for it to be
correctly initialised.
Modified:
tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java
Modified: tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java?rev=1240795&r1=1240794&r2=1240795&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java Sun Feb 5
20:12:26 2012
@@ -237,6 +237,15 @@ public class StandardEngine extends Cont
}
+ @Override
+ protected void initInternal() throws LifecycleException {
+ // Ensure that a Realm is present before any attempt is made to start
+ // one. This will create the default NullRealm if necessary.
+ getRealm();
+ super.initInternal();
+ }
+
+
/**
* Start this component and implement the requirements
* of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]