项目

一般

简介

aasv9 报错,nested exception is java.lang.IllegalArgumentException: The property is not supported  

佘 肃徽超过 3 年 之前添加

问题:在部署应用时抛下图异常,经过分析属于类冲突异常。

com.apusic.xml.stream.XMLInputFactoryImpl.setProperty(XMLInputFactoryImpl.java:189) [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: The property is not supported  

解决方案:

通过配置vm.options解决,添加include参数:

apusic.prefer.war.classes=true

apusic.prefer.war.classes.include=javax.xml.stream.XMLInputFactory

apusic.prefer.war.classes.exclude=java.,javax.,org.w3c.,org.xml.,com.sun.faces., \

org.hibernate.transaction.TransactionManagerLookup, \

org.hibernate.service.jta.platform.spi.JtaPlatform, \

org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform