Abnormal Abnormal Java Common Logging occurs when using Hibernate + JUnit

xiaoxiao2021-04-09  340

Every time I use Hibernate JUnit to test an exception about Java Common logging:

Caused by: org.apache.commons.logging.logconfigurationException: Invalid Class Loader Hierarchy. You Have More Than One Version of 'Org.Apache.commons.logging.log' Visible, Which is not allowed.

Later, I found it online, I learned that this is caused by Eclipse's ClassLoader and Junit's Thread Context ClassLoader loaded two different org.apache.commons.log interface implementation, then find a JCLECLIPSE plugin, but after installation There is no role.

The next day, I found it again, I found that after JUnit startup, I will disappear, and then watching it, Tip is useful, and it is useful. It is not difficult to understand.

The current problem is how to default to the RELOAD CLASS EVERY RUN by default when the test starts.

转载请注明原文地址:https://www.9cbs.com/read-133002.html

New Post(0)