jetty7.6运行struts2项目问题解决

运行struts2项目报错:
报错1:
11:56:51,400  WARN Dispatcher:68 - Could not find action or result: /credit_publicity/sydq/loginSydqAction!sydq.dhtml
There is no Action mapped for action name loginSydqAction. - [unknown location]
在tomcat下运行正常
解决办法:
struts.xml中
<include file="/struts2/common/struts-xxfb.xml" />
改成:
<include file="struts2/common/struts-xxfb.xml" />

报错2:
TLD specifies invalid body-content (EMPTY) for custom tag script、
解决办法:
去掉jsp页面头部未使用的标签引用。例如:引用了<%@ taglib uri="/jx-view" prefix="view"%>,但是页面没有使用.

原文地址:https://www.cnblogs.com/snow365/p/6082829.html