【问题标题】:org.apache.camel.ResolveEndpointFailedException: No component found with scheme: imapsorg.apache.camel.ResolveEndpointFailedException:没有找到带有方案的组件:imaps
【发布时间】:2017-11-16 17:47:09
【问题描述】:

我知道有类似的问题,但没有一个答案能解决我的问题。我创建了一个骆驼电子邮件路由器,它在 eclipse 中完美运行,但是一旦我将它部署到 karaf,我就会收到这个错误:

org.apache.camel.ResolveEndpointFailedException:无法解析端点:imaps://imap.gmail.com?closeFolder=false&consumer.delay=60000&delete=false&disconnect=false&password=passwordxxx&peek=false&unseen=true&username=user@gmail.com到期to:没有找到带有方案的组件:imaps 在 org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:684) 在 com.eightbitplatoon.learning_camel.camel_route.Route.createConsumer(Route.java:25) 在 com.eightbitplatoon.learning_camel.camel_route.Activator.start(Activator.java:21) 在 org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) 在 org.apache.felix.framework.Felix.activateBundle(Felix.java:2226) 在 org.apache.felix.framework.Felix.startBundle(Felix.java:2144) 在 org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:5063) 在 org.apache.felix.framework.Felix.refreshPackages(Felix.java:4253) 在 org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:188) 在 java.lang.Thread.run(Thread.java:745)

我已经尝试将骆驼邮件作为一项功能安装,并且作为 karaf 中的捆绑包也尝试将其包含在我的 pom 文件中,但它似乎没有找到它。

提前致谢

【问题讨论】:

    标签: maven apache-camel osgi karaf


    【解决方案1】:

    将 imap 添加到我的实际骆驼上下文中解决了我的问题

    组件 mailComponent = new org.apache.camel.component.mail.MailComponent(); context.addComponent("imaps", mailComponent);

    【讨论】:

      猜你喜欢
      • 2014-11-03
      • 1970-01-01
      • 2015-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-06
      • 2023-03-07
      • 1970-01-01
      相关资源
      最近更新 更多