weblogic10 配置完后,login报错:No action instance for path /DashBoardAction could be cr
在weblogic10上面配置好之后登陆,报错:No action instance for path /DashBoardAction could be created,不知道咋回事?
以下是我的struts-config.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="LoginForm" type="com.smic.app.mcs.form.LoginForm" />
<form-bean name="SearchForm" type="com.smic.app.mcs.form.SearchForm" />
</form-beans>
<global-forwards>
<forward name="home" path="/login.jsp" />
</global-forwards>
<action-mappings>
<action input="/login.jsp" name="LoginForm" path="/LoginAction" type="com.smic.app.mcs.action.LoginAction">
<forward name="success" path="/DashBoardAction.do"/>
</action>
<action path="/LogoutAction" type="com.smic.app.mcs.action.LogoutAction">
<forward name="success" path="/login.jsp"/>
</action>
<action path="/DashBoardAction" type="com.smic.app.mcs.action.DashBoardAction">
<forward name="success" path="/dashBoard.jsp"/>
</action>
<action input="/ost.jsp" name="SearchForm" path="/OstAction" type="com.smic.app.mcs.action.OstAction">
<forward name="success" path="/ost.jsp"/>
</action>
<action input="/adt.jsp" name="SearchForm" path="/AdtAction" type="com.smic.app.mcs.action.AdtAction">
<forward name="success" path="/adt.jsp"/>
</action>
<action input="/fetchTime.jsp" name="SearchForm" path="/FetchTimeAction" type="com.smic.app.mcs.action.FetchTimeAction">
<forward name="success" path="/fetchTime.jsp"/>
</action>
<action input="/detailHistory.jsp" name="SearchForm" path="/DetailHistoryAction" type="com.smic.app.mcs.action.DetailHistoryAction">
<forward name="success" path="/detailHistory.jsp"/>
</action>
<action input="/bus.jsp" name="SearchForm" path="/BusAction" type="com.smic.app.mcs.action.BusAction">
<forward name="success" path="/bus.jsp"/>
</action>
<action input="/vur.jsp" name="SearchForm" path="/VurAction" type="com.smic.app.mcs.action.VurAction">
<forward name="success" path="/vur.jsp"/>
</action>
<action input="/rts.jsp" name="SearchForm" path="/RtsAction" type="com.smic.app.mcs.action.RtsAction">
<forward name="success" path="/rts.jsp"/>
</action>
<action input="/fromTo.jsp" name="SearchForm" path="/FromToAction" type="com.smic.app.mcs.action.FromToAction">
<forward name="success" path="/fromTo.jsp"/>
</action>
<action input="/alarm.jsp" name="SearchForm" path="/AlarmAction" type="com.smic.app.mcs.action.AlarmAction">
<forward name="success" path="/alarm.jsp"/>
</action>
<action input="/lineABBack.jsp" name="SearchForm" path="/LineABBackAction" type="com.smic.app.mcs.action.LineABBackAction">
<forward name="success" path="/lineABBack.jsp"/>
</action>
<action input="/productionUtilization.jsp" name="SearchForm" path="/ProductionUtilizationAction" type="com.smic.app.mcs.action.ProductionUtilizationAction">
<forward name="success" path="/productionUtilization.jsp"/>
</action>
</action-mappings>
<message-resources parameter="ApplicationResources" />
</struts-config>
[解决办法]
1、第一个ACTION 和 第三个ACTION 在配置文件中的位置换一下。
2、将第一个ACTION中的指向到dashBoard.jsp不要指向到DashBoardAction.do
PS:你不熟悉STRTUS1么?