Platform: debian 11.7 "bullseye", amd64
          openjdk-17-jdk:amd64 17.0.6+10-1~deb11u1 (ie. java 17)
          karaf 4.4.3
          pax-exam 4.13.5

Since I was unable to debug into my pax exam integration test (see other
posting on this list), I decided to try the good old way of adding debug
traces.

But then I quickly ran into needing and wanting to serialize both
arraylists and objects into something nicer than the default toString().

So I thought using jackson ObjectMapper would be nice.

But I get my integration test crashing out with the following error
message:
[ERROR] 
testLoadFeature(no.priv.bang.karaf.liquibase.tests.LiquibaseKarafFeatureIntegrationTest)
  Time elapsed: 0.096 s  <<< ERROR!
java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ObjectMapper 
not found by PAXEXAM-PROBE-c957fa94-95e9-4512-9730-55e6e023a9e2 [77]
        at 
no.priv.bang.karaf.liquibase.tests.LiquibaseKarafFeatureIntegrationTest.testLoadFeature(LiquibaseKarafFeatureIntegrationTest.java:59)

I have added the following compile scope dependencies to the integration
test project itself.

I have also added these dependencies to the project containing the test
feature loaded by the integration test, causing the jackson bundles to
be added to that feature.

But that didn't help either.

Does anyone know how to satisfy pax exam here?

Would GSON be better/simpler than jackson? (I picked jackson because I'm
familiar with it)

Thanks!


- Steinar

Reply via email to