I tried to add MANIFEST.MF file to ear\web-module.war\META-INF directory with the following content but it did not help:Class-Path: lib/mybatis-3.4.4.jar lib/mybatis-cdi-1.0.0.jar我还尝试将 glassfish-web.xml 文件添加到 ear \ web-module.war \ WEB-INF 目录,如此处,但没有帮助:I also tried to add glassfish-web.xml file to ear\web-module.war\WEB-INF directory as described here but it did not help:<glassfish-web-app> <class-loader delegate="true" extra-class-path="../lib/mybatis-3.4.4.jar:../lib/mybatis-cdi-1.0.0.jar"/></glassfish-web-app>有什么办法解决这个类路径问题吗?Any idea how to solve this classpath issue?推荐答案 这是解决方案:阅读: mybatis-cdi问题跟踪器阅读: payara应用服务器问题跟踪器 src:我的mybatis-ee-demo应用程序 src:我的mybatis-web-demo应用程序to read: mybatis-cdi issue trackerto read: payara app server issue trackersrc: my mybatis-ee-demo applicationsrc: my mybatis-web-demo application 这篇关于EAR情况下的MyBatis CDI类加载器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-22 09:29