Author: jleroux
Date: Sat May 5 20:23:39 2012
New Revision: 1334483
URL:
http://svn.apache.org/viewvc?rev=1334483&view=revLog:
Simplify code, non functional changes
Modified:
ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
Modified: ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java?rev=1334483&r1=1334482&r2=1334483&view=diff==============================================================================
--- ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java (original)
+++ ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java Sat May 5 20:23:39 2012
@@ -631,15 +631,11 @@ public class CatalinaContainer implement
Document webXmlDoc = null;
try {
webXmlDoc = UtilXml.readXmlDocument(webXmlUrl);
- } catch (SAXException se) {
- throw new ContainerException(se);
- } catch (ParserConfigurationException pce) {
- throw new ContainerException(pce);
- } catch (IOException ioe) {
- throw new ContainerException(ioe);
+ } catch (Exception e) {
+ throw new ContainerException(e);
}
- boolean appIsDistributable = webXmlDoc.getElementsByTagName("distributable").getLength() > 0 ? true : false;
+ boolean appIsDistributable = webXmlDoc.getElementsByTagName("distributable").getLength() > 0;
final boolean contextIsDistributable = distribute && appIsDistributable;
// configure persistent sessions