When I configure my spring project to use Mybatis, I added the following to the applicationContext.xml
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Mybatis Configuration -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="mapperLocations" value="classpath*:com/foo/bar/**/*Mapper.xml" />
<property name="configLocation" value="classpath:mybatis/mybatis-config.xml"/>
</bean>
<mybatis:scan base-package="com.foo.bar" annotation="com.foo.bar.mybatis.Mapper" />
and get the following red X on the file:
Error occured processing XML 'loader constraint violation: when resolving field "logger" the class loader (instance of org/springframework/ide/eclipse/core/java/ProjectClassLoaderCache$FilteringURLClassLoader) of the referring class, org/springframework/context/annotation/ClassPathScanningCandidateComponentProvider, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for the field's resolved type, org/apache/commons/logging/Log, have different Class objects for that type'.
When I search for this online I can only seem to find an instance where someone had issues after a release of an update to spring which was later fixed. Can someone give me some indication as to what precisely this is implying and how to fix it? (This does not stop the project from building or using MyBatis, everything seems to function, I just want to clean up the markers in my project)