Announcement Announcement Module
Collapse
No announcement yet.
Unable to install osgi-wrapped oracle jdbc driver Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to install osgi-wrapped oracle jdbc driver

    Hi, for the purpose of using db retrospect feature, I tried to wrap an oracle jdbc driver into osgi bundle as described on spring roo manual section 9.2:

    Note: currently there are no open-source JDBC drivers for Oracle or DB2 and Roo does not provide OSGi drivers for these databases. If you are an Oracle or DB2 user, you will need to obtain an OSGi-enabled driver from Oracle or IBM respectively or wrap your own Oracle or DB2 driver jars using Roo's wrapping facility. Use the addon create wrapper to turn an existing Oracle JDBC driver into an OSGi bundle you can install into Roo.
    Running addon create wrapper gives me a new maven project, and I ran the package goal on it which gives me an osgi jar. However when subequently trying to install the bundle using osgi start command, it gives me following exception:

    Code:
    roo> osgi start --url file:///G:/workspaces/workspace-sts-2.8.1.RELEASE/oracleWrappedDriver/target/com.gerrytan.wrappedoraclebundle.ojdbc14-10.2.0.2.0001.jar
    org.osgi.framework.BundleException: Unresolved constraint in bundle com.gerrytan.wrappedoraclebundle.ojdbc14 [68]: Unable to resolve 68.0: missing requirement [68.0] package; (package=javax.resource)
    Did I miss any step?
    Last edited by gerrytan; Feb 22nd, 2012, 12:16 AM.

  • #2
    Look at this forum entry: http://forum.springsource.org/showth...not-working%29

    Comment

    Working...
    X