<struts>
<package name ="default" extends ="struts-default" namespace="/">
<action name="onlineService" class="onlineServiceAction" method="execute">
</action>
<action name="blackService" class="blackServiceAction" method="execute">
</action>
</package>
</struts>
Error 500: javax.servlet.ServletException: Filter [Struts2]: could not be initialized
E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor]: Action class [blackServiceAction] not found - action - file:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/webNode01Cell/chatClientService_war.ear/chatClientService.war/WEB-INF/classes/struts.xml:17:82
@Controller(value = "onlineServiceAction")
@Scope("prototype")
public class OnlineServiceAction extends ActionSupport {
private static final long serialVersionUID = -5155883818336614584L;
@Resource
private BusinessFacade businessFacade;
public BusinessFacade getBusinessFacade() {
return businessFacade;
}
public void setBusinessFacade(BusinessFacade businessFacade) {
this.businessFacade = businessFacade;
}
public static Logger log = LogManager.getLogger();
public String execute() throws ServletException, IOException {
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
......
struts only one onlineServiceAction,was does not report error
struts only one blackServiceAction,was report error
struts write two action, local tomcat do not report error, was report error