|
Could somebody provide osgi-bundled oracle-jdbc-driver?
I tossed about it all day with Eclipse and Bnd-plugin. Following was my evolving *.bnd, failed at importing private-package "oracle.ewt.graphics.frame". I just wanna oracle.jdbc.OracleDriver, how to wrap a clean driver bundle? ======*.bnd============ -buildpath: lib/ojdbc6.jar;version=file,\ lib/ons.jar;version=file,\ lib/oraclepki.jar;version=file,\ lib/osdt_core.jar;version=file,\ lib/osdt_cert.jar;version=file,\ lib/ojmisc.jar;version=file,\ lib/owm-3_0.jar;version=file,\ lib/share.jar;version=file,\ lib/ewt3.jar;version=file,\ lib/orai18n.jar;version=file Export-Package: oracle.jdbc;version=${Bundle-Version} Private-Package: oracle.core.lmx;version=${Bundle-Version},\ oracle.core.lvf;version=${Bundle-Version},\ oracle.jdbc.aq;version=${Bundle-Version},\ oracle.jdbc.connector;version=${Bundle-Version},\ oracle.jdbc.dcn;version=${Bundle-Version},\ oracle.jdbc.diagnostics;version=${Bundle-Version},\ oracle.jdbc.internal;version=${Bundle-Version},\ oracle.jdbc.oci;version=${Bundle-Version},\ oracle.jdbc.oracore;version=${Bundle-Version},\ oracle.jdbc.pool;version=${Bundle-Version},\ oracle.jdbc.rowset;version=${Bundle-Version},\ oracle.jdbc.util;version=${Bundle-Version},\ oracle.jdbc.xa;version=${Bundle-Version},\ oracle.jdbc.xa.client;version=${Bundle-Version},\ oracle.jpub.runtime;version=${Bundle-Version},\ oracle.net.ano;version=${Bundle-Version},\ oracle.net.aso;version=${Bundle-Version},\ oracle.net.jdbc.TNSAddress;version=${Bundle-Version},\ oracle.net.jdbc.nl;version=${Bundle-Version},\ oracle.net.jdbc.nl.mesg;version=${Bundle-Version},\ oracle.net.jndi;version=${Bundle-Version},\ oracle.net.mesg;version=${Bundle-Version},\ oracle.net.ns;version=${Bundle-Version},\ oracle.net.nt;version=${Bundle-Version},\ oracle.net.resolver;version=${Bundle-Version},\ oracle.bali.share;version=${Bundle-Version},\ oracle.bali.share.sort;version=${Bundle-Version},\ oracle.bali.share.collection;version=${Bundle-Version},\ oracle.bali.share.util;version=${Bundle-Version},\ oracle.security.misc;version=${Bundle-Version},\ oracle.security.pki.internal;version=${Bundle-Version},\ oracle.security.crypto.core;version=${Bundle-Version},\ oracle.security.crypto.core.math;version=${Bundle-Version},\ oracle.security.crypto.fips;version=${Bundle-Version},\ oracle.security.crypto.util;version=${Bundle-Version},\ oracle.security.crypto.asn1;version=${Bundle-Version},\ oracle.security.crypto.cert;version=${Bundle-Version},\ oracle.security.crypto.cert.ext;version=${Bundle-Version},\ oracle.security.o3logon;version=${Bundle-Version},\ oracle.security.o5logon;version=${Bundle-Version},\ oracle.sql;version=${Bundle-Version},\ oracle.sql.converter;version=${Bundle-Version},\ oracle.sql.converter_xcharset;version=${Bundle-Version},\ oracle.eons;version=${Bundle-Version},\ oracle.eons.config;version=${Bundle-Version},\ oracle.eons.diagnostics;version=${Bundle-Version},\ oracle.eons.diagnostics.impl;version=${Bundle-Version},\ oracle.eons.impl;version=${Bundle-Version},\ oracle.eons.impl.config;version=${Bundle-Version},\ oracle.eons.impl.config.spi;version=${Bundle-Version},\ oracle.eons.impl.proxy.server;version=${Bundle-Version},\ oracle.eons.msg;version=${Bundle-Version},\ oracle.eons.proxy;version=${Bundle-Version},\ oracle.eons.proxy.message;version=${Bundle-Version},\ oracle.eons.proxy.runtime;version=${Bundle-Version},\ oracle.eons.rpc;version=${Bundle-Version},\ oracle.eons.rpc.impl;version=${Bundle-Version},\ oracle.eons.security;version=${Bundle-Version},\ oracle.eons.serialization;version=${Bundle-Version},\ oracle.eons.spi;version=${Bundle-Version},\ oracle.eons.util;version=${Bundle-Version},\ oracle.ons;version=${Bundle-Version},\ oracle.ons.eonsapi;version=${Bundle-Version},\ oracle.ons.opmn;version=${Bundle-Version},\ oracle.i18n.data;version=${Bundle-Version},\ oracle.i18n.text;version=${Bundle-Version},\ oracle.i18n.text.converter;version=${Bundle-Version},\ oracle.i18n.util;version=${Bundle-Version},\ oracle.security.admin.util;version=${Bundle-Version},\ oracle.security.wallet;version=${Bundle-Version},\ oracle.security.pki;version=${Bundle-Version},\ oracle.security.pki.textui;version=${Bundle-Version},\ oracle.eons.blab;version=${Bundle-Version},\ oracle.ons.onsapi;version=${Bundle-Version},\ oracle.jdbc.driver;version=${Bundle-Version},\ oracle.security.pki.ldap;version=${Bundle-Version},\ oracle.ewt;version=${Bundle-Version},\ oracle.ewt.border;version=${Bundle-Version},\ oracle.ewt.button;version=${Bundle-Version},\ oracle.ewt.access;version=${Bundle-Version},\ oracle.ewt.dnd;version=${Bundle-Version},\ oracle.ewt.event;version=${Bundle-Version},\ oracle.ewt.event.tracking;version=${Bundle-Version},\ oracle.ewt.dataSource;version=${Bundle-Version},\ oracle.ewt.graphics;version=${Bundle-Version},\ oracle.ewt.graphics.frame;version=${Bundle-Version},\ oracle.i18n.util.builder;version=${Bundle-Version} Bundle-Version: 0.0.0 -runfw: org.apache.felix.framework |
|
Hi.
We can't create ServiceMix bundle for Oracle JDBC due to not compatible license. However, we can create it in ServiceMix Extra. What version are you looking for ? Regards JB -----Original Message----- From: drhades <[hidden email]> Date: Wed, 18 May 2011 04:03:57 To: <[hidden email]> Reply-To: [hidden email] Subject: bundled oracle-jdbc-driver? Could somebody provide osgi-bundled oracle-jdbc-driver? I tossed about it all day with Eclipse and Bnd-plugin. Following was my evolving *.bnd, failed at importing private-package "oracle.ewt.graphics.frame". I just wanna oracle.jdbc.OracleDriver, how to wrap a clean driver bundle? ======*.bnd============ -buildpath: lib/ojdbc6.jar;version=file,\ lib/ons.jar;version=file,\ lib/oraclepki.jar;version=file,\ lib/osdt_core.jar;version=file,\ lib/osdt_cert.jar;version=file,\ lib/ojmisc.jar;version=file,\ lib/owm-3_0.jar;version=file,\ lib/share.jar;version=file,\ lib/ewt3.jar;version=file,\ lib/orai18n.jar;version=file Export-Package: oracle.jdbc;version=${Bundle-Version} Private-Package: oracle.core.lmx;version=${Bundle-Version},\ oracle.core.lvf;version=${Bundle-Version},\ oracle.jdbc.aq;version=${Bundle-Version},\ oracle.jdbc.connector;version=${Bundle-Version},\ oracle.jdbc.dcn;version=${Bundle-Version},\ oracle.jdbc.diagnostics;version=${Bundle-Version},\ oracle.jdbc.internal;version=${Bundle-Version},\ oracle.jdbc.oci;version=${Bundle-Version},\ oracle.jdbc.oracore;version=${Bundle-Version},\ oracle.jdbc.pool;version=${Bundle-Version},\ oracle.jdbc.rowset;version=${Bundle-Version},\ oracle.jdbc.util;version=${Bundle-Version},\ oracle.jdbc.xa;version=${Bundle-Version},\ oracle.jdbc.xa.client;version=${Bundle-Version},\ oracle.jpub.runtime;version=${Bundle-Version},\ oracle.net.ano;version=${Bundle-Version},\ oracle.net.aso;version=${Bundle-Version},\ oracle.net.jdbc.TNSAddress;version=${Bundle-Version},\ oracle.net.jdbc.nl;version=${Bundle-Version},\ oracle.net.jdbc.nl.mesg;version=${Bundle-Version},\ oracle.net.jndi;version=${Bundle-Version},\ oracle.net.mesg;version=${Bundle-Version},\ oracle.net.ns;version=${Bundle-Version},\ oracle.net.nt;version=${Bundle-Version},\ oracle.net.resolver;version=${Bundle-Version},\ oracle.bali.share;version=${Bundle-Version},\ oracle.bali.share.sort;version=${Bundle-Version},\ oracle.bali.share.collection;version=${Bundle-Version},\ oracle.bali.share.util;version=${Bundle-Version},\ oracle.security.misc;version=${Bundle-Version},\ oracle.security.pki.internal;version=${Bundle-Version},\ oracle.security.crypto.core;version=${Bundle-Version},\ oracle.security.crypto.core.math;version=${Bundle-Version},\ oracle.security.crypto.fips;version=${Bundle-Version},\ oracle.security.crypto.util;version=${Bundle-Version},\ oracle.security.crypto.asn1;version=${Bundle-Version},\ oracle.security.crypto.cert;version=${Bundle-Version},\ oracle.security.crypto.cert.ext;version=${Bundle-Version},\ oracle.security.o3logon;version=${Bundle-Version},\ oracle.security.o5logon;version=${Bundle-Version},\ oracle.sql;version=${Bundle-Version},\ oracle.sql.converter;version=${Bundle-Version},\ oracle.sql.converter_xcharset;version=${Bundle-Version},\ oracle.eons;version=${Bundle-Version},\ oracle.eons.config;version=${Bundle-Version},\ oracle.eons.diagnostics;version=${Bundle-Version},\ oracle.eons.diagnostics.impl;version=${Bundle-Version},\ oracle.eons.impl;version=${Bundle-Version},\ oracle.eons.impl.config;version=${Bundle-Version},\ oracle.eons.impl.config.spi;version=${Bundle-Version},\ oracle.eons.impl.proxy.server;version=${Bundle-Version},\ oracle.eons.msg;version=${Bundle-Version},\ oracle.eons.proxy;version=${Bundle-Version},\ oracle.eons.proxy.message;version=${Bundle-Version},\ oracle.eons.proxy.runtime;version=${Bundle-Version},\ oracle.eons.rpc;version=${Bundle-Version},\ oracle.eons.rpc.impl;version=${Bundle-Version},\ oracle.eons.security;version=${Bundle-Version},\ oracle.eons.serialization;version=${Bundle-Version},\ oracle.eons.spi;version=${Bundle-Version},\ oracle.eons.util;version=${Bundle-Version},\ oracle.ons;version=${Bundle-Version},\ oracle.ons.eonsapi;version=${Bundle-Version},\ oracle.ons.opmn;version=${Bundle-Version},\ oracle.i18n.data;version=${Bundle-Version},\ oracle.i18n.text;version=${Bundle-Version},\ oracle.i18n.text.converter;version=${Bundle-Version},\ oracle.i18n.util;version=${Bundle-Version},\ oracle.security.admin.util;version=${Bundle-Version},\ oracle.security.wallet;version=${Bundle-Version},\ oracle.security.pki;version=${Bundle-Version},\ oracle.security.pki.textui;version=${Bundle-Version},\ oracle.eons.blab;version=${Bundle-Version},\ oracle.ons.onsapi;version=${Bundle-Version},\ oracle.jdbc.driver;version=${Bundle-Version},\ oracle.security.pki.ldap;version=${Bundle-Version},\ oracle.ewt;version=${Bundle-Version},\ oracle.ewt.border;version=${Bundle-Version},\ oracle.ewt.button;version=${Bundle-Version},\ oracle.ewt.access;version=${Bundle-Version},\ oracle.ewt.dnd;version=${Bundle-Version},\ oracle.ewt.event;version=${Bundle-Version},\ oracle.ewt.event.tracking;version=${Bundle-Version},\ oracle.ewt.dataSource;version=${Bundle-Version},\ oracle.ewt.graphics;version=${Bundle-Version},\ oracle.ewt.graphics.frame;version=${Bundle-Version},\ oracle.i18n.util.builder;version=${Bundle-Version} Bundle-Version: 0.0.0 -runfw: org.apache.felix.framework -- View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956499.html Sent from the Karaf - User mailing list archive at Nabble.com. |
|
Thanks for your quick reply.
Sorry, but what is ServiceMix? I'm struggling for wrap the newest oracle-jdbc-driver (11.2) into an OSGi bundle, which can be installed into Karaf/Felix. Best regards, drhades |
|
In reply to this post by jbonofre
Easy solution: i can send you my pom bundling the latest drivers if you like On May 18, 2011 1:57 PM, "drhades" <[hidden email]> wrote:
> Thanks for your quick reply. > > Sorry, but what is ServiceMix? > > I'm struggling for wrap the newest oracle-jdbc-driver (11.2) into an OSGi > bundle, which can be installed into Karaf/Felix. > > Best regards, > drhades > > -- > View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956627.html > Sent from the Karaf - User mailing list archive at Nabble.com. |
|
In reply to this post by drhades
Hi,
oops sorry :) ServiceMix is an Apache project which provide an enterprise ESB powered by Karaf. It includes a set of others Apache projects (such as Camel, CXF) and also provides ServiceMix resources (NMR, etc). In ServiceMix resources, we can find ServiceMix Bundles which are OSGi-fied version of non-OSGi jar. http://repo1.maven.org/maven2/org/apache/servicemix/bundles/ These bundles are used in a lot of projects. Regards JB On 05/18/2011 01:59 PM, drhades wrote: > Thanks for your quick reply. > > Sorry, but what is ServiceMix? > > I'm struggling for wrap the newest oracle-jdbc-driver (11.2) into an OSGi > bundle, which can be installed into Karaf/Felix. > > Best regards, > drhades > > -- > View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956633.html > Sent from the Karaf - User mailing list archive at Nabble.com. |
|
Ha, nice work.
It'll be blessing for many users if you can hold more common bundles there (e.g. oracle-jdbc-driver). :) Is there an OBR url in ServiceMix maven repository, then we can easily obr:addurl?
Best regards, drhades
On Wed, May 18, 2011 at 8:11 PM, jb-3 [via Karaf] <[hidden email]> wrote: Hi, |
|
Hi,
As ServiceMix is an Apache project, we can host and wrap only products compatible with the Apache license: http://www.apache.org/legal/3party.html That's why I proposed ServiceMix Extra which is not hosted at Apache. Apache projects use Nexus to host artifacts: http://repository.apache.org It's a pure Maven repository, so it doesn't provide the repository.xml file required by an OBR. I proposed an Apache ServiceMix EBR (Enterprise Bundle Repository) in the past, but we didn't make any progress on that. We certainly should :) Regards JB On 05/18/2011 02:34 PM, drhades wrote: > Ha, nice work. > > It'll be blessing for many users if you can hold more common bundles there > (e.g. oracle-jdbc-driver). :) > > Is there an OBR url in ServiceMix maven repository, then we can easily > obr:addurl? > > Best regards, > drhades > > On Wed, May 18, 2011 at 8:11 PM, jb-3 [via Karaf]< > [hidden email]> wrote: > >> Hi, >> >> oops sorry :) >> >> ServiceMix is an Apache project which provide an enterprise ESB powered >> by Karaf. It includes a set of others Apache projects (such as Camel, >> CXF) and also provides ServiceMix resources (NMR, etc). >> In ServiceMix resources, we can find ServiceMix Bundles which are >> OSGi-fied version of non-OSGi jar. >> http://repo1.maven.org/maven2/org/apache/servicemix/bundles/ >> >> These bundles are used in a lot of projects. >> >> Regards >> JB >> >> On 05/18/2011 01:59 PM, drhades wrote: >> >>> Thanks for your quick reply. >>> >>> Sorry, but what is ServiceMix? >>> >>> I'm struggling for wrap the newest oracle-jdbc-driver (11.2) into an OSGi >> >>> bundle, which can be installed into Karaf/Felix. >>> >>> Best regards, >>> drhades >>> >>> -- >>> View this message in context: >> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956633.html >> >>> Sent from the Karaf - User mailing list archive at Nabble.com. >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> >> >> > > > -- > View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956729.html > Sent from the Karaf - User mailing list archive at Nabble.com. |
|
On May 18, 2011, at 5:40 AM, Jean-Baptiste Onofré wrote: > Hi, > > As ServiceMix is an Apache project, we can host and wrap only products compatible with the Apache license: > http://www.apache.org/legal/3party.html > > That's why I proposed ServiceMix Extra which is not hosted at Apache. > > Apache projects use Nexus to host artifacts: > http://repository.apache.org > > It's a pure Maven repository, so it doesn't provide the repository.xml file required by an OBR. I thought apache was running nexus pro and that nexus pro had the ability to supply and OBR repository for its contents. Maybe it just needs to be turned on? thanks david jencks > > I proposed an Apache ServiceMix EBR (Enterprise Bundle Repository) in the past, but we didn't make any progress on that. > We certainly should :) > > Regards > JB > > On 05/18/2011 02:34 PM, drhades wrote: >> Ha, nice work. >> >> It'll be blessing for many users if you can hold more common bundles there >> (e.g. oracle-jdbc-driver). :) >> >> Is there an OBR url in ServiceMix maven repository, then we can easily >> obr:addurl? >> >> Best regards, >> drhades >> >> On Wed, May 18, 2011 at 8:11 PM, jb-3 [via Karaf]< >> [hidden email]> wrote: >> >>> Hi, >>> >>> oops sorry :) >>> >>> ServiceMix is an Apache project which provide an enterprise ESB powered >>> by Karaf. It includes a set of others Apache projects (such as Camel, >>> CXF) and also provides ServiceMix resources (NMR, etc). >>> In ServiceMix resources, we can find ServiceMix Bundles which are >>> OSGi-fied version of non-OSGi jar. >>> http://repo1.maven.org/maven2/org/apache/servicemix/bundles/ >>> >>> These bundles are used in a lot of projects. >>> >>> Regards >>> JB >>> >>> On 05/18/2011 01:59 PM, drhades wrote: >>> >>>> Thanks for your quick reply. >>>> >>>> Sorry, but what is ServiceMix? >>>> >>>> I'm struggling for wrap the newest oracle-jdbc-driver (11.2) into an OSGi >>> >>>> bundle, which can be installed into Karaf/Felix. >>>> >>>> Best regards, >>>> drhades >>>> >>>> -- >>>> View this message in context: >>> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956633.html >>> >>>> Sent from the Karaf - User mailing list archive at Nabble.com. >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the discussion >>> below: >>> >>> >>> >>> >> >> >> -- >> View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956729.html >> Sent from the Karaf - User mailing list archive at Nabble.com. |
|
Another equally good way to automatically wrap the oracle driver is to use the wrap option of the osgi:install command.
osgi:install wrap:mvn:(artifactId)/(groupId)/(version) Sent from Xfinity Mobile App ----- Original Message ----- From: [hidden email] To: [hidden email] Sent:Wed May 18 09:38:00 UTC 2011 Subject: Re: bundled oracle-jdbc-driver? On May 18, 2011, at 5:40 AM, Jean-Baptiste Onofré wrote: > Hi, > > As ServiceMix is an Apache project, we can host and wrap only products compatible with the Apache license: > http://www.apache.org/legal/3party.html > > That's why I proposed ServiceMix Extra which is not hosted at Apache. > > Apache projects use Nexus to host artifacts: > http://repository.apache.org > > It's a pure Maven repository, so it doesn't provide the repository.xml file required by an OBR. thanks david jencks > > I proposed an Apache ServiceMix EBR (Enterprise Bundle Repository) in the past, but we didn't make any progress on that. > We certainly should :) > > Regards > JB > > On 05/18/2011 02:34 PM, drhades wrote: >> Ha, nice work. >> >> It'll be blessing for many users if you can hold more common bundles there >> (e.g. oracle-jdbc-driver). :) >> >> Is there an OBR url in ServiceMix maven repository, then we can easily >> obr:addurl? >> >> Best regards, >> drhades >> >> On Wed, May 18, 2011 at 8:11 PM, jb-3 [via Karaf]< >> [hidden email]> wrote: >> >>> Hi, >>> >>> oops sorry :) >>> >>> ServiceMix is an Apache project which provide an enterprise ESB powered >>> by Karaf. It includes a set of others Apache projects (such as Camel, >>> CXF) and also provides ServiceMix resources (NMR, etc). >>> In ServiceMix resources, we can find ServiceMix Bundles which are >>> OSGi-fied version of non-OSGi jar. >>> http://repo1.maven.org/maven2/org/apache/servicemix/bundles/ >>> >>> These bundles are used in a lot of projects. >>> >>> Regards >>> JB >>> >>> On 05/18/2011 01:59 PM, drhades wrote: >>> >>>> Thanks for your quick reply. >>>> >>>> Sorry, but what is ServiceMix? >>>> >>>> I'm struggling for wrap the newest oracle-jdbc-driver (11.2) into an OSGi >>> >>>> bundle, which can be installed into Karaf/Felix. >>>> >>>> Best regards, >>>> drhades >>>> >>>> -- >>>> View this message in context: >>> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956633.html >>> >>>> Sent from the Karaf - User mailing list archive at Nabble.com. >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the discussion >>> below: >>> >>> >>> >>> >> >> >> -- >> View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956729.html >> Sent from the Karaf - User mailing list archive at Nabble.com. If you reply to this email, your message will be added to the discussion below:
http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2958829.html
To start a new topic under Karaf - User, email [hidden email]
To unsubscribe from Karaf - User, click here.
Mike Van (All links open in new tabs)
Committer - Kalumet Atraxia Technologies Mike Van's Open Source Technologies Blog |
|
But, the problem is how to resolve the package dependency.
Nice Andreas yeasterday sent me a wrap pom and mavenized ojdbc6/orai18n, I successfully built the wrapped bundle, but failed at deployment because of the missing packages:
karaf@root> obr:deploy "com.oracle-all" drhades
On Thu, May 19, 2011 at 7:02 AM, mikevan [via Karaf] <[hidden email]> wrote: Another equally good way to automatically wrap the oracle driver is to use the wrap option of the osgi:install command. |
|
Are these actually required for using the driver? Are any of them in the driver jar or an auxillary jar you are supposed to deploy with the driver? The sun.* packages are presumably from the jdk. You'd need to remove the imports and change the bootdelegation property for the osgi framework to include them, or make the framework export them. I'd be rather surprised if the oracle.* packages aren't in the driver jar or some other oracle jar you are supposed to use too. You can try marking all of these imports optional and see what happens. david jencks On May 18, 2011, at 5:45 PM, drhades wrote: > But, the problem is how to resolve the package dependency. > Nice Andreas yeasterday sent me a wrap pom and mavenized ojdbc6/orai18n, > I successfully built the wrapped bundle, but failed at deployment because of > the missing packages: > >> karaf@root> obr:deploy "com.oracle-all" >> Unsatisfied requirement(s): >> --------------------------- >> (&(package=oracle.xml.parser.v2)) >> Oracle Wrapped Budnle >> (&(package=sun.security.util)) >> Oracle Wrapped Budnle >> (&(package=sun.security.krb5.internal)) >> Oracle Wrapped Budnle >> (&(package=oracle.security.pki)) >> Oracle Wrapped Budnle >> (&(package=oracle.xdb)) >> Oracle Wrapped Budnle >> (&(package=oracle.ons)) >> Oracle Wrapped Budnle >> (&(package=sun.security.krb5)) >> Oracle Wrapped Budnle > > > Best regards, > drhades > > On Thu, May 19, 2011 at 7:02 AM, mikevan [via Karaf] < > [hidden email]> wrote: > >> Another equally good way to automatically wrap the oracle driver is to use >> the wrap option of the osgi:install command. >> >> osgi:install wrap:mvn:(artifactId)/(groupId)/(version) >> >> >> >> Sent from Xfinity Mobile App >> >> >> ----- Original Message ----- >> From: [hidden email]<http://user/SendEmail.jtp?type=node&node=2959170&i=0> >> To: [hidden email] <http://user/SendEmail.jtp?type=node&node=2959170&i=1> >> Sent:Wed May 18 09:38:00 UTC 2011 >> Subject: Re: bundled oracle-jdbc-driver? >> >> >> On May 18, 2011, at 5:40 AM, Jean-Baptiste Onofré wrote: >> >>> Hi, >>> >>> As ServiceMix is an Apache project, we can host and wrap only products >> compatible with the Apache license: >>> http://www.apache.org/legal/3party.html >>> >>> That's why I proposed ServiceMix Extra which is not hosted at Apache. >>> >>> Apache projects use Nexus to host artifacts: >>> http://repository.apache.org >>> >>> It's a pure Maven repository, so it doesn't provide the repository.xml >> file required by an OBR. >> I thought apache was running nexus pro and that nexus pro had the ability >> to supply and OBR repository for its contents. Maybe it just needs to be >> turned on? >> >> thanks >> david jencks >> >>> >>> I proposed an Apache ServiceMix EBR (Enterprise Bundle Repository) in the >> past, but we didn't make any progress on that. >>> We certainly should :) >>> >>> Regards >>> JB >>> >>> On 05/18/2011 02:34 PM, drhades wrote: >>>> Ha, nice work. >>>> >>>> It'll be blessing for many users if you can hold more common bundles >> there >>>> (e.g. oracle-jdbc-driver). :) >>>> >>>> Is there an OBR url in ServiceMix maven repository, then we can easily >>>> obr:addurl? >>>> >>>> Best regards, >>>> drhades >>>> >>>> On Wed, May 18, 2011 at 8:11 PM, jb-3 [via Karaf]< >>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=2958829&i=0>> >> wrote: >>>> >>>>> Hi, >>>>> >>>>> oops sorry :) >>>>> >>>>> ServiceMix is an Apache project which provide an enterprise ESB powered >> >>>>> by Karaf. It includes a set of others Apache projects (such as Camel, >>>>> CXF) and also provides ServiceMix resources (NMR, etc). >>>>> In ServiceMix resources, we can find ServiceMix Bundles which are >>>>> OSGi-fied version of non-OSGi jar. >>>>> http://repo1.maven.org/maven2/org/apache/servicemix/bundles/ >>>>> >>>>> These bundles are used in a lot of projects. >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> On 05/18/2011 01:59 PM, drhades wrote: >>>>> >>>>>> Thanks for your quick reply. >>>>>> >>>>>> Sorry, but what is ServiceMix? >>>>>> >>>>>> I'm struggling for wrap the newest oracle-jdbc-driver (11.2) into an >> OSGi >>>>> >>>>>> bundle, which can be installed into Karaf/Felix. >>>>>> >>>>>> Best regards, >>>>>> drhades >>>>>> >>>>>> -- >>>>>> View this message in context: >>>>> >> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956633.html >>>>> >>>>>> Sent from the Karaf - User mailing list archive at Nabble.com. >>>>> >>>>> >>>>> ------------------------------ >>>>> If you reply to this email, your message will be added to the >> discussion >>>>> below: >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> View this message in context: >> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956729.html >>>> Sent from the Karaf - User mailing list archive at Nabble.com. >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2958829.html >> To start a new topic under Karaf - User, email [hidden email]<http://user/SendEmail.jtp?type=node&node=2959170&i=2> >> To unsubscribe from Karaf - User, click here. >> Mike Van (aka karafman) >> Karaf Team (Contributor) >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> >> >> > > > -- > View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2959436.html > Sent from the Karaf - User mailing list archive at Nabble.com. |
|
I update repository.xml manually, set "optional=true" for its required packages.
Then, deployment ok:
[ 90] [Installed ] [ ] [ 60] Oracle Wrapped Bundle (11.2.0.0) But, "exports | grep oracle" output is empty, and my oracle client bundle still log that: "oracle.jdbc.OracleDriver not found".
Following is my client snippet: private String testOracle(){ :( :( drhades
On Thu, May 19, 2011 at 10:12 AM, David Jencks [via Karaf] <[hidden email]> wrote:
|
|
Right! I've merged various poms and it seams that I forgot the
optional statement :( I've attached the corrected version and tested with my project again. Seams to work as expected now. Sorry again and kind regards, Andreas On Thu, May 19, 2011 at 4:58 AM, drhades <[hidden email]> wrote: > I update repository.xml manually, set "optional=true" for its required > packages. > > Then, deployment ok: > > * > karaf@root> obr:deploy com.oracle-all > Target resource(s): > ------------------- > Oracle Wrapped Bundle (11.2.0.0) > Deploying...done.* > > *[ 90] [Installed ] [ ] [ 60] Oracle Wrapped Bundle >> (11.2.0.0)* > > > But, "exports | grep oracle" output is empty, > and my oracle client bundle still log that: "oracle.jdbc.OracleDriver not > found". > > Following is my client snippet: > >> * private String testOracle(){ >> StringBuilder sb = new StringBuilder(); >> try { >> Class.forName(dbdrv); >> Connection conn = DriverManager.getConnection(dburl, dbusr, dbpwd); >> conn.setAutoCommit(false); >> Statement stmt = conn.createStatement(); >> ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION"); >> while(rset.next()){ >> sb.append("<br/>"); >> sb.append(rset.getString(1)); >> } >> sb.append("<br/>done"); >> stmt.close(); >> conn.close(); >> } catch(Exception e) { >> s_log.log(LogService.LOG_ERROR, "testOracle: " + e.getMessage()); >> } >> return sb.toString(); >> }* > > > :( :( > > Best regards, > drhades > > On Thu, May 19, 2011 at 10:12 AM, David Jencks [via Karaf] < > [hidden email]> wrote: > >> >> Are these actually required for using the driver? Are any of them in the >> driver jar or an auxillary jar you are supposed to deploy with the driver? >> >> The sun.* packages are presumably from the jdk. You'd need to remove the >> imports and change the bootdelegation property for the osgi framework to >> include them, or make the framework export them. >> >> I'd be rather surprised if the oracle.* packages aren't in the driver jar >> or some other oracle jar you are supposed to use too. >> >> You can try marking all of these imports optional and see what happens. >> >> david jencks >> >> On May 18, 2011, at 5:45 PM, drhades wrote: >> >> > But, the problem is how to resolve the package dependency. >> > Nice Andreas yeasterday sent me a wrap pom and mavenized ojdbc6/orai18n, >> > I successfully built the wrapped bundle, but failed at deployment because >> of >> > the missing packages: >> > >> >> karaf@root> obr:deploy "com.oracle-all" >> >> Unsatisfied requirement(s): >> >> --------------------------- >> >> (&(package=oracle.xml.parser.v2)) >> >> Oracle Wrapped Budnle >> >> (&(package=sun.security.util)) >> >> Oracle Wrapped Budnle >> >> (&(package=sun.security.krb5.internal)) >> >> Oracle Wrapped Budnle >> >> (&(package=oracle.security.pki)) >> >> Oracle Wrapped Budnle >> >> (&(package=oracle.xdb)) >> >> Oracle Wrapped Budnle >> >> (&(package=oracle.ons)) >> >> Oracle Wrapped Budnle >> >> (&(package=sun.security.krb5)) >> >> Oracle Wrapped Budnle >> > >> > >> > Best regards, >> > drhades >> > >> > On Thu, May 19, 2011 at 7:02 AM, mikevan [via Karaf] < >> > [hidden email] <http://user/SendEmail.jtp?type=node&node=2959658&i=0>> >> wrote: >> > >> >> Another equally good way to automatically wrap the oracle driver is to >> use >> >> the wrap option of the osgi:install command. >> >> >> >> osgi:install wrap:mvn:(artifactId)/(groupId)/(version) >> >> >> >> >> >> >> >> Sent from Xfinity Mobile App >> >> >> >> >> >> ----- Original Message ----- >> >> From: [hidden email]< >> http://user/SendEmail.jtp?type=node&node=2959170&i=0> >> >> To: [hidden email] < >> http://user/SendEmail.jtp?type=node&node=2959170&i=1> >> >> Sent:Wed May 18 09:38:00 UTC 2011 >> >> Subject: Re: bundled oracle-jdbc-driver? >> >> >> >> >> >> On May 18, 2011, at 5:40 AM, Jean-Baptiste Onofré wrote: >> >> >> >>> Hi, >> >>> >> >>> As ServiceMix is an Apache project, we can host and wrap only products >> >> compatible with the Apache license: >> >>> http://www.apache.org/legal/3party.html >> >>> >> >>> That's why I proposed ServiceMix Extra which is not hosted at Apache. >> >>> >> >>> Apache projects use Nexus to host artifacts: >> >>> http://repository.apache.org >> >>> >> >>> It's a pure Maven repository, so it doesn't provide the repository.xml >> >> file required by an OBR. >> >> I thought apache was running nexus pro and that nexus pro had the >> ability >> >> to supply and OBR repository for its contents. Maybe it just needs to >> be >> >> turned on? >> >> >> >> thanks >> >> david jencks >> >> >> >>> >> >>> I proposed an Apache ServiceMix EBR (Enterprise Bundle Repository) in >> the >> >> past, but we didn't make any progress on that. >> >>> We certainly should :) >> >>> >> >>> Regards >> >>> JB >> >>> >> >>> On 05/18/2011 02:34 PM, drhades wrote: >> >>>> Ha, nice work. >> >>>> >> >>>> It'll be blessing for many users if you can hold more common bundles >> >> there >> >>>> (e.g. oracle-jdbc-driver). :) >> >>>> >> >>>> Is there an OBR url in ServiceMix maven repository, then we can easily >> >> >>>> obr:addurl? >> >>>> >> >>>> Best regards, >> >>>> drhades >> >>>> >> >>>> On Wed, May 18, 2011 at 8:11 PM, jb-3 [via Karaf]< >> >>>> [hidden email] < >> http://user/SendEmail.jtp?type=node&node=2958829&i=0>> >> >> >> wrote: >> >>>> >> >>>>> Hi, >> >>>>> >> >>>>> oops sorry :) >> >>>>> >> >>>>> ServiceMix is an Apache project which provide an enterprise ESB >> powered >> >> >> >>>>> by Karaf. It includes a set of others Apache projects (such as Camel, >> >> >>>>> CXF) and also provides ServiceMix resources (NMR, etc). >> >>>>> In ServiceMix resources, we can find ServiceMix Bundles which are >> >>>>> OSGi-fied version of non-OSGi jar. >> >>>>> http://repo1.maven.org/maven2/org/apache/servicemix/bundles/ >> >>>>> >> >>>>> These bundles are used in a lot of projects. >> >>>>> >> >>>>> Regards >> >>>>> JB >> >>>>> >> >>>>> On 05/18/2011 01:59 PM, drhades wrote: >> >>>>> >> >>>>>> Thanks for your quick reply. >> >>>>>> >> >>>>>> Sorry, but what is ServiceMix? >> >>>>>> >> >>>>>> I'm struggling for wrap the newest oracle-jdbc-driver (11.2) into an >> >> >> OSGi >> >>>>> >> >>>>>> bundle, which can be installed into Karaf/Felix. >> >>>>>> >> >>>>>> Best regards, >> >>>>>> drhades >> >>>>>> >> >>>>>> -- >> >>>>>> View this message in context: >> >>>>> >> >> >> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956633.html >> >>>>> >> >>>>>> Sent from the Karaf - User mailing list archive at Nabble.com. >> >>>>> >> >>>>> >> >>>>> ------------------------------ >> >>>>> If you reply to this email, your message will be added to the >> >> discussion >> >>>>> below: >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>> >> >>>> >> >>>> -- >> >>>> View this message in context: >> >> >> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956729.html >> >>>> Sent from the Karaf - User mailing list archive at Nabble.com. >> >> >> >> >> >> ------------------------------ >> >> If you reply to this email, your message will be added to the discussion >> >> >> below: >> >> >> >> >> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2958829.html >> >> To start a new topic under Karaf - User, email [hidden email]< >> http://user/SendEmail.jtp?type=node&node=2959170&i=2> >> >> >> To unsubscribe from Karaf - User, click here. >> >> Mike Van (aka karafman) >> >> Karaf Team (Contributor) >> >> >> >> >> >> ------------------------------ >> >> If you reply to this email, your message will be added to the discussion >> >> >> below: >> >> >> >> >> >> >> >> >> >> > >> > >> > -- >> > View this message in context: >> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2959436.html >> >> > Sent from the Karaf - User mailing list archive at Nabble.com. >> >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> >> >> > > > -- > View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2959779.html > Sent from the Karaf - User mailing list archive at Nabble.com. > |
|
Thank Andreas.
Now, "oracle-all" bundle can be installed and started normally: karaf@root> exports|grep oracle But, I wonder how to use the driver in my application bundle, Class.forName("") causing ClassNotFound exception. Regards, drhades
On Thu, May 19, 2011 at 11:34 AM, Andreas Pieber [via Karaf] <[hidden email]> wrote: Right! I've merged various poms and it seams that I forgot the |
| Powered by Nabble | Edit this page |
