| View previous topic :: View next topic |
| Author |
Message |
juniormember
Joined: 28 Jun 2008 Posts: 154
|
Posted: Tue Sep 02, 2008 11:59 am Post subject: java.lang.NullPointerException: Module 'null' not found. |
|
|
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 |
|
 |
strutschamp
Joined: 04 Mar 2007 Posts: 4
|
Posted: Wed Dec 24, 2008 12:42 pm Post subject: |
|
|
| 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 |
|
 |
muralidhar
Joined: 30 Sep 2009 Posts: 1
|
Posted: Wed Sep 30, 2009 3:54 am Post subject: |
|
|
| 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 |
|
 |
|
|