这是我在Jboss保险丝上遇到的一个问题,在该保险丝中找不到依赖项(Oracle JDBC JAR)作为OSGI捆绑包. 源代码在本地运行时工作正常,但在Karaf容器上部署时却出错. 有关问题和相关源代码的详细说明,位于: developer.jboss/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: developer.jboss/message/948643
任何对此的建议都将受到欢迎.
Any suggestions on this would be welcome.
感谢您的耐心配合. 巴巴拉语
Thanks for your patience. Prabal
推荐答案您要在Fuse服务器上部署的Oracle JAR文件不是Maven捆绑包. 因此,您需要使用以下命令包装并安装该库:
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><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驱动程序
发布评论