| Author |
i am getting this exception
|
aresh babu
Ranch Hand
Joined: Aug 31, 2008
Posts: 65
|
|
HI this is my jsp page <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <html> <head> <title>User Registration</title> </head> <body> <h1>User Registration</h1> <html:errors/> <table> <html:form action="userRegistration"> <tr> <td><bean:message key="userRegistration.firstName"/>*</td> <td><html:text property="firstName"/></td> </tr> <tr> <td><bean:message key="userRegistration.lastName"/>*</td> <td><html:text property="lastName"/></td> </tr> <tr> <td><bean:message key="userRegistration.userName"/>*</td> <td><html:text property="userName"/></td> </tr> <tr> <td><bean:message key="userRegistration.email"/>*</td> <td><html:text property="email"/></td> </tr> <tr> <td><bean:message key="userRegistration.phone"/>*</td> <td><html:text property="phone"/></td> </tr> <tr> <td><bean:message key="userRegistration.fax"/>*</td> <td><html:text property="fax"/></td> </tr> <tr> <td><bean:message key="userRegistration.password"/>*</td> <td><html:text property="password"/></td> </tr> <tr> <td><bean:message key="userRegistration.password"/>*</td> <td><html:text property="passwordCheck"/></td> </tr> <tr> <td><html:submit/></td> <td><td> </tr> </html:form> </table> </body> </html> when i am trying to start this page in apache server i am getting this exception 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 /userRegistration.jsp at line 7 4: <head> <title>User Registration</title> </head> 5: <body> 6: <h1>User Registration</h1> 7: <html:errors/> 8: <table> 9: <html:form action="userRegistration"> 10: <tr> Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779) org.apache.jsp.userRegistration_jsp._jspService(userRegistration_jsp.java:98) 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:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory org.apache.struts.util.MessageResources.<clinit>(MessageResources.java:57) org.apache.struts.taglib.html.ErrorsTag.<clinit>(ErrorsTag.java:100) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) java.lang.reflect.Constructor.newInstance(Unknown Source) java.lang.Class.newInstance0(Unknown Source) java.lang.Class.newInstance(Unknown Source) org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126) org.apache.jsp.userRegistration_jsp._jspx_meth_html_005ferrors_005f0(userRegistration_jsp.java:110) org.apache.jsp.userRegistration_jsp._jspService(userRegistration_jsp.java:81) 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:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs. Please tell me how can i rectify this exception and execute the program successfully.
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8291
|
|
This line in your stack trace makes it sound like you have an unresolved dependency on Apache Commons Logging.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: i am getting this exception
|
|
|