Announcement Announcement Module
Collapse
No announcement yet.
Spring Roo DB2 introspection fails Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Got it!

    I had to modify the db2jcc4.jar file that was produced. The META-INF/MANIFEST.MF file has an Import-Package section that, as I understand it, lists the dependencies of this jar/bundle, things it expects to need at runtime and have provide by other bundles. The Maven tool that builds this apparently gets some of it wrong. I stripped out the elements that appear to be contained in the jar already (e.g.COM.ibm.db2os390.*) and repackaged the jar. Once this was done, it loaded in and roo gave me no complaints. I'm using a version of db2jcc4.jar that comes with an internal version of "1.0" in the MANIFEST.MF it ships with naturally. I'm not sure if this is correct, it might actually be 9.7.x.

    Here's the working contents of the MANIFEST.MF I ended up with (Import-Package is near the bottom)

    Code:
    Manifest-Version: 1.0
    Bnd-LastModified: 1385351883463
    Bundle-ManifestVersion: 2
    Bundle-Name: db2jcc
    Bundle-SymbolicName: com.ibm.db2.roo.JDBC
    Bundle-Version: 1.0
    Created-By: 1.6.0_37 (Sun Microsystems Inc.)
    Export-Package: com.ibm.db2.jcc.mx;version="1.0",sqlj.runtime.ref;uses:=
     "sqlj.runtime.profile,sqlj.runtime,sqlj.runtime.util,sqlj.runtime.error
     ";version="1.0",com.ibm.db2.jcc.t2zos;uses:="com.ibm.db2.jcc,com.ibm.db
     2.jcc.am,com.ibm.db2.jcc.t2,com.ibm.zos.batch.container.support,com.ibm
     .zos.batch.container.support.transaction,javax.naming,sqlj.runtime.ref,
     javax.transaction,org.ietf.jgss,com.ibm.db2.jcc.a,sqlj.runtime,javax.sq
     l,com.ibm.websphere.interrupt";version="1.0",com.ibm.db2.jcc.b.c;uses:=
     "org.xml.sax.ext,org.xml.sax,com.ibm.db2.jcc.am,com.ibm.db2.jcc.b,com.i
     bm.db2.jcc.b.a";version="1.0",com.ibm.db2.jcc.b.a;uses:="com.ibm.db2.jc
     c.b,com.ibm.db2.jcc.b.c,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
     ";version="1.0",com.ibm.db2.jcc.b.b;uses:="com.ibm.db2.jcc.b,com.ibm.db
     2.jcc.b.c,org.xml.sax";version="1.0",sqlj.runtime.profile;uses:="sqlj.r
     untime.error,sqlj.runtime";version="1.0",sqlj.runtime;uses:="sqlj.runti
     me.profile,javax.naming,javax.sql,sqlj.runtime.error";version="1.0",COM
     .ibm.db2os390.sqlj.jdbc;uses:="com.ibm.db2.jcc,com.ibm.db2.jcc.t2zos";v
     ersion="1.0",sqlj.runtime.error;version="1.0",com.ibm.db2.jcc.b;uses:="
     javax.xml.stream,org.xml.sax,com.ibm.db2.jcc.am,com.ibm.db2.jcc.b.c,jav
     ax.xml.stream.events,javax.xml.namespace,javax.xml.transform,javax.xml.
     transform.stream";version="1.0",com.ibm.db2.jcc.a;uses:="com.ibm.db2.jc
     c,com.ibm.db2.jcc.am";version="1.0",com.ibm.db2.jcc.osgi;uses:="org.osg
     i.framework";version="1.0",sqlj.runtime.profile.ref;uses:="sqlj.runtime
     .profile,sqlj.runtime,sqlj.runtime.error,sqlj.runtime.ref";version="1.0
     ",sqlj.runtime.profile.util;uses:="sqlj.runtime.profile,sqlj.runtime.pr
     ofile.ref,sqlj.runtime,sqlj.runtime.error,sqlj.framework.error,sqlj.mes
     g,sun.misc,sqlj.framework.ide,sqlj.framework.options,sqlj.util.io,sqlj.
     tools";version="1.0",sqlj.runtime.util;version="1.0",com.ibm.db2.jcc;us
     es:="com.ibm.db2.jcc.am,javax.naming,sqlj.runtime.ref,com.ibm.db2.jcc.t
     2zos,com.ibm.db2.jcc.t4,com.ibm.db2.jcc.t2,javax.naming.spi,org.ietf.jg
     ss,javax.sql,com.ibm.db2.jcc.uw,javax.transaction.xa,com.ibm.db2.jcc.sq
     lj,javax.xml.transform";version="1.0",com.ibm.db2.jcc.resources;uses:="
     com.ibm.db2.jcc.am";version="1.0",com.ibm.db2.jcc.am;uses:="com.ibm.db2
     .jcc,com.ibm.db2.jcc.t4,javax.transaction.xa,javax.security.auth.callba
     ck,javax.security.auth.login,javax.security.auth,com.ibm.db2.jcc.resour
     ces,com.ibm.db2.jcc.sqlj,sun.io,javax.naming,sun.security.action,org.ie
     tf.jgss,sqlj.runtime.ref,com.ibm.db2.jcc.uw,com.ibm.db2.jcc.t2zos,javax
     .management,com.ibm.db2.jcc.mx.a,sqlj.runtime,com.ibm.db2.jcc.a,javax.s
     ql,javax.xml.transform,javax.xml.transform.dom,org.w3c.dom,org.xml.sax.
     ext,javax.xml.transform.stream,com.ibm.db2.jcc.b,javax.xml.transform.sa
     x,com.ibm.db2.jcc.b.a,org.xml.sax,javax.xml.transform.stax,javax.xml.pa
     rsers,com.ibm.db2.jcc.b.b,javax.xml.stream,org.xml.sax.helpers,javax.cr
     ypto.interfaces,javax.crypto.spec,javax.crypto,com.ibm.db2.jcc.t2";vers
     ion="1.0",com.ibm.db2.jcc.sqlj;uses:="sqlj.runtime.profile,com.ibm.db2.
     jcc,com.ibm.db2.jcc.resources,com.ibm.db2.jcc.am,com.ibm.db2.jcc.t4,sql
     j.runtime,javax.naming,sqlj.runtime.profile.util,sun.io,javax.sql,sqlj.
     runtime.ref,sqlj.runtime.profile.ref,com.ibm.db2.jcc.t2zos,COM.ibm.db2o
     s390.sqlj.custom,sqlj.runtime.error";version="1.0",com.ibm.db2.jcc.mx.a
     ;uses:="com.ibm.db2.jcc.mx,com.ibm.db2.jcc";version="1.0",com.ibm.db2.j
     cc.uw.classloader;uses:="com.ibm.db2.jcc.uw.a,com.ibm.db2.jcc.resources
     ,com.ibm.db2.jcc.am";version="1.0",COM.ibm.db2os390.sqlj.custom;uses:="
     sqlj.runtime.profile,COM.ibm.db2os390.sqlj.runtime,COM.ibm.db2os390.sql
     j.jdbc,com.ibm.db2.jcc,sqlj.runtime.profile.ref";version="1.0",com.ibm.
     db2.jcc.t4;uses:="com.ibm.db2.jcc,com.ibm.db2.jcc.am,javax.transaction.
     xa,org.ietf.jgss,com.ibm.db2.jcc.resources,javax.naming,sqlj.runtime.pr
     ofile,com.ibm.db2.jcc.a,com.ibm.db2.jcc.sqlj,javax.net,javax.net.ssl";v
     ersion="1.0",COM.ibm.db2.app;uses:="sqlj.runtime.ref,com.ibm.db2.jcc,co
     m.ibm.db2.jcc.uw";version="1.0",com.ibm.db2.jcc.t2;uses:="com.ibm.db2.j
     cc.t2zos,com.ibm.db2.jcc.am,com.ibm.db2.jcc.uw";version="1.0",com.ibm.d
     b2.jcc.uw.a;uses:="com.ibm.db2.jcc.am,com.ibm.db2.jcc.resources";versio
     n="1.0",com.ibm.db2.jcc.uw;uses:="com.ibm.db2.jcc.resources,com.ibm.db2
     .jcc.am,sqlj.runtime.ref,com.ibm.db2.jcc,com.ibm.db2.jcc.t4,com.ibm.db2
     .jcc.t2,javax.transaction.xa,com.ibm.db2.jcc.a";version="1.0"
    Import-Package: javax.crypto,javax.crypto.interfaces,javax.crypto.spec,j
     avax.management,javax.naming,javax.naming.spi,javax.net,javax.net.ssl,j
     avax.security.auth,javax.security.auth.callback,javax.security.auth.log
     in,javax.sql,javax.transaction,javax.transaction.xa,javax.xml.namespace
     ,javax.xml.parsers,javax.xml.stream,javax.xml.stream.events,javax.xml.t
     ransform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.tran
     sform.stax,javax.xml.transform.stream,org.ietf.jgss,org.osgi.framework,
     org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
    Originally-Created-By: 1.6.0 (IBM Corporation)
    Private-Package: .
    Tool: Bnd-1.50.0

    Comment

    Working...
    X