Red Hat JBoss Fuse 6.2.1:Osgi缺少要求:Oracle JDBC驱动程序 [英] Red Hat JBoss Fuse 6.2.1: Osgi Missing Requirement: Oracle JDBC Driver

查看:163
本文介绍了Red Hat JBoss Fuse 6.2.1:Osgi缺少要求:Oracle JDBC驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在Jboss保险丝上遇到的一个问题,在该保险丝中找不到依赖项(Oracle JDBC JAR)作为OSGI捆绑包. 源代码在本地运行时工作正常,但在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服务器上部署的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驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