TomEE 1.6.0.2上的org.apache.commons.collections4类的ClassNotFoundException

费利克斯

当尝试在部署在TomEE 1.6.0.2(Tomcat 7.0.53)上的Web应用程序中使用org.apache.commons.collections4 jar的类时,出现ClassNotFoundException。

我将Web应用程序简化为一个简单的HttpServlet,除了在CollectionUtils上调用方法外,什么也没有做。在pom.xml中,除了对org.apache.commons.collections4的依赖以外,别无其他。部署后,该jar位于WEB-INF / lib中。但是仍在抛出异常。

使用apache commons collections 3.2.1中的类时,一切都很好。

任何有助于发现问题根源的提示和提示,我们将不胜感激!谢谢菲利克斯

费利克斯·西格里斯特(Felix Siegrist)

我必须在conf / system.properties中添加openejb.classloader.forced-load = org.apache.commons.collections4

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Apache Commons Configuration:ClassNotFoundException:org.apache.commons.beanutils.DynaBean

错误:java.lang.ClassNotFoundException:org.apache.commons.collections4.map.LinkedMap

缺少org.apache.commons.collections.CollectionUtils

java.lang.ClassNotFoundException:org.apache.commons.digester.Rule

java.lang.ClassNotFoundException:org.apache.commons.fileupload.FileItemFactory

java.lang.ClassNotFoundException:org.apache.commons.lang.UnhandledException

org.apache.commons.lang.SerializationException:java.lang.ClassNotFoundException

java.lang.ClassNotFoundException:org.apache.commons.text.WordUtils

ClassNotFoundException:带有Maven的org.apache.commons.cli.ParseException

Maven-ClassNotFoundException:org.apache.commons.lang.StringUtils

java.lang.ClassNotFoundException:org.apache.commons.logging.Log

java.lang.NoClassDefFoundError:org / apache / commons / collections / Transformer

Java:JVMCFRE003 错误的主要版本;class=org/apache/commons/io/FilenameUtils, offset=6

错误:(3,0)原因:org / apache / commons / lang3 / StringUtils

Apache Commons Lang 2与3

org.apache.commons.lang3.StringUtils 与 org.apache.logging.log4j.util.Strings

PySpark Kafka - NoClassDefFound:org/apache/commons/pool2

错误:NoClassDefFoundError:org / apache / commons / logging / LogFactory

NoClassDefFoundError:org.apache.commons.lang.StringUtils

java.lang.ClassNotFoundException:来自BaseClassLoader的org.apache.commons.lang.StringUtils

抛出java.lang.ClassNotFoundException:所造成org.apache.commons.lang3.builder.EqualsBuilder

引起原因:java.lang.ClassNotFoundException:org.apache.commons.io.FileUtils

春季项目部署会为org.apache.commons.logging.Log抛出ClassNotFoundException

java.lang.ClassNotFoundException:org.apache.commons.codec.binary.Base64

异常:java.lang.ClassNotFoundException:org.apache.commons.dbcp.BasicDataSource

java.lang.ClassNotFoundException:org.apache.commons.lang.builder.ToStringBuilder

使用Apache Commons Collections中的MultiValueMap

无法解析类 org.apache.commons.lang.RandomStringUtils(运行 groovy 脚本)

org.apache.commons.net.ftp中FTPClient类中的enterLocal ...()和enterRemote ...()方法之间的区别