Unable to start blueprint container for bundle ...

您所在的位置:网站首页 topsystem Unable to start blueprint container for bundle ...

Unable to start blueprint container for bundle ...

#Unable to start blueprint container for bundle ...| 来源: 网络整理| 查看: 265

Hi, I am new at jboss fuse and i started out with a simple example. Although the route is simple it is difficult to get it running.

 

jboss-fuse 6.3.0.redhat-187

Developer Studio: 10.2.0.GA

 

Any help is welcome.

 

Regards,

Coen

 

Message

Unable to start blueprint container for bundle testBindy/1.0.0.SNAPSHOT due to unresolved dependencies [(&(dataformat=bindy)(objectClass=org.apache.camel.spi.DataFormatResolver))]

 

Stack Trace

["java.util.concurrent.TimeoutException","\tat org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:343)[23:org.apache.aries.blueprint.core:1.4.5][org.apache.aries.blueprint:org.apache.aries.blueprint.core:1.4.5 org.apache.aries.blueprint:org.apache.aries.blueprint.core.compatibility:1.0.0]","\tat org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[23:org.apache.aries.blueprint.core:1.4.5][org.apache.aries.blueprint:org.apache.aries.blueprint.core:1.4.5 org.apache.aries.blueprint:org.apache.aries.blueprint.core.compatibility:1.0.0]","\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_71]","\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_71]","\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_71]","\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_71]","\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_71]","\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_71]","\tat java.lang.Thread.run(Thread.java:745)[:1.7.0_71]"]

 

blueprint.xml

   

   

       

           

           

               

               

                   

               

               

           

       

   

 

pom.xml

  4.0.0

  filebindy

  1.0.0-SNAPSHOT

  bundle

  Camel Blueprint Bindy Test

  Camel Blueprint to test the functionalities of Camel Bindy.

 

   

      Apache License, Version 2.0

      http://www.apache.org/licenses/LICENSE-2.0.html

      repo

   

 

 

    2.17.0.redhat-630187

    2.3.7

    UTF-8

    6.3.0.redhat-187

    UTF-8

 

 

   

     

        org.jboss.fuse.bom

        jboss-fuse-parent

        ${jboss.fuse.bom.version}

        pom

        import

     

   

 

 

   

      org.apache.camel

      camel-core

   

   

      org.apache.camel

      camel-blueprint

   

   

      org.apache.camel

      camel-bindy

   

   

      org.slf4j

      slf4j-api

   

   

      org.slf4j

      slf4j-log4j12

   

   

      log4j

      log4j

   

 

 

   

     

        true

        never

     

     

        false

     

      fuse-public-repository

      FuseSource Community Release Repository

      https://repo.fusesource.com/nexus/content/groups/public

   

   

     

        true

        never

     

     

        false

     

      red-hat-ga-repository

      Red Hat GA Repository

      https://maven.repository.redhat.com/ga

   

 

 

   

     

        true

        never

     

     

        false

     

      fuse-public-repository

      FuseSource Community Release Repository

      https://repo.fusesource.com/nexus/content/groups/public

   

   

     

        true

        never

     

     

        false

     

      red-hat-ga-repository

      Red Hat GA Repository

      https://maven.repository.redhat.com/ga

   

 

 

    install

   

     

        org.apache.felix

        maven-bundle-plugin

        ${version.maven-bundle-plugin}

        true

       

         

            testBindy

            Example by Coen [testBindy]

         

       

     

     

        maven-compiler-plugin

        3.5.1

       

          1.8

          1.8

       

     

     

        maven-resources-plugin

        3.0.1

       

          UTF-8

       

     

     

        org.apache.camel

        camel-maven-plugin

        ${camel.version}

       

          true

       

     

   

 

  org.demo

 

Customers.java

package org.demo.filebindy;

 

import org.apache.camel.dataformat.bindy.annotation.CsvRecord;

import org.apache.camel.dataformat.bindy.annotation.DataField;

 

@CsvRecord(separator=",")

public class Customers {

  @DataField(pos=1)

  String companyName;

 

  @DataField(pos=2)

  String companyBrand;

 

  @DataField(pos=3)

  String customerFirstName;

 

  @DataField(pos=4)

  String customerLastName;

 

  @DataField(pos=5)

  String customerEmail;

 

  @DataField(pos=6)

  String customerContract;

 

  @DataField(pos=7)

  String customerInvoice;

 

  @DataField(pos=8)

  String customerAmount;

 

  public String getCompanyName() {

  return companyName;

  }

 

  public void setCompanyName(String companyName) {

  this.companyName = companyName;

  }

 

  public String getCompanyBrand() {

  return companyBrand;

  }

 

  public void setCompanyBrand(String companyBrand) {

  this.companyBrand = companyBrand;

  }

 

  public String getCustomerFirstName() {

  return customerFirstName;

  }

 

  public void setCustomerFirstName(String customerFirstName) {

  this.customerFirstName = customerFirstName;

  }

 

  public String getCustomerLastName() {

  return customerLastName;

  }

 

  public void setCustomerLastName(String customerLastName) {

  this.customerLastName = customerLastName;

  }

 

  public String getCustomerEmail() {

  return customerEmail;

  }

 

  public void setCustomerEmail(String customerEmail) {

  this.customerEmail = customerEmail;

  }

 

  public String getCustomerContract() {

  return customerContract;

  }

 

  public void setCustomerContract(String customerContract) {

  this.customerContract = customerContract;

  }

 

  public String getCustomerInvoice() {

  return customerInvoice;

  }

 

  public void setCustomerInvoice(String customerInvoice) {

  this.customerInvoice = customerInvoice;

  }

 

  public String getCustomerAmount() {

  return customerAmount;

  }

 

  public void setCustomerAmount(String customerAmount) {

  this.customerAmount = customerAmount;

  }

 

  public String toString(){

  return "customerFirstName:" + customerFirstName + " customerLastName:" + customerLastName + " customerEmail:" + customerEmail;

  }

}



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3