英文:
How to install pax-jdbc-oracle feature in servicemix?
问题
我可以安装 mariadb factory 的功能。 但是我在 karaf/servicemix 中为 oracle factory 安装功能时遇到了问题。 我运行了以下命令:
karaf> feature:repo-add mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.4.0/xml/features
karaf> feature:install pax-jdbc-oracle
然后,结果抛出了以下错误:
> 执行命令时出错:无法解析根:丢失的要求 [root] osgi.identity;osgi.identity=pax-jdbc-oracle;type=karaf.feature;version=" [1.4.0,1.4.0] ";filter:= "(osgi.identity=pax-jdbc-oracle)(type=karaf.feature)(version>=1.4.0)(version<=1.4.0))" [原因是:无法解析 pax-jdbc-oracle/1.4.0:丢失的要求 [pax-jdbc-oracle/1.4.0] osgi.identity;osgi.identity=org.ops4j.pax.jdbc.oracle;type=osgi.bundle;version=" [1.4.0,1.4.0] ";resolution:=mandatory [原因是:无法解析 org.ops4j.pax.jdbc.oracle/1.4.0:丢失的要求 [org.ops4j.pax.jdbc.oracle/1.4.0] osgi.wiring.package;filter:= "(osgi.wiring.package=oracle.jdbc)" ]]
我尝试更改版本并将 oracle 驱动程序添加到 %KARAF_HOME%/system
中,但没有结果。 朋友们,你们能给我一些线索或解决方案吗?
英文:
I could install the feature for mariadb factory. But I have a problems installing the feature for oracle factory in karaf/servicemix. I ran this:
karaf> feature:repo-add mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.4.0/xml/features
karaf> feature:install pax-jdbc-oracle
Then, the result throws the next error:
> Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=pax-jdbc-oracle; type=karaf.feature; version="[1.4.0,1.4.0]"; filter:="(&(osgi.identity=pax-jdbc-oracle)(type=karaf.feature)(version>=1.4.0)(version<=1.4.0))" [caused by: Unable to resolve pax-jdbc-oracle/1.4.0: missing requirement [pax-jdbc-oracle/1.4.0] osgi.identity; osgi.identity=org.ops4j.pax.jdbc.oracle; type=osgi.bundle; version="[1.4.0,1.4.0]"; resolution:=mandatory [caused by: Unable to resolve org.ops4j.pax.jdbc.oracle/1.4.0: missing requirement [org.ops4j.pax.jdbc.oracle/1.4.0] osgi.wiring.package; filter:="(osgi.wiring.package=oracle.jdbc)"]]
I tried changing version and adding the oracle driver in %KARAF_HOME%/system
but no result.
Buddies, Could you give me any clue or solution?
答案1
得分: 0
看起来 Oracle JDBC 驱动程序(oracle.jdbc.*)未找到或未在
(osgi.wiring.package=oracle.jdbc)
中找到,因此请从https://www.oracle.com/database/technologies/appdev/jdbc-ucp-19-7-c-downloads.html下载适当的驱动程序,例如 ojdbc8.jar 或 ojdbc10.jar,并将它们添加到类路径中。
英文:
looks like that the Oracle JDBC driver (oracle.jdbc.*) is not found or was not assinged in
(osgi.wiring.package=oracle.jdbc)
so please download a suitable driver from https://www.oracle.com/database/technologies/appdev/jdbc-ucp-19-7-c-downloads.html i.e. ojdbc8.jar or ojdbc10.jar and add them to classpath
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论