Convert Spring MVC 4 to Spring MVC 6

I am getting an error on startup with configuring the location of the mapper XML files OR the contents of the MapperConfig.xml itself. Not sure which is the issue.

The error message is below:

06-Sep-2024 16:01:21.184 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'AuthService': Unsatisfied dependency expressed through field 'personMapper': Error creating bean with name 'personMapper' defined in file [C:Program FilesApache Software FoundationTomcat 10.1webappscodereaperWEB-INFclassescomempirestateidsdaoPersonMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in class path resource [atlas-dao-context.xml]: Failed to parse config resource: class path resource [MapperConfig.xml]

Here are the beans that I am creating in my XML config. It successfuly configures the JNDi resource and fails on the sqkSessionFactory bean

   <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="java:comp/env/jdbc/CodereaperDB"/>
    </bean>


    <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
        <property name="dataSource" ref="dataSource" />
        <property name="mapperLocations" value="classpath:/mapper/*.xml" />
        <property name="configLocation" value="classpath:MapperConfig.xml" />
    </bean>

    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="dataSource" />
    </bean>
    
    <tx:annotation-driven transaction-manager="transactionManager" />

    <bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
        <constructor-arg index="0" ref="sqlSessionFactory" />
    </bean> 
    <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
        <property name="basePackage" value="com.empirestateids.dao" />
    </bean>  


here is the content of the MapperConfig.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd" >
<configuration >

  <mappers >
    <mapper resource="mapper/UsersMapper.xml" />
    <mapper resource="mapper/GroupMemberMapper.xml" />
    <mapper resource="mapper/PhoneMapper.xml" />
    <mapper resource="mapper/PersonMapper.xml" />
    <mapper resource="mapper/RegistrationMapper.xml" />
    <mapper resource="mapper/AddressMapper.xml" />
    <mapper resource="mapper/LookupMapper.xml" />
    <mapper resource="mapper/LoincMapper.xml" />
    <mapper resource="mapper/ContactMapper.xml" />
    <mapper resource="mapper/PersonMapper.xml" />
    <mapper resource="mapper/EmailMapper.xml" />
    <mapper resource="mapper/GroupAuthorityMapper.xml" />
    <mapper resource="mapper/GroupsMapper.xml" />
    <mapper resource="mapper/PersistentLoginsMapper.xml" />
    <mapper resource="mapper/UsersMapper.xml" />
    <mapper resource="mapper/IpowerliftIdMapper.xml" />
    <mapper resource="mapper/ProductListMapper.xml" />
    <mapper resource="mapper/PaypalEnvMapper.xml" />
    <mapper resource="mapper/LoincMapper.xml" />
    <mapper resource="mapper/CvxCatalogsMapper.xml" />
    <mapper resource="mapper/CvxCataAttributesMapper.xml" />
    <mapper resource="mapper/CvxParentMapper.xml" />
    <mapper resource="mapper/GroupMemberMapper.xml" />
    <mapper resource="mapper/Icd10Mapper.xml" />
    <mapper resource="mapper/Icd11Mapper.xml" />
    <mapper resource="mapper/RxNormCodesMapper.xml" />
    <mapper resource="mapper/SnomedEntityMapper.xml" />
  </mappers>
</configuration>


The XML mappers are in the classpath under the mapper directory

Contents of war file

4

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật