JavaRanch Home    
 
This page:         last edited 15 July 2010         What's Changed?         Edit

Module Null   

Module 'null' not found

This error occurs when you try to display a JSP before the Struts ActionServlet has been initialized and is active. The causes for this error are usually either:

  1. You failed to specify <load-on-startup>2</load-on-startup> for the Struts ActionServlet in your web.xml file or
  2. You did specify the above, but the Struts ActionServlet didn't initialize properly because of an error. Check the log file entries for the time period when the Server first starts up to see if it initialized properly or
  3. You accessed a JSP page directly without going through an action

When the Struts ActionServlet throws an exception while initializing, the most likely cause is that it was unable to parse the XML in your struts-config.xml file either because it's malformed, or it doesn't follow the DTD. If you look at the log file entries that occur when the server is first starting, sometimes you will find an error message telling you specifically what's wrong with the config file and also telling you the line number in the file where the error occurs.

Also, check to see that you have all the necessary jar files in your WEB-INF/lib directory. If you don't know for sure which ones you need, just throw in all the jar files contained in the lib folder in the Struts downloaded materials.



Return to StrutsFaq

JavaRanchContact us — Copyright © 1998-2014 Paul Wheaton