ActionSupport 类在
xwork-2.1.2.jar
com.opensymphony.xwork2.ActionSupport 下
import com.opensymphony.xwork2.ActionSupport;
ServletContextAware类:
struts2-core-2.3.8\org\apache\struts2\util
import org.apache.struts2.util.ServletContextAware;
ServletContext:
import javax.servlet.ServletContext;
servlet-api.jar
FileUtils.copyFile(ufile, target);在
import org.apache.commons.io.FileUtils;
commons-io-1.3.2.jar
java常见的ClassNotFoundException
1 - java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory
2 - java.lang.ClassNotFoundException:javax.transaction.Synchronization
3 - java.lang.ClassNotFoundException:org.dom4j.DocumentException
4 - java.lang.ClassNotFoundException:org.apache.commons.collections.SequencedHashMap
5 - java.lang.ClassNotFoundException:net.sf.cglib.proxy.CallbackFilter
6 - java.lang.ClassNotFoundException: org.objectweb.asm.Type
7 - java.lang.ClassNotFoundException: antlr.ANTLRException
8 - java.lang.ClassNotFoundException:net.sf.ehcache.CacheException
Caused by: java.lang.NoSuchMethodError:org.objectweb.asm.ClassWriter.(I)V
将cglib.jar 由2.2版本