[jboss-svn-commits] JBL Code SVN: r27128 - in labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel: services/order-manager/src/com/activebpel/ordermanagement and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jun 25 07:46:12 EDT 2009
Author: beve
Date: 2009-06-25 07:46:12 -0400 (Thu, 25 Jun 2009)
New Revision: 27128
Added:
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/lib/commons-httpclient-3.0.1.jar
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/war/resources/WEB-INF/jboss-web.xml
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java
Log:
Updates required for running this quickstart on AS5.
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/lib/commons-httpclient-3.0.1.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/lib/commons-httpclient-3.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java 2009-06-25 11:28:33 UTC (rev 27127)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/services/order-manager/src/com/activebpel/ordermanagement/OrderManagerBean.java 2009-06-25 11:46:12 UTC (rev 27128)
@@ -20,7 +20,6 @@
package com.activebpel.ordermanagement;
import org.apache.log4j.Logger;
-import org.jboss.system.ConfigurationException;
import javax.ejb.Remote;
import javax.ejb.Stateless;
@@ -47,26 +46,26 @@
private static final String ORDER_MANAGER_PROPERTIES = "order-manager.properties";
private static final String ORDER_APPROVAL_DROP_LOCATION = "order.approval.drop.location";
- public OrderManagerBean() throws ConfigurationException {
+ public OrderManagerBean() throws Exception {
properties = new Properties();
try {
properties.load(getClass().getResourceAsStream("/" + ORDER_MANAGER_PROPERTIES));
} catch (Exception e) {
String message = "Failed to load OrderManager properties from root of classpath (/" + ORDER_MANAGER_PROPERTIES + ").";
logger.error(message, e);
- throw new ConfigurationException(message, e);
+ throw new Exception(message, e);
}
String approvalDirName = properties.getProperty(ORDER_APPROVAL_DROP_LOCATION);
if(approvalDirName == null) {
- throw new ConfigurationException("Property '" + ORDER_APPROVAL_DROP_LOCATION + "' not set in '" + ORDER_MANAGER_PROPERTIES + "'. Configure this property, rebuild and redeploy quickstart. File located in 'services' folder of the 'webservice_bpel' quickstart.");
+ throw new Exception("Property '" + ORDER_APPROVAL_DROP_LOCATION + "' not set in '" + ORDER_MANAGER_PROPERTIES + "'. Configure this property, rebuild and redeploy quickstart. File located in 'services' folder of the 'webservice_bpel' quickstart.");
}
approvalDir = new File(approvalDirName);
if(!approvalDir.exists() || !approvalDir.isDirectory()) {
- throw new ConfigurationException("Directory name set on property '" + ORDER_APPROVAL_DROP_LOCATION + "' in '" + ORDER_MANAGER_PROPERTIES + "' is not available on the system, or is not a directory. Configure this property, rebuild and redeploy quickstart. File located in 'services' folder of the 'webservice_bpel' quickstart.");
+ throw new Exception("Directory name set on property '" + ORDER_APPROVAL_DROP_LOCATION + "' in '" + ORDER_MANAGER_PROPERTIES + "' is not available on the system, or is not a directory. Configure this property, rebuild and redeploy quickstart. File located in 'services' folder of the 'webservice_bpel' quickstart.");
}
if(!approvalDir.canWrite()) {
- throw new ConfigurationException("Directory name set on property '" + ORDER_APPROVAL_DROP_LOCATION + "' in '" + ORDER_MANAGER_PROPERTIES + "' is not writable. Configure this property, rebuild and redeploy quickstart. File located in 'services' folder of the 'webservice_bpel' quickstart.");
+ throw new Exception("Directory name set on property '" + ORDER_APPROVAL_DROP_LOCATION + "' in '" + ORDER_MANAGER_PROPERTIES + "' is not writable. Configure this property, rebuild and redeploy quickstart. File located in 'services' folder of the 'webservice_bpel' quickstart.");
}
}
Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/war/resources/WEB-INF/jboss-web.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/war/resources/WEB-INF/jboss-web.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/war/resources/WEB-INF/jboss-web.xml 2009-06-25 11:46:12 UTC (rev 27128)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-web>
+ <context-root>/Quickstart_webservice_bpel</context-root>
+</jboss-web>
+
More information about the jboss-svn-commits
mailing list