Home H2 bundle dependency not found
Reply: 0

H2 bundle dependency not found

user930 Published in April 23, 2018, 9:23 am

I use H2 bundle in eclipse RCP application. It uses java implementation like this:

create alias MY_FUNCTION for "com.fun.MyFunctions.myFunction";

where MyFunctions is public class and myFunction is public static method.

It was working for H2 versions 1.3.170 or older, because of following declaration in the MANIFEST.MF:

DynamicImport-Package: *

Newer H2 versions don't have this declaration anymore and therefore I get ClassNotFound exception.

In the git log of the H2 I found following comment (for the commit removing DynamicImport):

Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.

Documentation was not very helpful: http://www.h2database.com/html/tutorial.html#osgi

Do you have any idea how can I add my dependency now?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.304919 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO