File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 411
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
jQuery in Action, 3rd edition