geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r908361 - /geronimo/server/trunk/plugins/jasper/geronimo-jasper-builder/src/main/java/org/apache/geronimo/jasper/deployment/JspModuleBuilderExtension.java
Date Wed, 10 Feb 2010 06:10:32 GMT
Author: gawor
Date: Wed Feb 10 06:10:32 2010
New Revision: 908361

URL: http://svn.apache.org/viewvc?rev=908361&view=rev
Log:
if we can't load listener class don't add it to the list

Modified:
    geronimo/server/trunk/plugins/jasper/geronimo-jasper-builder/src/main/java/org/apache/geronimo/jasper/deployment/JspModuleBuilderExtension.java

Modified: geronimo/server/trunk/plugins/jasper/geronimo-jasper-builder/src/main/java/org/apache/geronimo/jasper/deployment/JspModuleBuilderExtension.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/jasper/geronimo-jasper-builder/src/main/java/org/apache/geronimo/jasper/deployment/JspModuleBuilderExtension.java?rev=908361&r1=908360&r2=908361&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/jasper/geronimo-jasper-builder/src/main/java/org/apache/geronimo/jasper/deployment/JspModuleBuilderExtension.java
(original)
+++ geronimo/server/trunk/plugins/jasper/geronimo-jasper-builder/src/main/java/org/apache/geronimo/jasper/deployment/JspModuleBuilderExtension.java
Wed Feb 10 06:10:32 2010
@@ -251,7 +251,7 @@
 
         // 4. All TLD files in all META-INF(s)
         tldURLs.addAll(scanGlobalTlds(webModule.getEarContext().getDeploymentBundle()));
-
+        
         log.debug("getTldFiles() Exit: URL[" + tldURLs.size() + "]: " + tldURLs.toString());
         return tldURLs;
     }
@@ -334,10 +334,10 @@
             for (org.apache.geronimo.xbeans.javaee.ListenerType listener : listeners) {
                 org.apache.geronimo.xbeans.javaee.FullyQualifiedClassType cls = listener.getListenerClass();
                 String className = cls.getStringValue().trim();
-                listenerNames.add(className);
                 try {
                     Class clas = bundle.loadClass(className);
                     classes.add(clas);
+                    listenerNames.add(className);
                 }
                 catch (ClassNotFoundException e) {
                     log.warn("JspModuleBuilderExtension: Could not load listener class: "
+ className + " mentioned in TLD file at " + url.toString());



Mime
View raw message