讨论区 » AAS-V10企业版 »
AASv10 redis类冲突问题
问题:
在v10上部署应用时,如果应用依赖了redis客户端类,可能会报以下异常。
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: Cannot load configuration class: org.springframework.boot.autoconfigure.data.redis.JedisConnectionConfiguration
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:112)
at com.apusic.aas.internal.data.EngineRef.start(EngineRef.java:98)
at com.apusic.aas.internal.data.ModuleInfo.start(ModuleInfo.java:267)
at com.apusic.aas.internal.data.ApplicationInfo.start(ApplicationInfo.java:358)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:479)
at com.apusic.enterprise.v10.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:197)
版本号:20210611061238
解决方案:
可以在应用的WEB-INF/下部署apusic-web文件,改变类加载顺序解决。文件见附件。
apusic-web.xml (302 Bytes) apusic-web.xml |