2017-03-22 49 views
0

我开始在apache servicemix昨天工作,我想我的所有文件在我的保管箱,并把它们放在我的本地计算机上。 这是它的blueprint.xml:骆驼 - 丢失的依赖关系:org.apache.camel.spi.ComponentResolver为dropbox

<?xml version="1.0" encoding="UTF-8"?> 
<blueprint 
    xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation=" 
     http://www.osgi.org/xmlns/blueprint/v1.0.0 
     http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> 

     <bean init-method="init" class="org.apache.camel.spi.ComponentResolver" id="componentResolver"/> 
    <bean id="mySimpleRegistry" class="org.apache.camel.impl.SimpleRegistry"></bean> 

    <camelContext xmlns="http://camel.apache.org/schema/blueprint"> 
    <propertyPlaceholder id="dropbox" location="dropbox.properties"/> 
     <route> 
     <from uri="dropbox://get?appKey=<>;appSecret=<>;accessToken=<>;path=/"/> 

     <to uri="file:camel/output"/> 
     </route> 
    </camelContext> 
</blueprint> 

但它什么也没做。所以我使用bundle:diag检查了什么问题。

Bundle 239 
---------- 
Status: GracePeriod 
Blueprint 
22/03/17 14:49 
Missing dependencies: 
(&(component=dropbox)(objectClass=org.apache.camel.spi.ComponentResolver)) 

我不知道如何解决它。

回答

2

转到ServiceMix的控制台,使用以下命令:

feature:install camel-dropbox

重新启动捆绑

restart nnn其中nnn是你的包我倒是

+0

感谢的做工精细=) – iceriku

+0

的给予好评/如果您的状态允许,请高度评价正确的答案。快乐的工作。 – ThomasW