0

我在 jboss fuse 的快速启动示例中使用 mvn clean install 构建 rest 项目,并使用 mvn fabric8:deploy 部署它,但是当我将此配置文件分配给容器时,它有一个错误:我搜索了很多以找到解决方案,但我不知道哪个功能或工件有错误

Provision Exception:

    io.fabric8.common.util.MultiException: Error

      at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.(MavenDownloadManager.java:93)

      at io.fabric8.agent.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:71)

      at io.fabric8.agent.service.Agent.loadResources(Agent.java:626)

      at io.fabric8.agent.service.Agent.provision(Agent.java:212)

      at io.fabric8.agent.service.Agent.provision(Agent.java:199)

      at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:753)

      at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:303)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      at java.lang.Thread.run(Thread.java:748)

    org.osgi.framework.BundleException: Unsupported 'Bundle-ManifestVersion' value: 1

      at io.fabric8.agent.resolver.ResourceBuilder.build(ResourceBuilder.java:72)

      at io.fabric8.agent.resolver.ResourceBuilder.build(ResourceBuilder.java:65)

      at io.fabric8.agent.service.Agent$3.downloaded(Agent.java:633)

      at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:143)

      at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:137)

      at io.fabric8.agent.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:343)

      at io.fabric8.agent.download.impl.DefaultFuture.notifyListeners(DefaultFuture.java:328)

      at io.fabric8.agent.download.impl.DefaultFuture.setValue(DefaultFuture.java:254)

      at io.fabric8.agent.download.impl.AbstractDownloadTask.setFile(AbstractDownloadTask.java:53)

      at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:41)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      at java.lang.Thread.run(Thread.java:748)
4

1 回答 1

0

为了解决这个问题,在 fuse 终端写这个命令:profile-display profile-name

结果显示: Agent Properties : optional.mvn:com.fasterxml.jackson.module/jackson-module-jsonSchema/2.4.3 = mvn:com.fasterxml.jackson.module/jackson-module-jsonSchema/2.4.3 lastRefresh。 quickstarts-cxf-rest = 1564925509134 optional.fab:mvn:com.wordnik/swagger-jaxrs_2.10/1.3.12 = fab:mvn:com.wordnik/swagger-jaxrs_2.10/1.3.12

在 fuse V6.3 中,fab 不再工作,您应该包装捆绑包:因此在 fuse 控制台中,打开配置文件的代理属性并注释 optional.fab

问题将得到解决

于 2019-08-05T04:30:28.183 回答