在karaf启动时启用camel-swagger-java时出错

时间:2019-05-02 08:37:36

标签: apache-camel karaf

问题

我正在尝试在 karaf 4.2.2 环境中安装骆驼功能 camel-swagger-java 2.22.2

我在配置文件 etc / org.apache.karaf.features.cfg featuresBoot 属性中添加了 camel-swagger-java 功能>,因为我希望在karaf启动时安装此功能。

启动 bin / karaf 时出现此错误:

  

org.apache.karaf.features.internal.util.MultiException:错误:           下载wrap:file:/ C:/Users/karaf/.m2/repository/io/swagger/swagger-parser/1.0.36/swagger-parser-1.0.36.jar错误           下载wrap:file:/ C:/Users/karaf/.m2/repository/io/swagger/swagger-parser/1.0.36/swagger-parser-1.0.36.jar错误           在org.apache.karaf.features.internal.download.impl.MavenDownloadManager $ MavenDownloader。(MavenDownloadManager.java:91)           在org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)           在org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:457)           在org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:452)           在org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:224)           在org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:388)           在org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)           在org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda $ doProvisionInThread $ 13(FeaturesServiceImpl.java:964)           在java.util.concurrent.FutureTask.run(FutureTask.java:266)           在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)           在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)           在java.lang.Thread.run(Thread.java:748)           禁止:java.io.IOException:下载wrap:file:/ C:/Users/karaf/.m2/repository/io/swagger/swagger-parser/1.0.36/swagger-parser-1.0.36.jar时出错                   在org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:77)                   在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)                   在java.util.concurrent.FutureTask.run(FutureTask.java:266)                   在java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(ScheduledThreadPoolExecutor.java:180)                   在java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)                   ...另外3个           引起原因:java.io.IOException:无法下载[wrap:file:/ C:/Users/karaf/.m2/repository/io/swagger/swagger-parser/1.0.36/swagger-parser-1.0.36。罐]                   在org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:91)                   在org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60)                   ...另外7个           引起原因:java.net.MalformedURLException:未知协议:wrap                   在java.net.URL。(URL.java:627)                   在java.net.URL。(URL.java:490)                   在java.net.URL。(URL.java:439)                   在org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)                   ...另外8个           引起原因:java.lang.IllegalStateException:未知协议:包装                   在org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)                   在java.net.URL。(URL.java:622)                   ...另外11个           [循环参考:java.io.IOException:下载wrap:file:/ C:/Users/karaf/.m2/repository/io/swagger/swagger-parser/1.0.36/swagger-parser-1.0.36.jar时出错


代码

这些是我的 etc / org.apache.karaf.features.cfg

的第一行
  

featuresRepository mvn:org.apache.karaf.features / enterprise / 4.2.2 / xml / features,mvn:org.apache.karaf.features / spring / 4.2.2 / xml / features,mvn:org.apache。 karaf.features / standard / 4.2.2 / xml / features,mvn:org.apache.karaf.features / framework / 4.2.2 / xml / features,mvn:org.apache.camel.karaf / apache-camel / 2.22。 2 / xml / features,mvn:org.apache.karaf.decanter / apache-karaf-decanter / 2.1.0 / xml / features,mvn:org.ops4j.pax.jdbc / pax-jdbc-features / 1.3.2 / xml / features,mvn:org.apache.servicemix.features / servicemix-features / 7.0.1 / xml / features

     

featuresBoot =实例/4.2.2,程序包/4.2.2,日志/4.2.2,ssh/4.2.2,框架/4.2.2,系统/4.2.2,eventadmin/ 4.2.2,功能/4.2.2、shell/4.2.2,管理/4.2.2,服务/4.2.2、jaas/4.2.2,部署器/4.2.2,诊断/4.2.2、wrap/2.5。 4,bundle / 4.2.2,config / 4.2.2,kar / 4.2.2,webconsole / 4.2.2,jdbc / 4.2.2,http / 4.2.2,jetty / 4.2.2,camel / 2.22.2, camel-core / 2.22.2,camel-blueprint / 2.22.2,camel-spring / 2.22.2,camel-jetty / 2.22.2,camel-netty / 2.22.2,camel-netty-http / 2.22.2, camel-netty4 / 2.22.2,camel-netty4-http / 2.22.2,camel-http4 / 2.22.2,camel-jackson / 2.22.2,camel-sql / 2.22.2,camel-jdbc / 2.22.2, camel-quartz / 2.22.2,camel-jacksonxml / 2.22.2, camel-swagger-java / 2.22.2 ,decanter-appender-elasticsearch-rest / 2.1.0,decanter-collector-log /2.1.0、pax-jdbc-mariadb/1.3.2、pax-jdbc-mysql/1.3.2、pax-jdbc-config/1.3.2


问题

为什么会出现此错误?这是camel-swagger-java功能的错误,还是我缺少了什么?

0 个答案:

没有答案