Red Hat JBoss Fuse 6.2.1:Osgi 缺少要求:Oracle JDBC 驱动程序 [英] Red Hat JBoss Fuse 6.2.1: Osgi Missing Requirement: Oracle JDBC Driver
问题描述
这是我在使用 Jboss 保险丝时遇到的一个问题,其中找不到作为 OSGI 包的依赖项(Oracle JDBC JAR).源代码在本地运行时运行良好,但在 Karaf 容器上部署时出错.问题的详细说明和相关的源代码位于:https://developer.jboss.org/message/948643
This is a problem that I am facing with Jboss fuse, where a dependency (Oracle JDBC JAR) is not found as an OSGI bundle. The source code works fine when run locally, but errors out when deployed on a Karaf container. A detailed explanation of the issue and associated source code is placed at: https://developer.jboss.org/message/948643
欢迎对此提出任何建议.
Any suggestions on this would be welcome.
感谢您的耐心等待.普拉巴尔
Thanks for your patience. Prabal
推荐答案
您尝试在 Fuse Server 上部署的 Oracle JAR 文件不是 Maven Bundle.
因此,您需要使用以下命令包装并安装库:
The Oracle JAR File that you are trying to deploying on the Fuse Server is not a Maven Bundle.
So you'll need to Wrap and install the library using the following command :
install -s wrap:mvn:com.oracle/ojdbc6/<version>
其中
指的是 jar 文件的版本号.希望这会有所帮助.
Where the <version>
refers to the version number of the jar file. Hope this helps.
这篇关于Red Hat JBoss Fuse 6.2.1:Osgi 缺少要求:Oracle JDBC 驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!