That would be Karaf complaining that there is no H2 bundle installed into the 
runtime. You will need to include it in a feature somewhere.

For reference you can configure a DBCP pool like this, passing in a DataSource: 
https://stackoverflow.com/questions/10807902/configuring-apache-dbcp-poolingdatasource-with-spring

Tim
Sent from my iPhone

> On 2 Jul 2017, at 00:10, smunro <stephen.ross.mu...@gmail.com> wrote:
> 
> In my pom I have <import>org.h2</import>
> 
> And my pom dependency has:
> 
> 
>            <dependency>
>                <groupId>com.h2database</groupId>
>                <artifactId>h2</artifactId>
>                <version>1.3.174</version>
>            </dependency>
> 
> However, I'm getting the following:
> 
> 
> org.osgi.service.resolver.ResolutionException: Unable to resolve root:
> missing requirement [root] osgi.identity; osgi.identity=test-all;
> type=karaf.feature; version="[0.0.17.SNAPSHOT,0.0.17.SNAPSHOT]";
> filter:="(&(osgi.identity=test-all(type=karaf.feature)(version>=0.0.17.SNAPSHOT)(version<=0.0.17.SNAPSHOT))"
> [caused by: Unable to resolve test-all/0.0.17.SNAPSHOT: missing requirement
> [test-all/0.0.17.SNAPSHOT] osgi.identity;
> osgi.identity=org.desolateplanet.authentication-db-impl; type=osgi.bundle;
> version="[0.0.17.SNAPSHOT,0.0.17.SNAPSHOT]"; resolution:=mandatory [caused
> by: Unable to resolve
> org.desolateplanet.authentication-db-impl/0.0.17.SNAPSHOT: missing
> requirement [org.desolateplanet.authentication-db-impl/0.0.17.SNAPSHOT]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.h2)(version>=1.3.0)(!(version>=2.0.0)))"]]
> 
> 
> 
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/java-lang-ClassNotFoundException-org-h2-Driver-from-bundle-tp4050894p4050899.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to