File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes java.lang.NullPointerException: Module 'null' not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang.NullPointerException: Module Watch "java.lang.NullPointerException: Module New topic
Author

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

Meg Jolie
Greenhorn

Joined: Jul 03, 2009
Posts: 20
Hi,
I am getting a java.lang.NullPointerException: Module 'null' not found exception while trying to run my application. I have copied all the jar files in WEB-INF/lib directory. struts-config and web.xml are under WEB-INF directory.

Can anybody help me figure out whats causing the exception? Thanks..

web.xml

<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<!-- Action Servlet Configuration -->
<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>

<load-on-startup>1</load-on-startup>
</servlet>

<!-- Action Servlet mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>

</web-app>

--------------------------------------------------------------------------------------------------
struts-config.xml

<?xml version="1.0"?>

<!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 configuration-->
<form-beans>
<form-bean name="enrollForm" type="EnrollForm" />
</form-beans>

<!-- Global Forwards Configuration -->
<global-forwards>
<forward name="enroll" path="/enroll.jsp" /> <!-- used in index.jsp file -->
</global-forwards>

<!-- Action Mappings configuration -->
<action-mappings>
<action path="/enroll" type="EnrollAction" name="enrollForm"
scope="request" validate="true" input="/enroll.jsp" />
</action-mappings>

<!-- Message Resources Configuration -->
<message-resources parameter="MessageResources"/>

</struts-config>
</xml>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NullPointerException: Module 'null' not found