Himu\’s Attempt at Blogging

Tidbits from my thoughts

Struts load-on-startup and Module ‘null’ not found

with 10 comments

I do business logic programming and didn’t ever try to learn UI-related stuff seriously. Recently I decided to learn Struts (used in my company) thoroughly and started with 1.3.8 with Struts In Action as a guide. A logon application was done with necessary adaptations from 1.0 to 1.3.8. I assembled the full application without going through the book in detail. But to my surprise I got the following error when I entered my application URL in the browser:

HTTP Status 500 –


type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request. exception

org.apache.jasper.JasperException: Module 'null' not found.
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
	...

root cause

java.lang.NullPointerException: Module 'null' not found.
	org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
	...

I didn’t have a clue. After lots of experimentation, I finally decided to look into the struts-blank application. The first thing I did was open the web.xml file and voila! I missed the <load-on-startup> element in the <servlet> definition of the Struts ActionServlet. As a result, Struts was not being initialized properly and I got that weird error.

Advertisements

Written by mhimu

August 16, 2007 at 3:45 pm

Posted in struts

10 Responses

Subscribe to comments with RSS.

  1. Free Domain Name

    Get a free domain name (100% DNS control and no ads) from Whooked! How? Get it for registering and making a few posts!

    Whooked.com

    March 2, 2008 at 8:25 am

  2. I also got the same error by missing some dependencies. For example, in a Struts 1.3.9 w/ Tiles application, I had to have all of these jars in my WEB-INF/lib folder:

    * commons-beanutils
    * commons-chain
    * commons-digester
    * commons-io
    * struts-core
    * struts-taglib
    * struts-tiles

    Legaia

    July 22, 2008 at 3:08 am

  3. The server failed to fulfill an apparently valid request.

    Response status codes beginning with the digit “5” indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server should include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. User agents should display any included entity to the user. These response codes are applicable to any request method.

    bilstein struts

    August 12, 2008 at 3:30 am

  4. I read your blog for a long time and should tell you that your posts are always valuable to readers.

    How to Get Six Pack Fast

    April 15, 2009 at 8:49 pm

  5. Hi ,
    I am having the same problem of Module ‘null’ not found.
    but i already have as 2 there in my web-config.
    Can you suggest what are other possible solutions

    pramod

    June 16, 2009 at 7:16 pm

  6. I too got the same exception. The reason was that I did not close the tag properly in struts-config tag. Close the tag and most probably you will not get the exception.

    Note: This is one such solution. There are other reasons too for the exception…

    Muralidhar

    September 29, 2009 at 11:50 pm

    • forward tag….. i was talking about.. gosh dont know why the the blog does not support “<" ???

      Muralidhar

      September 29, 2009 at 11:51 pm

  7. This error can be also due to version mismatch , i got the same error , later i realized i was compling the java code in higher version(1.6) and trying to run in tomcat with jre 1.5 , i found this by enabling strurs logs , for that we need to move commons-logging.jar ,log4j.jar in lib directory and configure the log4j.properties

    Rathina kumar

    December 11, 2009 at 1:54 am

  8. some webhosting companies give free domains upon signing up with one of their plans ~,”

    Natural Vitamins

    December 2, 2010 at 12:44 am

  9. *,” I am really thankful to this topic because it really gives up to date information **~

    Electric Cement Mixer

    January 25, 2011 at 11:11 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: