Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Paul Clapham
Sheriffs:
paul wheaton
Tim Cooke
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Piet Souris
Bartenders:
Mike London
Forum:
Spring
getting error for using spring form:form in jsp. Root Cause:No WebApplicationContext found
Vishal Hegde
Ranch Hand
Posts: 1087
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Dear Members,
I am getting the below error.Please advice where I am going wrong below is the
jsp
file
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%> <html> <head><title>LOGIN</title></head> <body> <center> <form:form method="POST" commandName="login" name="form"> UserName:<form:input path="username"/> Password: <form:password path="password"/> <font color="red"><form:errors path="password"/> </font> <input type="submit" value="Login"/> </form:form> </center> </body> </html>
package springapp.web; public class login { public login(){} private String username; private String password; public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } }
-------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410) 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 java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? org.springframework.web.servlet.support.RequestContextUtils.getWebApplicationContext(RequestContextUtils.java:84) org.springframework.web.servlet.support.RequestContext.initContext(RequestContext.java:211) org.springframework.web.servlet.support.JspAwareRequestContext.initContext(JspAwareRequestContext.java:76) org.springframework.web.servlet.support.JspAwareRequestContext.<init>(JspAwareRequestContext.java:50) org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:74) org.apache.jsp.hello_jsp._jspService(hello_jsp.java:84) 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. --------------------------------------------------------------------------------
http://www.lifesbizzare.blogspot.com
|| OCJP:81%
Vishal Hegde
Ranch Hand
Posts: 1087
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
anybody ?
http://www.lifesbizzare.blogspot.com
|| OCJP:81%
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Error : No WebApplicationContext found
Context Loader problem : IllegalStateException
Struts 1.3.5 -- Module 'null' not found. Null Pointer Exception
JSF
Getting error----NoContextLoaderListener registered
More...