Bonjour,

Qui pourrait m'aider à résoudre un problème d'exception dans une JSP lorsque j'utilise les tags ?

Voici la JSP :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
	<title><s:property value="%{getText('application.nom')}"/></title>
</head>
<body>
</body>
</html>
J'ai l'exception suivante :
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/index.jsp at line 6 3: 4: 5: 6: 7: 8: 9: Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
...
java.lang.Thread.run(Unknown Source)

java.lang.NullPointerException
org.apache.jsp.jsp.index_jsp._jspx_meth_s_005fproperty_005f0(index_jsp.java:103)
org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:72)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
...

Si je retire le tag <s:..>, tout s'affiche correctement. Toute tentative de mettre un tag se termine par cette exception.

Il s'agit d'un projet Struts2 sut Tomcat 7.0.55. Manquerait-il une JAR ? Voici le classpath :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
 
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="var" path="TOMCAT_HOME/lib/servlet-api.jar"/>
	<classpathentry kind="var" path="TOMCAT_HOME/lib/jasper.jar"/>
	<classpathentry kind="var" path="TOMCAT_HOME/lib/el-api.jar"/>
	<classpathentry kind="var" path="TOMCAT_HOME/lib/annotations-api.jar"/>
	<classpathentry kind="src" path="WEB-INF/src"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/commons-fileupload-1.3.1.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/commons-io-2.2.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/commons-logging-1.1.3.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/freemarker-2.3.19.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/log4j-1.2.17.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/ognl-3.0.6.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/struts2-core-2.3.16.3.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/xwork-core-2.3.16.3.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/asm-3.3.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/asm-commons-3.3.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/asm-tree-3.3.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/commons-lang3-3.1.jar"/>
	<classpathentry kind="lib" path="C:/Users/djuste/workspace/L15v1/WEB-INF/lib/javassist-3.11.0.GA.jar"/>
	<classpathentry kind="lib" path="C:/Program Files/apache-tomcat-7.0.55/lib/jsp-api.jar"/>
	<classpathentry kind="output" path="WEB-INF/classes"/>
</classpath>
Par avance, merci.