aspose file tools*
The moose likes Struts and the fly likes Unable to create form bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to create form bean" Watch "Unable to create form bean" New topic
Author

Unable to create form bean

piyush kumar
Greenhorn

Joined: Feb 01, 2007
Posts: 20
I am creatg a simple struts application while runng it....It is givg the follog expection.......



javax.servlet.ServletException: Exception creating bean of class com.ibm.FirstAForm: {1}
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.Test_jsp._jspService(org.apache.jsp.Test_jsp:87)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

javax.servlet.jsp.JspException: Exception creating bean of class com.ibm.FirstAForm: {1}
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:487)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)
org.apache.jsp.Test_jsp._jspx_meth_html_form_0(org.apache.jsp.Test_jsp:103)
org.apache.jsp.Test_jsp._jspService(org.apache.jsp.Test_jsp:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The most likely cause of this error is a simple spelling mistake. Is com.ibm.FirstAForm really the name of the class, or did you misspell it in the struts-config.xml file? Did you compile the class? Is the .class file in WEB-INF/classses?


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to create form bean