我遇到了大量其他人遇到並似乎已解決的Spring Roo/Oracle OSGi驅動程序問題。爲ORACLE創建啓用OSGi的jar(用於Spring Roo - ORACLE數據庫集成)
「Springsource目前無法託管OSGi包裝的Oracle驅動程序」,因此看起來您需要將現有的非OSGi包裝在一起。
我一直在這裏以下步驟:
http://nidget.wordpress.com/2011/07/21/how-to-osgify-an-oracle-jdbc-driver-with-spring-roo/ 與驅動程序的Oracle 11g第2版的驅動程序。
得到完全被卡住11步,
11. Remove the faulty OSGI driver from the Felix repository:
- Use 「osgi ps」 to retrieve the ID of the OSGI bundle to remove.
- Use 「osgi headers」 to get the Bundle-SymbolicName of the corresponding OSGI bundle. Probably 「com.oracle.roo.jdbc.ojdbc5″ or 「com.oracle.roo.jdbc.ojdbc6″.
- Use 「osgi uninstall –bundleSymbolicName com.oracle.roo.jdbc.ojdbcx「
我沒有背景,OSGi的所有,儘管得到「com.sun.security.auth.module」缺少當您運行依賴指示
roo> database reverse engineer --shema xxx
無法繼續使用osgi階段從OSGi中卸載這些依賴關係。
任何人都可以通過控制檯轉儲命令來做到這一點,但是不合理。
非常感謝 - Roo允許一個基本的應用程序建立真正的快速,但roo-oracle是一個懸崖,相比其他一切的易用性和速度。
感謝您的文章 - 原文有助於我走上正軌 - 但對於從未處理過osgi的人來說,當我開始打開生成的JAR並干涉MANIFEST.MF時, DIR。可能值得修改原來的帖子,打開清單,從進口部分刪除以下「...」,然後運行roo> osgi install --url file:/// c:\ path \ to \ current \ dir \ oracle \ file_generated_by_wrapper.jar好的,這是手持 - 但Roo是爲了讓它變得簡單... – Alex
接受。感謝您的澄清 - 特別是您的原始文章http://nidget.wordpress.com/2011/07/21/how-to-osgify-an-oracle-jdbc-driver-with-spring-roo/ – Alex