Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

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

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

 
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans
View previous topic :: View next topic  
Author Message
juniormember



Joined: 28 Jun 2008
Posts: 154

PostPosted: Tue Sep 02, 2008 11:59 am    Post subject: java.lang.NullPointerException: Module 'null' not found. Reply with quote

Hi
i am getting this error in struts 1.3.5
"java.lang.NullPointerException: Module 'null' not found."

How to solve this error
Please check this error
Back to top
View user's profile Send private message
strutschamp



Joined: 04 Mar 2007
Posts: 4

PostPosted: Wed Dec 24, 2008 12:42 pm    Post subject: Reply with quote

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


If web.xml doesnot have right parameter which struts need, this error will come.

check web.xml in WEB-INF folder of application

If web.xml have action class with config parameter??

Code:
<servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
   
    <init-param>
      <param-name>application</param-name>
      <param-value>app_resources</param-value>
   </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>3</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
  </servlet>


This should have in web.xml
If not it will throw error of module null
Back to top
View user's profile Send private message
muralidhar



Joined: 30 Sep 2009
Posts: 1

PostPosted: Wed Sep 30, 2009 3:54 am    Post subject: Reply with quote

I too got the same error. On careful examination I have found that I did not close the tag properly in struts-config.xml file Previously: After closing: After doing this change I restarted the tomcat and it worked!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack