Bug 1146856

Summary: Some switchyard features for karaf cannot be installed without some prerequisites
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Martin Basovník <mbasovni>
Component: SwitchYardAssignee: David Ward <dward>
Status: MODIFIED --- QA Contact: Matej Melko <mmelko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: rcernich, soa-p-jira, tsykora
Target Milestone: DR4   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
switchyard-bpm log none

Description Martin Basovník 2014-09-26 09:02:45 UTC
Created attachment 941492 [details]
switchyard-bpm log

===Description of problem:
Some switchyard features cannot be installed on karaf without having previously installed switchyard feature.

switchyard-bpm
switchyard-hibernate

=> switchyard-2.0.0.Alpha2-redhat-1-core-features.xml should be fixed

=== Version-Release number of selected component (if applicable):
FSW 6.1 DR2

=== How reproducible:


=== Steps to Reproduce:
features:addurl mvn:org.switchyard.karaf/switchyard/2.0.0.Alpha2-redhat-1/xml/features
features:install switchyard-bpm


=== Additional info:
Prerequisite:
features:install switchyard

Comment 1 Rob Cernich 2014-09-29 20:52:24 UTC
Please use the following features url when working with Fuse:

features:addurl mvn:org.switchyard.karaf/switchyard/2.0.0.Alpha2-redhat-1/xml/core-features

Notice the classifier is "core-features" instead of "features".

Comment 2 Martin Basovník 2014-10-01 06:05:04 UTC
Rob, why should I use classifier "core-features"? File with classifier "features" contains the following content and "core-features" is contained.

<repository>mvn:org.switchyard.karaf/switchyard/2.0.0.Alpha2-redhat-1/xml/core-features</repository>
<repository>mvn:org.apache.camel.karaf/apache-camel/2.12.0.redhat-610379/xml/features</repository>
<repository>mvn:org.apache.cxf.karaf/apache-cxf/2.7.11/xml/features</repository>
<repository>mvn:org.apache.activemq/activemq-karaf/5.9.0/xml/features</repository>

Nevertheless I tried to reproduce the bug with the following features url and the problem still exists.
mvn:org.switchyard.karaf/switchyard/2.0.0.Alpha2-redhat-1/xml/core-features

Comment 3 Rob Cernich 2014-10-01 13:21:24 UTC
Hey Martin,

The reason for the two different files is because those repository declarations cause the dependencies to be resolved from them, as opposed to the repositories configured on Fuse.  For example, the activemq repo will pull in v5.9.0, instead of 5.9.0.redhat-600379, which is what is packaged with Fuse.  Same goes for CXF.  It looks like prod has overwritten the version of Camel so it matches what Fuse is using, so that takes care of one of the problems.

Long story short, core-features only includes the SwitchYard features and repository declarations for SwitchYard specific dependencies (e.g. drools).

As this works with the community builds, I suspect the cause lies in something that changed as part of productization.

Thanks for verifying.
Rob

Comment 4 Rob Cernich 2014-10-21 16:43:34 UTC
Hey David, could you please verify this is working correctly as part of testing your current changes (upgrade to 6.2)?  It looks like much has changed between Alpha2 and Alpha3.  Thanks in advance.

Comment 5 JBoss JIRA Server 2014-12-05 23:13:54 UTC
Rob Cernich <rcernich> updated the status of jira SWITCHYARD-2358 to Resolved