java.lang.ClassNotFoundException:org.apache.struts.action.ForwardAction

问题

找不到超级普通的Struts错误消息org.apache.struts.action.ForwardAction类。

javax.servlet.ServletException: java.lang.ClassNotFoundException: org.apache.struts.action.ForwardAction
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

root cause

java.lang.ClassNotFoundException: org.apache.struts.action.ForwardAction
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
	org.apache.struts.chain.commands.util.ClassUtils.getApplicationClass(ClassUtils.java:54)
	org.apache.struts.chain.commands.util.ClassUtils.getApplicationInstance(ClassUtils.java:71)
	org.apache.struts.chain.commands.servlet.CreateAction.createAction(CreateAction.java:98)
	org.apache.struts.chain.commands.servlet.CreateAction.getAction(CreateAction.java:68)
	org.apache.struts.chain.commands.AbstractCreateAction.execute(AbstractCreateAction.java:91)
	org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

ForwardAction类打包在org.apache.struts.actions.ForwardAction中 ,而不是org.apache.struts.action.ForwardAction中 ,后面带有“ s”的操作。

翻译自: https://mkyong.com/struts/java-lang-classnotfoundexception-org-apache-struts-action-forwardaction/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值