org.apache.jasper.JasperException: java.lang.NullPointerException: Module 'null' not found.
Bonjour,
je développe une appli web j2ee avec les frameworks struts spring et hibernate.
Depuis qques jours j'obtiens une erreur lors du lancement de l'appli sous tomcat6 alors que l'appli marche parfaitement sous glassfish3...
Vs allez me dire pourquoi il se casse la tête avec tomcat alors qu' avec glassfish tout roule.. Tout simplement parcke le serveur d'appli sur lequel je travail en entreprise est un serveur tomcat.
J'ai également lu un peu partt sur le net que cette erreur arrive assez souvent, j'ai également suivi les différentes modifs à effectuer (dans mon cas biensûr) et rien n'y fait!!
Voilà mon fichier struts-config
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd">
<struts-config>
<!-- =================== action config ==========================-->
<action-mappings>
<action path="/login" type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="success" path="/success.jsp" redirect="false"/>
<forward name="failure" path="/login.jsp" redirect="false"/>
</action>
<action path="/logout" type="com.myapp.struts.action.LogoutAction">
<forward name="login" path="/login.jsp" redirect="false"/>
</action>
<action
path="/switchLang"
type="com.myapp.struts.action.SwitchLangAction">
<forward name="success" path="/login.do"/>
</action>
</action-mappings>
<message-resources parameter="com/myapp/struts/ApplicationResource"/><!--internationalisation-->
<!-- =================== plug-in config ==========================-->
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="/WEB-INF/action-servlet.xml"/>
</plug-in>
</struts-config> |
mn web.xml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| .
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<!-- =================== Spring config ==========================-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- =================== Struts config ==========================-->
<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>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- =================== application config =====================-->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app> |
ma page jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
.header {
background-color: silver;
}
.even {
background-color: #fff;
}
/*body {
margin: auto;
}*/
h1{
text-align: center;
}
#page
{
position: absolute;
width: 20em; /* selon la largeur voulue */
margin-left: -8em; /* moitie de width */
left: 50%; /* constant, toujours 50% */
height: 10em; /* selon la quantite de texte */
margin-top: -10em; /* moitie de height */
top: 50%; /* constant, toujours 50% */
border: 1px solid #333;
background-color: #eee;
}
#content { margin: 1em; }
#img{
position: absolute;
width: 30em; /* selon la largeur voulue */
margin-left: auto; /* moitie de width */
left: 45%; /* constant, toujours 50% */
margin-top: 12em; /* moitie de height */
top: 50%; /* constant, toujours 50% */
}
</style>
<title><bean:message key="form.accueil.login"/></title>
</head>
<body>
<img src="img/frenchFlag.jpg"/><html:link page='/switchLang.do?lang=fr&cty=FR'>Version française</html:link>
<img src="img/usaFlag.jpg" /><html:link page='/switchLang.do?lang=en&cty=EN'>English version</html:link>
<div id="page">
<div id="content">
<b><i><bean:message key="label.accueil.instr"/></i></b>
<br>
<form action="login.do" method=POST style="padding-top: 5px;">
<table>
<tr>
<td><bean:message key="label.accueil.username"/>:</td>
<td><input type=text name=login>
</tr>
<tr>
<td><bean:message key="label.accueil.pwd"/>:</td>
<td><input type=password name=password>
</tr>
<tr>
<td colspan=3 align=right><input type=submit value=<bean:message key="label.button.envoyer"/>></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html> |
Je ne m'en sors pas!!
merci d'avance