Hello,

I have org.apache.struts.tiles.TilesPlugin and org.apache.struts.validator.ValidatorPlugIn in struts-config.xml and two of them are working fine.
However all my action classes cannot be called (HTTP Status 404 - Servlet action is not available
) after I added in the Spring ContextLoaderPlugin:

<plug-in className=”org.springframework.web.struts.ContextL oaderPlugIn”>
<set-property property=”contextConfigLocation”
value=”/WEB-INF/applicationContext.xml,/WEB-INF/action-servlet.xml”/>
</plug-in>

Here is the error from Tomcat log:
2004-12-11 21:00:47 StandardContext[/myWeb]Servlet /myWeb threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
....

Here is one action class declaration in struts-config.xml:
<action
path="/public/LoginAct"
type="org.springframework.web.struts.DelegatingAct ionProxy"
parameter="todo">
<forward name="current" path="loginForm"/>
<forward name="loadSwitchRole" path="/SwitchAct.do?todo=load"/>
</action>

Here is the corresponding declaration in action-servlet.xml:
<bean name="/public/LoginAct"
singleton="false"
class="action.LoginAct">
<property name="securityDlgt">
<ref bean="securityDlgt"/>
</property>
</bean>

Here is the corresponding applicationContext.xml:
<bean id="userDao" class="dao.UserDao">
<property name="dataSource">
<ref local="dataSource"/>
</property>
</bean>

<bean id="securityDlgt" class="delegate.SecurityDlgt">
<property name="userDao"><ref local="userDao"/></property>
</bean>

I am refering to Chapter 2 of Spring Live(Matt Raible).

Could anyone identify what goes wrong?

Thank you in advance.

Rgds,
Delvin