I am using the latest stable spring boot, which provides some version of
appropriate mongodb version, and also i just upgraded to latest stable
Jackrabbit:

All versions can be gleaned from this:

https://github.com/Clay-Ferguson/meta64/blob/master/pom.xml

BTW: The reason I love spring-boot is that one of it's primary purposes is
to let you start with a 'known stack' of versions of things that work well
together.


Best regards,
Clay Ferguson
[email protected]


On Mon, May 22, 2017 at 8:44 AM, Ron Wheeler <[email protected]
> wrote:

> Does Oak work with the latest version (3.4.2) of MongoDB?
>
>
> I could not get the code on http://jackrabbit.apache.org/o
> ak/docs/construct.html to work.
>
> getDB("test2")
>
> is flagged as deprecated.
>
> The
>
> Exception in thread "main" java.lang.IllegalAccessError: tried to access
> class org.apache.jackrabbit.stats.TimeSeriesAverage from class
> org.apache.jackrabbit.oak.plugins.blob.BlobStoreStats
>     at org.apache.jackrabbit.oak.plugins.blob.BlobStoreStats.getAvg
> TimeSeries(BlobStoreStats.java:200)
>     at org.apache.jackrabbit.oak.plugins.blob.BlobStoreStats.<init>
> (BlobStoreStats.java:75)
>     at org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builde
> r.configureBlobStore(DocumentMK.java:1296)
>     at org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builde
> r.setBlobStore(DocumentMK.java:669)
>     at org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builde
> r.setMongoDB(DocumentMK.java:663)
>     at org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builde
> r.setMongoDB(DocumentMK.java:634)
>     at org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builde
> r.setMongoDB(DocumentMK.java:684)
>     at com.artifact_software.communication.InitiateDatabase.
> getNodeStore(InitiateDatabase.java:109)
>     at com.artifact_software.communication.InitiateDatabase.main(In
> itiateDatabase.java:29)
>
> I have broken the example down into smaller chunks that should do the same
> thing as the code in the example and this is the function that fails
>
>     private static DocumentNodeStore getNodeStore(){
>         DB db = new MongoClient("127.0.0.1", 27017).getDB("test2");
>             DocumentNodeStore ns = new DocumentMK.Builder().
>                     setMongoDB(db).getNodeStore();
>             return ns;
>     }
>
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: [email protected]
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>

Reply via email to