问题
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