java - NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream in uploading file with SpringMVC/Wildfly/CentOS -
while upload files web application in springmvc/widlfly/ubuntu stack, encounter noclassdeffounderror exception in springmvc/widlfly/centos. both stack has same wildfly, same jdk, , same configurations.
environment:
- springmvc
- wildfly 8.1 / wildfly 8.2
- jdk 1.7.0_51-b13
- jar files:
- my-ear.ear/my-web.war/web-inf/lib/commons-io-2.4.jar
- my-ear.ear/my-web.war/web-inf/lib/commons-fileupload-1.3.1.jar
- wildfly-8.1.0.final/modules/system/layers/base/org/apache/commons/io/main/commons-io-2.4.jar
i know exception due conflicting in class-loader.
i solved problem. moved 'commons-io-2.4.jar' , 'commons-fileupload-1.3.1.jar' files 'my-ear.ear/my-web.war/web-inf/lib/' 'my-ear.ear/lib'.
Comments
Post a Comment