cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r486543 - /cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/auth/portal/StandardPortalApplication.java
Date Wed, 13 Dec 2006 08:14:37 GMT
Author: cziegeler
Date: Wed Dec 13 00:14:36 2006
New Revision: 486543

URL: http://svn.apache.org/viewvc?view=rev&rev=486543
Log:
Make portal block compilable/usable with jdk 1.3

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/auth/portal/StandardPortalApplication.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/auth/portal/StandardPortalApplication.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/auth/portal/StandardPortalApplication.java?view=diff&rev=486543&r1=486542&r2=486543
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/auth/portal/StandardPortalApplication.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/auth/portal/StandardPortalApplication.java
Wed Dec 13 00:14:36 2006
@@ -19,6 +19,7 @@
 import java.util.HashMap;
 import java.util.Map;
 
+import org.apache.avalon.framework.CascadingRuntimeException;
 import org.apache.avalon.framework.configuration.Configuration;
 import org.apache.avalon.framework.configuration.ConfigurationException;
 import org.apache.avalon.framework.service.ServiceException;
@@ -71,7 +72,7 @@
             service = (PortalService)this.manager.lookup(PortalService.ROLE);
             service.getComponentManager().getProfileManager().login();
         } catch (ServiceException ce) {
-            throw new RuntimeException("Unable to lookup portal service.", ce);
+            throw new CascadingRuntimeException("Unable to lookup portal service.", ce);
         } finally {
             this.manager.release(service);
         }
@@ -86,7 +87,7 @@
             service = (PortalService)this.manager.lookup(PortalService.ROLE);
             service.getComponentManager().getProfileManager().logout();
         } catch (ServiceException ce) {
-            throw new RuntimeException("Unable to lookup portal service.", ce);
+            throw new CascadingRuntimeException("Unable to lookup portal service.", ce);
         } finally {
             this.manager.release(service);
         }



Mime
View raw message