struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandy143 <>
Subject Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm
Date Wed, 30 Apr 2008 18:13:02 GMT


Now I am migrating from struts1 to struts2.

In struts1 I have a homeAction which extends dispatchAction and it uses

I have configured it this way in struts.xml:

<interceptor name="homeActionForm"
<interceptor name="homePage"
		/WEB-INF/validation-rules.xml, /WEB-INF/Validation.xml

<interceptor-stack name="homeActionForm">
	<interceptor-ref name="staticParams" />
	<interceptor-ref name="homeActionForm" />
	<interceptor-ref name="modelDriven" />
	<interceptor-ref name="actionForm-reset" />
	<interceptor-ref name="basicStack" />
	<interceptor-ref name="homePage" />
	<interceptor-ref name="workflow" />

<action name="loadPage"
	<result name="load" type="tiles">/home.jsp</result>

Laurie Harper wrote:
> Sandy143 wrote:
>> Hello Everyone :
>> [Servlet Error]-[org.apache.struts.action.ActionForm]:
>> java.lang.InstantiationException: org.apache.struts.action.ActionForm
>> I get this error when I try to migrate from Struts 1.2.8 to Struts2.
>> I have validations to the form. I am using interceptors for the same.
>> Please let me know ... if I am missing something or need to add
>> something.
> Your question is far too vague. ActionFrom is a Struts1 type; 
> interceptors are a Struts2 concept; saying 'I have validations' or 'I am 
> using interceptors' tells us nothing about how you have these configured.
> Since you seem to be struggling with integrating S1 and S2 in the same 
> app, I suggest you go back to basics and create a minimal, empty app 
> using S1 and S2 together and use it as a starting point to explore each 
> issue you find in isolation. That way you can post complete but concise 
> examples of code and configuration that demonstrate the problem.
> L.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message