You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by drhades <ya...@gmail.com> on 2011/05/18 13:03:57 UTC

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.

Re: bundled oracle-jdbc-driver?

Posted by drhades <ya...@gmail.com>.
Thank Andreas.
Now, "oracle-all" bundle can be installed and started normally:

> karaf@root> exports|grep oracle
>     90 oracle.jdbc.pool; version=0.0.0
>     90 oracle.sql.converter; version=0.0.0
>     90 oracle.security.o5logon; version=0.0.0
>     90 oracle.jpub.runtime; version=0.0.0
>     90 oracle.sql.converter_xcharset; version=0.0.0
>     90 oracle.net.nt; version=0.0.0
>     90 oracle.net.ns; version=0.0.0
>     90 oracle.i18n.text; version=0.0.0
>     90 oracle.i18n.data; version=0.0.0
>     90 oracle.jdbc.internal; version=0.0.0
>     90 oracle.net.jndi; version=0.0.0
>     90 oracle.jdbc.connector; version=0.0.0
>     90 oracle.net.aso; version=0.0.0
>     90 oracle.net.jdbc.nl; version=0.0.0
>     90 oracle.jdbc.oracore; version=0.0.0
>     90 oracle.jdbc.aq; version=0.0.0
>     90 oracle.sql; version=0.0.0
>     90 oracle.net.resolver; version=0.0.0
>     90 oracle.jdbc.xa; version=0.0.0
>     90 oracle.jdbc.xa.client; version=0.0.0
>     90 oracle.net.mesg; version=0.0.0
>     90 oracle.i18n.util; version=0.0.0
>     90 oracle.net.jdbc.nl.mesg; version=0.0.0
>     90 oracle.net.jdbc.TNSAddress; version=0.0.0
>     90 oracle.core.lmx; version=0.0.0
>     90 oracle.jdbc.util; version=0.0.0
>     90 oracle.net.ano; version=0.0.0
>     90 oracle.jdbc.oci; version=0.0.0
>     90 oracle.jdbc.rowset; version=0.0.0
>     90 oracle.core.lvf; version=0.0.0
>     90 oracle.i18n.util.builder; version=0.0.0
>     90 oracle.i18n.text.converter; version=0.0.0
>     90 oracle.jdbc.diagnostics; version=0.0.0
>     90 oracle.jdbc; version=0.0.0
>     90 oracle.security.o3logon; version=0.0.0
>     90 oracle.jdbc.driver; version=0.0.0
>     90 oracle.jdbc.dcn; version=0.0.0


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] <
ml-node+2959873-1032677169-399844@n3.nabble.com> 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]<http://user/SendEmail.jtp?type=node&node=2959873&i=0>>
> 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] <http://user/SendEmail.jtp?type=node&node=2959873&i=1>>
> 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.
> >
>
> *pom.xml* (2K) Download Attachment <http://attachment/2959873/0/pom.xml>
>
>
> ------------------------------
>  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-tp2956499p2959873.html
>  To unsubscribe from bundled oracle-jdbc-driver?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2956499&code=eWFuamllLmNoaW5hQGdtYWlsLmNvbXwyOTU2NDk5fDEyNjk0OTEyMg==>.
>
>


--
View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2970924.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: bundled oracle-jdbc-driver?

Posted by Andreas Pieber <an...@gmail.com>.
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 <ya...@gmail.com> 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] <
> ml-node+2959658-425312925-399844@n3.nabble.com> 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:
>>
>> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2959658.html
>> �To unsubscribe from bundled oracle-jdbc-driver?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2956499&code=eWFuamllLmNoaW5hQGdtYWlsLmNvbXwyOTU2NDk5fDEyNjk0OTEyMg==>.
>>
>>
>
>
> --
> 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.
>

Re: bundled oracle-jdbc-driver?

