jfarcand    2003/08/07 16:46:18

  Modified:    catalina/src/share/org/apache/catalina/core
                        ContainerBase.java
  Log:
  Fix :
  
  SEVERE: Error registering null
  javax.management.MBeanRegistrationException: nested exception is 
java.lang.NullPointerException
  java.lang.NullPointerException
          at 
org.apache.catalina.core.ContainerBase.preRegister(ContainerBase.java:1499)
  
  when an invalid web.xml is deployed and the digester throw an exception.
  
  Revision  Changes    Path
  1.27      +4 -0      
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ContainerBase.java
  
  Index: ContainerBase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ContainerBase.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- ContainerBase.java        29 Jul 2003 00:09:42 -0000      1.26
  +++ ContainerBase.java        7 Aug 2003 23:46:18 -0000       1.27
  @@ -1496,6 +1496,10 @@
                                     ObjectName name) throws Exception {
           oname=name;
           mserver=server;
  +        if (name == null ){
  +            return null;
  +        }
  +
           domain=name.getDomain();
   
           type=name.getKeyProperty("type");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to