This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes stucts application exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "stucts application exception" Watch "stucts application exception" New topic
Author

stucts application exception

Nicky narayan
Greenhorn

Joined: Jul 01, 2009
Posts: 27
I am new to Struts framework. I am getting an exception while running login.jsp(stuts) file in the eclipe.
The login page is :

<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<div style="color:red">
<html:errors />
</div>
<html:form action="/Login" >
User Name : <html:text name="LoginForm" property="userName" /> <br>
Password : <html:password name="LoginForm" property="password" /> <br>
<html:submit value="Login" />
</html:form>
</body>
</html>
the exception is :

exception

org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getActionErrors(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;)Lorg/apache/struts/action/ActionErrors;
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getActionErrors(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;)Lorg/apache/struts/action/ActionErrors;
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.login_jsp._jspService(login_jsp.java:102)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getActionErrors(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;)Lorg/apache/struts/action/ActionErrors;
org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:194)
org.apache.jsp.login_jsp._jspx_meth_html_005ferrors_005f0(login_jsp.java:117)
org.apache.jsp.login_jsp._jspService(login_jsp.java:87)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



please help me.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

http://faq.javaranch.com/java/CarefullyChooseOneForum

Please ask questions where the experts on the topic can see them. Don't just post questions in the first forum you see, Otherwise we end up with a great big mish-mash where nobody can find the answer to anything!

We have a Hibernate forum for the Hibernate question you recently asked, and we have a Struts forum for questions about Struts.

Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stucts application exception
 
Similar Threads
Cannot find ActionMappings or ActionFormBeans collection
struts app exception
problem with calendar display(new to struts) using struts
can't find this error .i got this error in strut
when iam running my struts application following error comes please help me