For me, preRegister is always called AFTER start, so this stanza always npes. Anyone help on what needs to be done to reverse the order of these calls? If not any opposition to something like--
Index: StandardContext.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
retrieving revision 1.130.2.1
diff -u -r1.130.2.1 StandardContext.java
--- StandardContext.java 28 Aug 2004 12:49:54 -0000 1.130.2.1
+++ StandardContext.java 26 Oct 2004 21:21:44 -0000
@@ -4143,7 +4143,7 @@
// Look for a realm - that may have been configured earlier.
// If the realm is added after context - it'll set itself.
- if( realm == null ) {
+ if( realm == null && mserver != null ) {
ObjectName realmName=null;
try {
realmName=new ObjectName( getEngineName() + ":type=Host,host=" +
I have to think I'm doing something wrong but I'm not sure what. This patch sure does seem to help things.
Thanks for any input, Keith
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]