wood burning stoves 2.0
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: 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="com.symantec.qg.form.QgParametersForm"/>

<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 com.symantec.qg.form.QgParametersForm: {1}
at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
at com.ibm._jsp._qgParameters._jspService(_qgParameters.java:120)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:69)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:626)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230)

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 com.symantec.qg.form.QgParametersForm exists and is in the classpath
2-The class com.symantec.qg.form.QgParametersForm 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Error creating Form Bean
It's not a secret anymore!