NoSuchFieldError

2015-05-19 Thread Jurgen Voorneveld
Hello list, I get the feeling what's happening to my code is a simple oversight but I can't figure it out. I've been adding more separation to my code by turning all the libraries into bundles and by creating a bundle of my own with common code in it. I have a tool in its own bundle that

Re: NoSuchFieldError

2015-05-19 Thread Jurgen Voorneveld
problem solved. On 05/19/2015 10:37 AM, Jurgen Voorneveld wrote: Hello list, I get the feeling what's happening to my code is a simple oversight but I can't figure it out. I've been adding more separation to my code by turning all the libraries into bundles and by creating a bundle

Re: Using a Redis connection pool from Karaf

2015-04-29 Thread Jurgen Voorneveld
. 2015-04-29 9:54 GMT+02:00 Jurgen Voorneveld jurgen.voornev...@redsocks.nl mailto:jurgen.voornev...@redsocks.nl: Still stuck.. I tried using different versions of Karaf: 2.4.2 and 4.0.0.M2. Didn't help same error. Also tried installing servicemix, it has a commons pools

Re: Using a Redis connection pool from Karaf

2015-04-29 Thread Jurgen Voorneveld
nothing. Tried a different source for cglib: cglib/cglib/3.1. Didn't work. Looks like getting Karaf to work properly is impossible. On 04/28/2015 02:45 PM, Jurgen Voorneveld wrote: Getting closer.. after loading that servicemix jedis bundle I got this error while running my code: Error

Re: Using a Redis connection pool from Karaf

2015-04-29 Thread Jurgen Voorneveld
by your application. Ergo as your bundle doesn't import the required class it doesn't find the class. regards, Achim 2015-04-29 14:39 GMT+02:00 Jurgen Voorneveld jurgen.voornev...@redsocks.nl mailto:jurgen.voornev...@redsocks.nl: success! I got it to work.. stupid stupid issue

Re: Using a Redis connection pool from Karaf

2015-04-28 Thread Jurgen Voorneveld
in the end. :) 2015-04-28 13:56 GMT+02:00 Jurgen Voorneveld jurgen.voornev...@redsocks.nl mailto:jurgen.voornev...@redsocks.nl: I have no idea how Redis uses this library, I haven't read the code. My code does this: new JedisPool(new JedisPoolConfig(), redis_driver[0

Using a Redis connection pool from Karaf

2015-04-28 Thread Jurgen Voorneveld
Commons Pool. So I'm back to the same error just one line down in my code. It doesn't look like there are any alternative connection pool libraries for Redis. I want to be able to connect to my Redis db using a connection pool, anyone know how to do that? On 04/23/2015 05:14 PM, Jurgen Voorneveld

Re: Using a Redis connection pool from Karaf

2015-04-28 Thread Jurgen Voorneveld
, which may have no visibility to the package. It may require a fix in some code loading the class to behave properly in OSGi. 2015-04-28 13:31 GMT+02:00 Jurgen Voorneveld jurgen.voornev...@redsocks.nl mailto:jurgen.voornev...@redsocks.nl: I couldn't get the Apache Commons Pool libary

Re: Using a Redis connection pool from Karaf

2015-04-28 Thread Jurgen Voorneveld
Jurgen Voorneveld jurgen.voornev...@redsocks.nl mailto:jurgen.voornev...@redsocks.nl: On 04/28/2015 01:59 PM, Achim Nierbeck wrote: hi Jurgen, a quick googling for Redis + OSGi gave me this [1]. Looks like someone is using jedis to connect to his redis server via

Re: Using a Redis connection pool from Karaf

2015-04-28 Thread Jurgen Voorneveld
) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_25] So now it suddenly can't find GenericObjectPoolConfig. Lovely. On 04/28/2015 02:29 PM, Jurgen Voorneveld wrote: I'd love to know how to do that. This page

Re: Using a Redis connection pool from Karaf

2015-04-28 Thread Jurgen Voorneveld
if it actually imports the package you are looking for. If not, make sure the bundle does import it. regards, Achim 2015-04-28 13:31 GMT+02:00 Jurgen Voorneveld jurgen.voornev...@redsocks.nl mailto:jurgen.voornev...@redsocks.nl: I couldn't get the Apache Commons Pool libary

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
wrote: Sorry for the typo, it changed to package in Karaf 3. You should install one package that export this service too. Try this: install mvn:com.zaxxer/HikariCP/x.x.x (version you want to use) Regards Morgan On 23/04/2015 12:37, Jurgen Voorneveld wrote: Should have paid more attention

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
Hey Achim, inline. On 04/23/2015 02:14 PM, Achim Nierbeck wrote: commandline doesn't mean it's running inside an OSGi container. But it does mean that there are no missing dependencies. All the classes it needs are there and can be loaded. regarding ANT, If I where you I'd switch to

HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
Dear list, I have Apache Karaf installed on a production system here at work and I'm trying to install a bundle into it. This is fairly new to me as previously the code was simply running as standalone applications. I'm getting an exception when I try to load the bundle: karaf@root() list START

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
this is the imports in the manifest: Import-Package: org.osgi.framework, javax.naming Jurgen On 04/23/2015 12:30 PM, Jurgen Voorneveld wrote: Helo Morgan, I get this: karaf@root() packages:exports | grep HikariConfig pipe: org.apache.felix.gogo.runtime.CommandNotFoundException: Command

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
provide the same list as standard Java? Jurgen On 04/23/2015 12:37 PM, Jurgen Voorneveld wrote: Should have paid more attention. karaf@root() package:exports | grep HikariConfig Returns empty. Which I guess makes sense; there is no library in Karaf exporting these classes by default. But I

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
output: karaf@root() install mvn:com.zaxxer/HikariCP/2.3.6 Bundle IDs: Error executing command: Error installing bundles: Unable to install bundle mvn:com.zaxxer/HikariCP/2.3.6 karaf@root() log:display snip Caused by: java.io.IOException: Error resolving artifact

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
message From: Jurgen Voorneveld jurgen.voornev...@redsocks.nl Date: 23/04/2015 12:51 (GMT+01:00) To: user@karaf.apache.org Subject: Re: HikariCP library load issue Hmm.. ideas.. I noticed that I had to import javax.naming to get rid of another error I saw before. So I wondered

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
version you are using, probably jre-1.7 or jre-1.8. On 04/23/2015 07:17 AM, Jurgen Voorneveld wrote: I don't think javax.naming is the problem anymore. When I run package:exports I get this: karaf@root() package:exports | grep javax.naming javax.naming.directory

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
at: https://github.com/kscarr73/OsgiDb This is done in several fragment and individiual bundles. The OsgiDatabase bundle reads a datasources.cfg file, and creates an individual service for each Hikari Datasource. On 04/23/2015 06:23 AM, Jurgen Voorneveld wrote: Hey Achim, yeah I got

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
the lib in question already inside your uber-bundle let's stick to that. Later we'll see what's broken with your local maven repo. Could you give us an overview of the manifest of your Analyzer bundle? so we can start from there on. regards, Achim 2015-04-23 13:01 GMT+02:00 Jurgen

Re: HikariCP library load issue

2015-04-23 Thread Jurgen Voorneveld
and individiual bundles. The OsgiDatabase bundle reads a datasources.cfg file, and creates an individual service for each Hikari Datasource. On 04/23/2015 06:23 AM, Jurgen Voorneveld wrote: Hey Achim, yeah I got the idea that there might be more wrong. My