Error deploying a feature into a Fuse Fabric
rmarting Oct 26, 2015 7:53 PMHi,
I created a feature project with some bundles and features that it is working successfully into a Fuse Standalone.
However when I tried to deploy into a Fuse Fabric it is not working. I got the following error:
This feature project include Camel Routes to integrate it with a MQ Series broker.
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=com.inditex.camel.ftp; type=karaf.feature; filter:="(&(osgi.identity=com.inditex.camel.ftp)(type=karaf.feature))" [caused by: Unable to resolve com.inditex.camel.ftp/1.0.2.SNAPSHOT: missing requirement [com.inditex.camel.ftp/1.0.2.SNAPSHOT] osgi.identity; osgi.identity=com.inditex.camel.ftp.camel-ftp-service; type=osgi.bundle; version="[1.0.2.SNAPSHOT,1.0.2.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve com.inditex.camel.ftp.camel-ftp-service/1.0.2.SNAPSHOT: missing requirement [com.inditex.camel.ftp.camel-ftp-service/1.0.2.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.camel.component.jms)"]]
The features.xml is the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <features name="com.inditex.camel" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"> <feature version="${project.version}" name="com.inditex.camel.ftp"> <!-- WebSphere MQ Series 7.5.0.5 OSGi --> <bundle>mvn:com.ibm.mq/com.ibm.mq.osgi.directip/7.5.0.5</bundle> <bundle>mvn:com.ibm.mq/com.ibm.msg.client.osgi.nls/7.5.0.5</bundle> <bundle>mvn:com.ibm.mq/com.ibm.mq.osgi.java/7.5.0.5</bundle> <bundle>mvn:com.ibm.mq/com.ibm.msg.client.osgi.wmq/7.5.0.5</bundle> <bundle>mvn:com.ibm.mq/com.ibm.msg.client.osgi.commonservices.j2se/7.5.0.5</bundle> <bundle>mvn:com.ibm.mq/com.ibm.msg.client.osgi.wmq.nls/7.5.0.5</bundle> <bundle>mvn:com.ibm.mq/com.ibm.msg.client.osgi.jms/7.5.0.5</bundle> <bundle>mvn:com.ibm.mq/com.ibm.msg.client.osgi.wmq.prereq/7.5.0.5</bundle> <bundle>mvn:com.ibm.mq/com.ibm.msg.client.osgi.jms.prereq/7.5.0.5</bundle> <!-- ActiveMQ libraries --> <feature>activemq-client</feature> <feature>camel-jaxb</feature> <feature>camel-jackson</feature> <!-- Camel FTP Service Bundle --> <bundle>mvn:${project.groupId}/camel-ftp-service/${project.version}</bundle> </feature> </features>
To deploy into Fuse Standalone I executed the following commands:
JBossFuse:karaf@root> features:refreshurl JBossFuse:karaf@root> features:addurl mvn:com.inditex.camel.ftp/camel-ftp-features/1.0.2-SNAPSHOT/xml/features JBossFuse:karaf@root> features:install com.inditex.camel.ftp
To deploy into Fuse Fabric I executed the following commands:
JBossFuse:karaf@root> fabric:profile-create --parents feature-camel com.inditex.camel.ftp-service JBossFuse:karaf@root> fabric:profile-edit --repository mvn:com.inditex.camel.ftp/camel-ftp-features/1.0.2-SNAPSHOT/xml/features com.inditex.camel.ftp-service JBossFuse:karaf@root> fabric:profile-edit --feature com.inditex.camel.ftp com.inditex.camel.ftp-service JBossFuse:karaf@root> container-create-child --zookeeper-password admin --manual-ip localhost --bind-address localhost --resolver manualip root camel-ftp JBossFuse:karaf@root> container-add-profile camel-ftp com.inditex.camel.ftp-service
When the new container is provisioning the exception appears. Why the same feature is working in Standalone but not in Fabric?
Any help it will be appreciated.
PS: I attached the pom.xml files of my projects.
Regards
-
pom.xml.zip 726 bytes
-
pom.xml.zip 1.9 KB
-
pom.xml.zip 1.0 KB