aspose file tools*
The moose likes Struts and the fly likes can't find this   error .i got this error in strut Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can Watch "can New topic
Author

can't find this error .i got this error in strut

karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 16

13: <div style="color:red">
14: <html:errors />
15: </div>
16: <html:form action="/Login" >
17: User Name : <html:text name="LoginForm" property="userName" /> <br>
18: Password : <html:password name="LoginForm" property="password" /> <br>
19: <html:submit value="Login" />


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception creating bean of class com.LoginForm: {1}
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.login_jsp._jspService(login_jsp.java:103)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

javax.servlet.jsp.JspException: Exception creating bean of class com.LoginForm: {1}
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:487)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)
org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:137)
org.apache.jsp.login_jsp._jspService(login_jsp.java:93)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.18




this is my loginform.jsp


Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


Says "Exception creating bean of class com.LoginForm".

Hows your bean definition in struts.xml/strutsconfig.xml?

Cheers,
Raj.
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
this is my bean LoginForm.java




this is Struct-config.xml


karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
Raj Kamal wrote:
Says "Exception creating bean of class com.LoginForm".

Hows your bean definition in struts.xml/strutsconfig.xml?

Cheers,
Raj.


what is error told in bean ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't find this error .i got this error in strut
 
Similar Threads
stucts application exception
when iam running my struts application following error comes please help me
javax.servlet.jsp.JspException: Cannot find bean LoginForm in any scope
tomcat cannot display jsp struts
struts action form not working