[
https://issues.apache.org/jira/browse/TUSCANY-3460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836157#action_12836157
]
Simon Nash commented on TUSCANY-3460:
-------------------------------------
The revised fix packages the OpenEJB 3.1.2 dependencies as part of the travel
sample and avoids the need for environment variables or separate downloads.
By default only the OpenEJB dependent jars that aren't already part of the
Tuscany SCA 1.6 binary distribution are packaged with the travel sample binary
distribution. If the travel sample is built using "mvn -Pselfcontained" then a
complete set of OpenEJB dependent jars is packaged with the travel sample
binary distribution.
> Travel sample distribution is missing scatours-launcher-payment-bpel
> --------------------------------------------------------------------
>
> Key: TUSCANY-3460
> URL: https://issues.apache.org/jira/browse/TUSCANY-3460
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Travel Sample
> Reporter: Simon Nash
> Assignee: Simon Nash
>
> The distribution output from the travel sample doesn't include
> scatours-launcher-payment-bpel.jar.
> Unfortunately the solution isn't as simple as just adding this file to the
> distribution because this creates version conflicts in the distribution lib
> directory between dependencies brought in by tuscany-implementation-bpel-ode
> and dependencies brought in by OpenEJB 3.x (which is used by
> scatours-launcher-notification-ejb and scatours-service-smsgateway-ejb).
> This is because tuscany-implementation-bpel-ode uses ODE 1.1.1 (an old
> version) which brings in a number of JEE/Geronimo-related dependencies at
> older levels than those brought in by OpenEJB 3.x.
> These conflicts will need to be resolved when OpenEJB 3.x is included in the
> Tuscany SCA 1.x distribution (see TUSCANY-3437). For now, the Tuscany SCA
> 1.6 distribution is based on ODE 1.1.1 and its dependencies, and the travel
> sample needs to be in sync with this so that it can be released as an add-on
> to Tuscany SCA 1.6.
> The suggested solution is to refactor the OpenEJB dependencies in the travel
> sample into a separate module under util (util/openejb-runtime) and not
> include this module in the dependencies for the travel sample distribution.
> This keeps the travel sample distribution lib directory in sync with the lib
> directory of the Tuscany SCA 1.6 binary distribution. Instead, the OpenEJB
> dependencies needed by scatours-launcher-notification-ejb and
> scatours-service-smsgateway-ejb are brought in from the lib directory of the
> OpenEJB binary distribution.
> This introduces a bit of setup overhead when building the travel sample
> because the pom.xml for util/openejb-runtime needs the following environment
> variables to be set so that it can find the necessary OpenEJB dependencies:
> OPENEJB_HOME: the local directory in which the OpenEJB binary distribution
> is installed
> OPENEJB_VERSION: the OpenEJB version installed in the OPENEJB_HOME directory
> This workaround can be removed when OpenEJB is included in the Tuscany SCA
> 1.x binary distribution. For now it is needed so that the travel sample can
> run on top of the combination of the Tuscany SCA 1.6 binary distribution and
> the OpenEJB binary distribution.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.