cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/generation ServerPagesGenerator.java
Date Tue, 24 Jul 2001 00:35:23 GMT
vgritsenko    01/07/23 17:35:23

  Modified:    src/org/apache/cocoon/generation ServerPagesGenerator.java
  Log:
  Throw ResourceNotFoundException if wrong classname (e.g., different case)
  
  Revision  Changes    Path
  1.12      +4 -1      xml-cocoon2/src/org/apache/cocoon/generation/ServerPagesGenerator.java
  
  Index: ServerPagesGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/ServerPagesGenerator.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ServerPagesGenerator.java	2001/07/07 11:43:30	1.11
  +++ ServerPagesGenerator.java	2001/07/24 00:35:23	1.12
  @@ -47,7 +47,7 @@
    * delegating actual SAX event generation.
    *
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version CVS $Revision: 1.11 $ $Date: 2001/07/07 11:43:30 $
  + * @version CVS $Revision: 1.12 $ $Date: 2001/07/24 00:35:23 $
    */
   public class ServerPagesGenerator
     extends ServletGenerator
  @@ -156,6 +156,9 @@
       } catch (Exception e) {
         getLogger().warn("ServerPagesGenerator.generate()", e);
         throw new ResourceNotFoundException(e.getMessage(), e);
  +    } catch (NoClassDefFoundError e) {
  +      getLogger().warn("Failed to load class: " + e);
  +      throw new ResourceNotFoundException(e.getMessage());
       }
       generator.setup(this.resolver, this.objectModel, super.source, this.parameters);
     }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message