was8.5.5.9项目部署失败,出现mybatis的jar包异常

项目在was8.5.5.0上部署正常,但是换到was8.5.5.9部署的时候报错:

W com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR unable to open input stream for resource org/apache/ibatis/javassist/tools/rmi/ObjectNotFoundException.class in archive WEB-INF/lib/mybatis-3.3.1.jar

W com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR unable to open input stream for resource org/apache/ibatis/javassist/ClassPoolTail.class in archive WEB-INF/lib/mybatis-3.3.1.jar

W com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR unable to open input stream for resource org/apache/ibatis/javassist/CodeConverter.class in archive WEB-INF/lib/mybatis-3.3.1.jar

错误原因位mybatis-3.3.1.jar在was8.5.5.9上不兼容,换成mybatis-3.4.1.jar后,部署后项目启动报错:

 java.lang.AbstractMethodError: org/apache/ibatis/transaction/Transaction.getTimeout()Ljava/lang/Integer;

原因为升级mybatis的包后,需要同步升级mybatis-spring的jar包,后面继续换成mybatis-spring-1.3.1.jar。项目可以正常运行

你可能感兴趣的:(服务器)