• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassNotFoundException: org.apachi.struts.action.ActionServlet

 
dipak jain
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi, I am getting the below execption while running my struts application . please advise, how to solve it.
I am using Netbeans6.0 , tomcat6.0, struts1.3...i have used all the required jarfiles and xmls.



When I am running the app , getting exception like:
description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.NullPointerException: Module 'null' not found.
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
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)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
root cause

java.lang.NullPointerException: Module 'null' not found.
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:364)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:285)
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:445)
org.apache.struts.taglib.html.LinkTag.doEndTag(LinkTag.java:353)
org.apache.jsp.index_jsp._jspx_meth_html_005flink_005f0(index_jsp.java:168)
org.apache.jsp.index_jsp._jspx_meth_html_005fhtml_005f0(index_jsp.java:106)
org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
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)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
-----------------------------------struts.xml------->


Any help would be highly appreciated.
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The spelling of the class name is incorrect. Fix your configuration file.
 
dipak jain
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Paul,
Thanks for your help. I did fix the name of classes in config file ...but still i am getting the same error . I copied the below error details from Tomcat 6.0 log :

Dec 15, 2011 4:39:59 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /App1 threw load() exception
java.lang.ClassNotFoundException: org.apachi.struts.action.ActionServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)

Please see this and advise me if I need to add any other jar files. Netbeans 6.0 provides all the required Jar for an application.
 
dipak jain
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I rechecked the code and observed that the issue is my program is getting error out while Just control goes from Index.jsp ...Most likely reason is HTML tag. I tried with the <a href..></a> the page worked and control goes to another JSP but when I tried to use <html:link >it didnt worked. Please review it and advise me .

I tried the above code by changing the <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
 
dipak jain
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I got to know the error why this code was nt runnning for index.jsp.......I fixed the spell mistake and it start working. Now I am getting another error . please advise.
message /App1CustomerDetails.jsp

description The requested resource (/App1CustomerDetails.jsp) is not available.

Please see the code in my early post (I made the spell corrections) and advise me on the same.Thanks All.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic