jboss : jboss-eap-4.3
jar: xmlschma-core-2.0.4.jar ,XmlSchema-1.4.3.jar
这两天遇到jboss加载jar包冲突问题,导致NoSuchMethodError,解决方法:
将xmlschma-core-2.0.4.jar 从部署目录lib移到 server lib
配置jboss-web.xml
-
<jboss-web>
-
<loader-repository>
-
com.example:archive=unique-archive-name
-
</loader-repository>
-
</jboss-web>
jboss类加载参考资料:
https://developer.jboss.org/wiki/JBossClassLoadingUseCases
https://developer.jboss.org/wiki/ClassLoadingConfiguration
http://seanhe.iteye.com/blog/841723
http://seanhe.iteye.com/blog/902421
阅读(2508) | 评论(0) | 转发(0) |