2 Replies Latest reply on May 20, 2013 5:35 PM by chubutin

    Fuse step over another installed feature

    chubutin

      Hi! I have two features and I can individually install the services. I remarked individually because when I deploy the second, Fuse deletes the first one. In the logs I saw how the camel routes and the cxf endpoints are uninstalled when Fuse install the second service.

       

      I think I have a problem with the names of the features, but they have different names in the .kar and Fuse identify as another bundle, but insted Fuse uninstall the first one.

       

      This is the log when I install the second feature (taxGroup) and Fuse uninstall the first one (vessels)

       

      2013-05-17 16:15:53,763 | WARN  | edhat-024/deploy | KarArtifactInstaller             | ?                                   ? | 27 - org.apache.karaf.deployer.kar - 2.3.0.redhat-60024 | Karaf archive '/home/ramiro/tecPlata/jboss-fuse-6.0.0.redhat-024/deploy/TaxGroupService-feature-1.0.0-SNAPSHOT.kar' has been updated; redeploying.
      2013-05-17 16:15:53,771 | INFO  | xFrameworkWiring | BlueprintExtender                | ?                                   ? | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Destroying BlueprintContainer for bundle vesselsVisitorService
      2013-05-17 16:15:53,777 | INFO  | xFrameworkWiring | BlueprintCamelContext            | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Apache Camel 2.10.0.redhat-60024 (CamelContext: vesselVisitorsRoute) is shutting down
      2013-05-17 16:15:53,779 | INFO  | xFrameworkWiring | DefaultShutdownStrategy          | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
      2013-05-17 16:15:53,781 | INFO  | 6 - ShutdownTask | DefaultShutdownStrategy          | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Route: route23 shutdown complete, was consuming from: Endpoint[cxf://bean:vesselVisitorsConsumerEndpoint]
      2013-05-17 16:15:53,781 | INFO  | xFrameworkWiring | DefaultShutdownStrategy          | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Graceful shutdown of 1 routes completed in 0 seconds
      2013-05-17 16:15:53,786 | INFO  | xFrameworkWiring | DefaultTypeConverter             | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | TypeConverterRegistry utilization[attempts=21, hits=18, misses=3, failures=0] mappings[total=209, misses=2]
      2013-05-17 16:15:53,788 | INFO  | xFrameworkWiring | BlueprintCamelContext            | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Apache Camel 2.10.0.redhat-60024 (CamelContext: vesselVisitorsRoute) is shutdown in 0.011 seconds. Uptime 6 minutes.
      2013-05-17 16:15:53,816 | INFO  | edhat-024/deploy | KarArtifactInstaller             | ?                                   ? | 27 - org.apache.karaf.deployer.kar - 2.3.0.redhat-60024 | Installing KAR file /home/ramiro/tecPlata/jboss-fuse-6.0.0.redhat-024/deploy/TaxGroupService-feature-1.0.0-SNAPSHOT.kar
      2013-05-17 16:15:53,820 | INFO  | edhat-024/deploy | KarArtifactInstaller             | ?                                   ? | 27 - org.apache.karaf.deployer.kar - 2.3.0.redhat-60024 | Added feature repository 'file:/home/ramiro/tecPlata/jboss-fuse-6.0.0.redhat-024/system/com/tecplata/esb/service/taxgroup/TaxGroupService-feature/1.0.0-SNAPSHOT/TaxGroupService-feature-1.0.0-SNAPSHOT-features.xml'.
      2013-05-17 16:15:53,864 | INFO  | NAPSHOT-thread-1 | Activator                        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Found 1 @Converter classes to load
      2013-05-17 16:15:53,864 | INFO  | NAPSHOT-thread-1 | Activator                        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Found 1 @Converter classes to load
      2013-05-17 16:15:53,865 | INFO  | NAPSHOT-thread-1 | Activator                        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Found 1 @Converter classes to load
      2013-05-17 16:15:53,865 | INFO  | NAPSHOT-thread-1 | Activator                        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Found 2 @Converter classes to load
      2013-05-17 16:15:53,866 | INFO  | NAPSHOT-thread-1 | Activator                        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Found 1 @Converter classes to load
      2013-05-17 16:15:53,866 | INFO  | NAPSHOT-thread-1 | Activator                        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Found 2 @Converter classes to load
      2013-05-17 16:15:53,866 | INFO  | NAPSHOT-thread-1 | Activator                        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Found 2 @Converter classes to load
      2013-05-17 16:15:53,867 | INFO  | NAPSHOT-thread-1 | Activator                        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Found 0 @Converter classes to load
      2013-05-17 16:15:53,869 | INFO  | NAPSHOT-thread-1 | ManagementStrategyFactory        | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | JMX enabled.
      2013-05-17 16:15:53,884 | INFO  | NAPSHOT-thread-1 | InstrumentationManagerImpl       | ?                                   ? | 150 - org.apache.cxf.cxf-rt-management - 2.6.0.redhat-60024 | registering MBean org.apache.cxf:bus.id=TaxGroupService-service-cxf3218930,type=Bus,instance.id=3218930: org.apache.cxf.bus.ManagedBus@a518b6
      2013-05-17 16:15:53,884 | INFO  | NAPSHOT-thread-1 | InstrumentationManagerImpl       | ?                                   ? | 150 - org.apache.cxf.cxf-rt-management - 2.6.0.redhat-60024 | registering MBean org.apache.cxf:bus.id=TaxGroupService-service-cxf3218930,type=Bus,instance.id=3218930: javax.management.modelmbean.RequiredModelMBean@f98d7a
      2013-05-17 16:15:53,884 | INFO  | NAPSHOT-thread-1 | InstrumentationManagerImpl       | ?                                   ? | 150 - org.apache.cxf.cxf-rt-management - 2.6.0.redhat-60024 | registered org.apache.cxf:bus.id=TaxGroupService-service-cxf3218930,type=Bus,instance.id=3218930
      2013-05-17 16:15:53,885 | INFO  | NAPSHOT-thread-1 | InstrumentationManagerImpl       | ?                                   ? | 150 - org.apache.cxf.cxf-rt-management - 2.6.0.redhat-60024 | registering MBean org.apache.cxf:bus.id=TaxGroupService-service-cxf3218930,WorkQueueManager=Bus.WorkQueueManager,type=WorkQueueManager,instance.id=28791141: org.apache.cxf.bus.managers.WorkQueueManagerImplMBeanWrapper@40d241
      2013-05-17 16:15:53,886 | INFO  | NAPSHOT-thread-1 | InstrumentationManagerImpl       | ?                                   ? | 150 - org.apache.cxf.cxf-rt-management - 2.6.0.redhat-60024 | registering MBean org.apache.cxf:bus.id=TaxGroupService-service-cxf3218930,WorkQueueManager=Bus.WorkQueueManager,type=WorkQueueManager,instance.id=28791141: javax.management.modelmbean.RequiredModelMBean@1abe507
      2013-05-17 16:15:53,888 | INFO  | NAPSHOT-thread-1 | BlueprintCamelContext            | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Apache Camel 2.10.0.redhat-60024 (CamelContext: TaxGroupServiceCamelContext) is starting
      2013-05-17 16:15:53,888 | INFO  | NAPSHOT-thread-1 | BlueprintCamelContext            | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Tracing is enabled on CamelContext: TaxGroupServiceCamelContext
      2013-05-17 16:15:53,930 | INFO  | NAPSHOT-thread-1 | ReflectionServiceFactoryBean     | ?                                   ? | 149 - org.apache.cxf.cxf-rt-core - 2.6.0.redhat-60024 | Creating Service {http://taxgroup.service.esb.tecplata.com/}TaxGroupServiceService from class com.tecplata.esb.service.taxgroup.TaxGroupService
      2013-05-17 16:15:53,949 | INFO  | NAPSHOT-thread-1 | ServerImpl                       | ?                                   ? | 147 - org.apache.cxf.cxf-api - 2.6.0.redhat-60024 | Setting the server's publish address to be /TaxGroupService
      2013-05-17 16:15:53,950 | INFO  | NAPSHOT-thread-1 | InstrumentationManagerImpl       | ?                                   ? | 150 - org.apache.cxf.cxf-rt-management - 2.6.0.redhat-60024 | registering MBean org.apache.cxf:bus.id=TaxGroupService-service-cxf3218930,type=Bus.Service.Endpoint,service="{http://taxgroup.service.esb.tecplata.com/}TaxGroupServiceService",port="TaxGroupServicePort",instance.id=24806536: org.apache.cxf.endpoint.ManagedEndpoint@931d47
      2013-05-17 16:15:53,950 | INFO  | NAPSHOT-thread-1 | InstrumentationManagerImpl       | ?                                   ? | 150 - org.apache.cxf.cxf-rt-management - 2.6.0.redhat-60024 | registering MBean org.apache.cxf:bus.id=TaxGroupService-service-cxf3218930,type=Bus.Service.Endpoint,service="{http://taxgroup.service.esb.tecplata.com/}TaxGroupServiceService",port="TaxGroupServicePort",instance.id=24806536: javax.management.modelmbean.RequiredModelMBean@6722a9
      2013-05-17 16:15:53,978 | INFO  | NAPSHOT-thread-1 | BlueprintCamelContext            | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Route: route24 started and consuming from: Endpoint[cxf://bean:TaxGroupServiceConsumerEndpoint]
      2013-05-17 16:15:53,978 | INFO  | NAPSHOT-thread-1 | faultManagementLifecycleStrategy | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | StatisticsLevel at All so enabling load performance statistics
      2013-05-17 16:15:53,981 | INFO  | NAPSHOT-thread-1 | BlueprintCamelContext            | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Total 1 routes, of which 1 is started.
      2013-05-17 16:15:53,982 | INFO  | NAPSHOT-thread-1 | BlueprintCamelContext            | ?                                   ? | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Apache Camel 2.10.0.redhat-60024 (CamelContext: TaxGroupServiceCamelContext) started in 0.093 seconds
      2013-05-17 16:15:53,989 | INFO  | edhat-024/deploy | fileinstall                      | ?                                   ? | 7 - org.apache.felix.fileinstall - 3.3.11.redhat-60024 | Updated /home/ramiro/tecPlata/jboss-fuse-6.0.0.redhat-024/deploy/TaxGroupService-feature-1.0.0-SNAPSHOT.kar
      

       

       

      These are the features:

       

      https://dl.dropboxusercontent.com/u/225304/TaxGroupService-feature-1.0.0-SNAPSHOT.kar

      https://dl.dropboxusercontent.com/u/225304/VesselVisitorFeature-1.0.0-SNAPSHOT.kar

       

      How fuse determine de Name or the ID of the features? Maybe I have to change something in the feature.xml (is generated by the plugin) and I dont know what is that

       

      Edited by: chubutin on May 17, 2013 7:54 PM

       

      This post is duplicated in https://community.jboss.org/message/818468#818468

       

      Edited by: chubutin on May 20, 2013 2:17 PM