- This topic has 1 reply, 2 voices, and was last updated 17 years, 11 months ago by Riyad Kalla.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
schroediMemberIf I start my Login Form the Server crashs with the following Stacktrace
I have registered the UserBean in the faces-config.xml
<managed-bean> <managed-bean-name>UserBean</managed-bean-name> <managed-bean-class> UserBean </managed-bean-class> <managed-bean-scope>request</managed-bean-scope> <managed-property> <property-name>Username</property-name> <property-class>java.lang.String</property-class> <value></value> </managed-property> <managed-property> <property-name>Password</property-name> <property-class>java.lang.String</property-class> <value></value> </managed-property> </managed-bean></faces-config>
Here is the stacktrace !
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: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't set managed bean property: 'Username'. org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) 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) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) root cause javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't set managed bean property: 'Username'. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:839) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:776) org.apache.jsp.homepage_jsp._jspService(homepage_jsp.java:106) 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:334) 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) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) root cause javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't set managed bean property: 'Username'. com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206) com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154) javax.faces.component.UIOutput.getValue(UIOutput.java:147) com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82) com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:191) com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:169) javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712) javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:616) javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:539) com.sun.faces.taglib.html_basic.InputTextTag.doEndTag(InputTextTag.java:524) org.apache.jsp.homepage_jsp._jspx_meth_h_inputText_0(homepage_jsp.java:283) org.apache.jsp.homepage_jsp._jspx_meth_h_form_0(homepage_jsp.java:196) org.apache.jsp.homepage_jsp._jspx_meth_f_view_0(homepage_jsp.java:136) org.apache.jsp.homepage_jsp._jspService(homepage_jsp.java:97) 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:334) 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) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs. -------------------------------------------------------------------------------- Apache Tomcat/5.5.20
Riyad KallaMemberMoving to OT > Soft Dev
Your problem is that your property should be “username” assuming your getter is “getUsername”. These things are very case-sensitive.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)