You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the karaf.log of the pax exam test, I could see karaf start, and then nothing happened, no error messages until the test timed out. No karaf features were loaded
Dec 28, 2018 11:24:01 AM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Dec 28, 2018 11:24:01 AM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Dec 28, 2018 11:24:01 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /home/sb/workspaces/ws03/ukelonn/ukelonn.tests/target/exam/72ae121c-3e79-422e-a5a6-6985c16e8238/lock
Dec 28, 2018 11:24:01 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
Dec 28, 2018 11:24:01 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
By trial and error I figured out that one of the transitive dependencies of the dependencies I included was the culprit, and when I excluded the culprit, karaf started normally in pax exam, and all features were loaded:
The second problem I had was that the pax-jdbc features repository for pax-jdbc 1.3.0 had a transitive dependency to karaf 4.1.1 that gave karaf 4.1.7 in pax exam startup problems. I.e. it wasn't a dependecy in the feature file that gave the problem, but a transitive dependency of the feature file dependency.
The feature file dependency that caused karaf not to start properly in pax exam:
Steinar Bang created PAXEXAM-925
I've encounteret two places where a transitive maven dependency have prevented karaf in pax exam tests from loading karaf features.
The first problem was when I added mockrunner dependencies to be able to use MockHttpServletRequest and MockHttpServletRespons in a pax exam test:
The second problem I had was that the pax-jdbc features repository for pax-jdbc 1.3.0 had a transitive dependency to karaf 4.1.1 that gave karaf 4.1.7 in pax exam startup problems. I.e. it wasn't a dependecy in the feature file that gave the problem, but a transitive dependency of the feature file dependency.
Affects: 4.10.0, 4.13.1
Votes: 0, Watches: 1
The text was updated successfully, but these errors were encountered: