1 Reply Latest reply: Jul 29, 2010 12:53 AM by 843842 RSS

    java.lang.NullPointerException: Module 'null' not found.

    843842
      Hai to all, i am new to struts
      can any one help me to solve this exception

      login.jsp:

      <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%>
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

      <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <title>Library</title>
      </head>
      <body>
      <html:form action="login">
      <html:text property="uname"/>
      <html:password property="pwd"/>
      <html:submit value="Login"/>
      </html:form>
      </body>
      </html>

      struts-config.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE struts-config PUBLIC
      "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
      "http://struts.apache.org/dtds/struts-config_1_3.dtd">

      <struts-config>
      <form-beans>
      <form-bean name="loginform" type="Pack.Cls_Form"></form-bean>
      </form-beans>
      <action-mappings>
      <action path="/login" type="Pack.Cls_Action" name="loginform">
      <forward name="ok" path="book_search.jsp"></forward>
      </action>


      </action-mappings>


      </struts-config>

      Exception:

      org.apache.jasper.JasperException: Exception in JSP: /login.jsp:13

      10: <title>Library</title>
      11: </head>
      12: <body>
      13: <html:form action="login">
      14: <html:text property="uname"/>
      15: <html:password property="pwd"/>
      16: <html:submit value="Login"/>


      Stacktrace:
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


      root cause

      java.lang.NullPointerException: Module 'null' not found.
      org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
      org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735)
      org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:818)
      org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488)
      org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:98)
      org.apache.jsp.login_jsp._jspService(login_jsp.java:72)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)