Red Hat JBoss Fuse 6.2.1: Osgi Missing Requirement: Oracle JDBC Driver

送分小仙女□ 提交于 2019-12-12 04:19:08

问题


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


回答1:


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>

Where the <version> refers to the version number of the jar file. Hope this helps.



来源:https://stackoverflow.com/questions/34694245/red-hat-jboss-fuse-6-2-1-osgi-missing-requirement-oracle-jdbc-driver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!