Eclipse with Eclemma: java.lang.NoClassDefFoundError: oracle/security/pki/OracleWallet
Trying to determine the code coverage of my JUnit 4 tests with EclEmma an java.lang.NoClassDefFoundError
was thrown. As we all love Java stack traces, here a short excerpt:
What does my JUnit Test wants from the OracleWallet
? The application uses JDBC for the access of the
Oracle DB, but OracleWallet
is never directly used in my application. Without Eclemma the tests
are running successfully. Not nice.
This seems to be a known problem which is fixed in EclEmma 2.1.3, see http://sourceforge.net/p/eclemma/bugs/108/.
If you don't want (or are not allowed...) to update, then the workaround is to exclude oracle.*
from the coverage agent in the Code Coverage preferences,
see http://www.eclemma.org/userdoc/preferences.html.
Original post: http://peter-on-java.blogspot.com/2013/06/eclipse-with-eclemma.html