jfarcand    2003/06/20 14:39:13

  Modified:    catalina/src/share/org/apache/catalina/loader
                        WebappLoader.java
  Log:
  Fix NPE exception when an invalid war file is deployed:
  
  java.lang.NullPointerException
      at org.apache.catalina.loader.WebappLoader.closeJARs(WebappLoader.java:560)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.
  
  which cause:
  
  java.io.IOException: java.lang.NullPointerException
      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl
  
  Revision  Changes    Path
  1.18      +4 -2      
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappLoader.java
  
  Index: WebappLoader.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappLoader.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- WebappLoader.java 15 Jun 2003 07:22:16 -0000      1.17
  +++ WebappLoader.java 20 Jun 2003 21:39:13 -0000      1.18
  @@ -557,7 +557,9 @@
        * Used to periodically signal to the classloader to release JAR resources.
        */
       public void closeJARs(boolean force) {
  -        classLoader.closeJARs(force);
  +        if (classLoader !=null){
  +            classLoader.closeJARs(force);
  +        }
       }
   
   
  
  
  

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

Reply via email to