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
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
.
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
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
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
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
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
, 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
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
)
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
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
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
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
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo