我一直在尝试部署以通过结构融合OSGI包。我得到了依赖于Oracle JDBC的错误。该项目在本地运行良好,但是当尝试部署以作为结构配置文件融合然后是容器时它会失败。
论坛中有类似问题Red Hat JBoss Fuse 6.2.1: Osgi Missing Requirement: Oracle JDBC Driver表示问题已通过执行(替换正确的版本号)来解决
test
我也试过了。我可以在features:list输出中看到oracle依赖项,但是保险丝容器仍然出现错误
java.lang.Exception:无法为bundle fab创建资源:mvn:com.oracle/ojdbc6/11.2.0.4
任何一个可以提供帮助的人。 详细错误:
install -s wrap:mvn:com.oracle/ojdbc6/<version>
使用的pom文件是:
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.region.Subsystem.downloadBundles(Subsystem.java:329)
at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:182)
at io.fabric8.agent.service.Deployer.deploy(Deployer.java:273)
at io.fabric8.agent.service.Agent.provision(Agent.java:366)
at io.fabric8.agent.service.Agent.provision(Agent.java:199)
at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:727)
at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:283)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
java.lang.Exception: Unable to create resource for bundle fab:mvn:com.oracle/ojdbc6/11.2.0.4
at io.fabric8.agent.region.Subsystem.createResource(Subsystem.java:491)
at io.fabric8.agent.region.Subsystem$ResourceBuilderCallback.downloaded(Subsystem.java:422)
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:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: 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.region.Subsystem.createResource(Subsystem.java:489)
... 15 more
答案 0 :(得分:0)
看起来jar在Fuse容器中不在存储库中。您是否已将Oracle jar部署到在线Maven资源库或Fuse容器的本地范围内?
在将jar文件部署到mvn repo之后,我成功运行了帖子中提到的命令:
> install -s wrap:mvn:com.oracle/ojdbc6/11.2.0.3