melih melih - 1 year ago 94
Java Question

Struts 2 Spring 3 integration , action class not found

When I am trying to add different methods which are defined in

class, system enters the method but after executing the method, Struts couldn't detect the class bean name:

Invalid action class configuration that references an unknown class named [customerActionBean]


<constant name="struts.devMode" value="false" />
<package name="myPack" extends="struts-default">
<action name="customerAction" class="customerActionBean">
<result name="successView">/success.jsp</result>
<action name="welcome" class="customerActionBean" method="welcome">
<result name="successView">/index2.jsp</result>

action class :

public String execute() throws Exception {
return "successView";

public String welcome(){
return "succesView";

application context:

<bean id="customerActionBean" class="com.thecafetechno.CustomerAction" >
<property name="customerService" ref="CustomerService" />


Answer Source

I had same exception and just including struts2-spring-plugin- into build path solved my problem.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download