Posted by drhades <ya...@gmail.com>.
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] <
ml-node+2959658-425312925-399844@n3.nabble.com> 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:
>
> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2959658.html
>  To unsubscribe from bundled oracle-jdbc-driver?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2956499&code=eWFuamllLmNoaW5hQGdtYWlsLmNvbXwyOTU2NDk5fDEyNjk0OTEyMg==>.
>
>


--
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.

Re: bundled oracle-jdbc-driver?

Posted by David Jencks <da...@yahoo.com>.
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] <
> ml-node+2959170-606949851-399844@n3.nabble.com> 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:
>> 
>> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2959170.html
>> To unsubscribe from bundled oracle-jdbc-driver?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2956499&code=eWFuamllLmNoaW5hQGdtYWlsLmNvbXwyOTU2NDk5fDEyNjk0OTEyMg==>.
>> 
>> 
> 
> 
> --
> 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.


Re: bundled oracle-jdbc-driver?

Posted by drhades <ya...@gmail.com>.
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] <
ml-node+2959170-606949851-399844@n3.nabble.com> 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:
>
> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2959170.html
>  To unsubscribe from bundled oracle-jdbc-driver?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2956499&code=eWFuamllLmNoaW5hQGdtYWlsLmNvbXwyOTU2NDk5fDEyNjk0OTEyMg==>.
>
>


--
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.

Re: bundled oracle-jdbc-driver?

Posted by mikevan <mv...@comcast.net>.
Another equally good way to automatically wrap the oracle driver is to use the wrap option of the osgi:install command.<br /><br />osgi:install wrap:mvn:(artifactId)/(groupId)/(version)<br /><br /><br /><br />Sent from Xfinity Mobile App

-----
Mike Van (aka karafman)
Karaf Team (Contributor)
--
View this message in context: http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2959170.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: bundled oracle-jdbc-driver?

Posted by David Jencks <da...@yahoo.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]<
>> ml-node+2956661-1937454785-399844@n3.nabble.com>  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:
>>> 
>>> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956661.html
>>>  To unsubscribe from bundled oracle-jdbc-driver?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2956499&code=eWFuamllLmNoaW5hQGdtYWlsLmNvbXwyOTU2NDk5fDEyNjk0OTEyMg==>.
>>> 
>>> 
>> 
>> 
>> --
>> 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.


Re: bundled oracle-jdbc-driver?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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]<
> ml-node+2956661-1937454785-399844@n3.nabble.com>  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:
>>
>> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956661.html
>>   To unsubscribe from bundled oracle-jdbc-driver?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2956499&code=eWFuamllLmNoaW5hQGdtYWlsLmNvbXwyOTU2NDk5fDEyNjk0OTEyMg==>.
>>
>>
>
>
> --
> 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.

Re: bundled oracle-jdbc-driver?

Posted by drhades <ya...@gmail.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] <
ml-node+2956661-1937454785-399844@n3.nabble.com> 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:
>
> http://karaf.922171.n3.nabble.com/bundled-oracle-jdbc-driver-tp2956499p2956661.html
>  To unsubscribe from bundled oracle-jdbc-driver?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2956499&code=eWFuamllLmNoaW5hQGdtYWlsLmNvbXwyOTU2NDk5fDEyNjk0OTEyMg==>.
>
>


--
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.

Re: bundled oracle-jdbc-driver?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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.

Re: bundled oracle-jdbc-driver?

Posted by drhades <ya...@gmail.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

--
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.

Re: bundled oracle-jdbc-driver?

Posted by Andreas Pieber <an...@gmail.com>.
Easy solution: i can send you my pom bundling the latest drivers if you like

On May 18, 2011 1:57 PM, "drhades" <ya...@gmail.com> 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.

Re: bundled oracle-jdbc-driver?

Posted by drhades <ya...@gmail.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

--
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.

Re: bundled oracle-jdbc-driver?

Posted by jb...@nanthrax.net.
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 <ya...@gmail.com>
Date: Wed, 18 May 2011 04:03:57 
To: <us...@karaf.apache.org>
Reply-To: user@karaf.apache.org
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.