Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes Error creating Form Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error creating Form Bean" Watch "Error creating Form Bean" New topic

Error creating Form Bean

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
Hi All

I have a form Bean which is created from subclass of child of ValidatorForm

Relevant entries of struts-config.xml file are as follows
<form-bean name="QGPARAMETERS" type=""/>

<action path="/QGPARAMETERS"
<forward name="success" path="HOMEPAGE_TILE"/>
<forward name="logonSuccess" path="LOGON_SUCCESS_TILE"/>
<forward name="internalUserSuccess" path="QG_PARAMETERS_TILE" redirect="true"/>

But on running the pplication I get the following stack trace
Exception creating bean of class {1}
at org.apache.struts.taglib.html.FormTag.initFormBean(
at org.apache.struts.taglib.html.FormTag.doStartTag(
at javax.servlet.http.HttpServlet.service(

Not sure what could be reason for it.
If any one has any ideas on it then please share your views.
Thanks in advance


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Make sure of the following:

1-The class exists and is in the classpath
2-The class has a public, no-argument constructor.
3-If you've defined a constructor for this class, put System.out.println statements in it to make sure that it is not throwing an exception.
4-The <html:form> tag for the JSP should read as follows:

<html:form action="/QGPARAMETERS" >

action should be the only attribute. Do not specify any others.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Error creating Form Bean
It's not a secret anymore!