struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r441756 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
Date Sat, 09 Sep 2006 07:50:58 GMT
Author: mrdon
Date: Sat Sep  9 00:50:57 2006
New Revision: 441756

URL: http://svn.apache.org/viewvc?view=rev&rev=441756
Log:
Change portlet support disable message to debug
WW-1349

Modified:
    struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java

Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java?view=diff&rev=441756&r1=441755&r2=441756
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
(original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
Sat Sep  9 00:50:57 2006
@@ -250,17 +250,15 @@
             LOG.debug("Parameter access work-around disabled.");
         }
 
-        // Check wether portlet support is active or not by trying to get "javax.portlet.PortletRequest"
+        // Check whether portlet support is active or not by trying to get "javax.portlet.PortletRequest"
         try {
             ClassLoaderUtil.loadClass("javax.portlet.PortletRequest", Dispatcher.class);
             portletSupportActive = true;
             if (LOG.isInfoEnabled()) {
                 LOG.info("Found portlet-api. Activating Struts's portlet support");
             }
-        } catch (Exception e) {
-            if (LOG.isInfoEnabled()) {
-                LOG.info("Could not load portlet-api, disabling Struts's portlet support.");
-            }
+        } catch (ClassNotFoundException e) {
+            LOG.debug("Unable to locate the portlet libraries.  Disabling portlet support.");
         }
         
         configurationManager = new ConfigurationManager();



Mime
View raw message