Hallo allerseits!
Ich programmiere gerade eine Webanwendung mit dem Framework Struts 1.3.
Nachdem ich nun meine Anwendung im webapps von Tomcat deployed und die jsp's, tld's, jar's, web.xml, struts-config.xml, ActionForm, Action (hoffentlich) alle an der richtigen stille plaziert habe, trat beim erstmaligen ausführen der Anwendung die nachstehende Exception auf.
Außerdem habe ich die web.xml und struts-config.xml eingefügt.
Kann mir bitte irgendjemand sagen was ich falsch mache bzw. einen Tipp geben an was es liegen könnte?
Vielen Dank schon einmal im Voraus!
------------------------------------------------------------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /papErstellen.jsp:44
41: Unter dem Menüpunkt Sprachen können Sie nachträglich Sprachen aus- oder abwählen).</p>
42:
43: <br />
44: <html:form action="/papErstellen">
45: <table class="form_table">
46: <tr>
47: <td>PAP-Nr.:</td>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException: Module 'null' not found.
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735)
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:796)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:467)
org.apache.jsp.papErstellen_jsp._jspx_meth_html_005fform_005f0(papErstellen_jsp.java:147)
org.apache.jsp.papErstellen_jsp._jspService(papErstellen_jsp.java:110)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
--------------------------------------------------------------------------------------------------------------------
"web.xml"
--------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!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>
<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>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>papErstellen.jsp</welcome-file>
</welcome-file-list>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
</web-app>
--------------------------------------------------------------------------------------------------------------------
"struts-config.xml"
--------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//
DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="papForm" type="de.xxx.yyy.formBeans.PapForm"/>
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings>
<action path="/papErstellen"
type="de.xxx.yyy.Actions.PapErstellenAction"
name="papForm"
validate="true"
input="/papErstellen.jsp"
scope="session">
<forward name="success" path="/pap.jsp" />
</action>
</action-mappings>
<controller />
<message-resources parameter="de.xxx.yyy.formBeans.ApplicationResources"/>
</struts-config>
Ich programmiere gerade eine Webanwendung mit dem Framework Struts 1.3.
Nachdem ich nun meine Anwendung im webapps von Tomcat deployed und die jsp's, tld's, jar's, web.xml, struts-config.xml, ActionForm, Action (hoffentlich) alle an der richtigen stille plaziert habe, trat beim erstmaligen ausführen der Anwendung die nachstehende Exception auf.
Außerdem habe ich die web.xml und struts-config.xml eingefügt.
Kann mir bitte irgendjemand sagen was ich falsch mache bzw. einen Tipp geben an was es liegen könnte?
Vielen Dank schon einmal im Voraus!
------------------------------------------------------------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /papErstellen.jsp:44
41: Unter dem Menüpunkt Sprachen können Sie nachträglich Sprachen aus- oder abwählen).</p>
42:
43: <br />
44: <html:form action="/papErstellen">
45: <table class="form_table">
46: <tr>
47: <td>PAP-Nr.:</td>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException: Module 'null' not found.
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735)
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:796)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:467)
org.apache.jsp.papErstellen_jsp._jspx_meth_html_005fform_005f0(papErstellen_jsp.java:147)
org.apache.jsp.papErstellen_jsp._jspService(papErstellen_jsp.java:110)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
--------------------------------------------------------------------------------------------------------------------
"web.xml"
--------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!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>
<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>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>papErstellen.jsp</welcome-file>
</welcome-file-list>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
</web-app>
--------------------------------------------------------------------------------------------------------------------
"struts-config.xml"
--------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//
DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="papForm" type="de.xxx.yyy.formBeans.PapForm"/>
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings>
<action path="/papErstellen"
type="de.xxx.yyy.Actions.PapErstellenAction"
name="papForm"
validate="true"
input="/papErstellen.jsp"
scope="session">
<forward name="success" path="/pap.jsp" />
</action>
</action-mappings>
<controller />
<message-resources parameter="de.xxx.yyy.formBeans.ApplicationResources"/>
</struts-config>