Bonjour,
J'ai développé en local une application avec tomcat et çamarche bien. Je dois maintenant la passer sous weblogic et lors d'un appel d'une page j'ai l'erreur suivante :
layout.jsp :
Code : Sélectionner tout - Visualiser dans une fenêtre à part javax.servlet.jsp.JspException: ServletException in '/layout/layout.jsp': Can't insert page '/visuInfos/general/menu1.jsp' : javax.servlet.jsp.JspException: The taglib validator rejected the page: "java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence., "
menu1.jsp :
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
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
79
80
81
82 <%@ taglib uri="/WEB-INF/tld/struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%> <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %> <%@ page import="java.util.Locale" %> <% Locale loc =(Locale)session.getAttribute(org.apache.struts.Globals.LOCALE_KEY); String langue; if(loc.getLanguage() == "en") { langue="fr"; } else { langue="en"; } %> <html> <head> <link href="/sitetech/css.css" rel="stylesheet" type="text/css"> <title>Visualisation d'un projet</title> <!-- We have the "refresh" meta-tag in case the user's browser does not correctly support JavaScript or has JavaScript disabled. Notice that this is nested within a "noscript" block. --> <meta http-equiv="refresh" content="300"> </noscript> <script language="JavaScript"> <!-- function doLoad() { // the timeout value should be the same as in the "refresh" meta-tag setTimeout( "refresh()", 300*1000 ); } function refresh() { window.location.reload( false ); } //--> </script> </head> <body> <div style="overflow-x:scroll;" /> <%-- include header --%> <tiles:insert attribute="header"/> <p align="left"><%out.println("<a href=\"/sitetech/changelang.do?lang="+langue+"\"><img alt=\"changement de langue\" src=\"/sitetech/images/"+langue+"_flag.gif\" border=\"0\"></a>");%></p> <p><html:link page="/accueil.do" > <bean:message key="commun.lienaccueil"/> </html:link> </p> <table border="0"> <tr valign="top"> <td> <table width="200" border="1"> <tr> <td ><bean:message key="layout.menugeneral"/><br></br><tiles:insert attribute="menu1"/></td> </tr> <tr> <td><bean:message key="layout.menuspecifique"/><br></br><tiles:insert attribute="menu2"/></td> </tr> </table> </td> <td colspan="2"> <tiles:insert attribute="body"/> </td> </tr> </table> </div> </body>
Je ne comprends pas pourquoi ça plante. :/
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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208 <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ page import="ft.sitetech.visuInfos.service.Environnement" %> <% Environnement monEnv = (Environnement)session.getAttribute("env"); // Gestion du "déroulement" des menus String typeSite; if(request.getAttribute("type")==null) { typeSite=""; } else { typeSite=request.getAttribute("type").toString(); } String histo ; if(request.getAttribute("histo")==null) { histo=""; } else { histo=request.getAttribute("histo").toString(); } // Définit si le menu est présent boolean mpbA = true; boolean prodA = true; boolean formA = true; boolean mpbP = true; boolean prodP = true; boolean formP = true; // On teste si les génération actuelles et précédentes sont présentes String mpbActu; if( (mpbActu= monEnv.getGOROMPBactu())!=null) { pageContext.setAttribute("mpbA",new Boolean(mpbA)); } String prodActu ; if( (prodActu= monEnv.getGOROPRODactu())!=null) { pageContext.setAttribute("prodA",new Boolean(prodA)); } String formActu; if( (formActu= monEnv.getGOROFORMactu())!=null) { pageContext.setAttribute("formA",new Boolean(formA)); } String mpbPrec; if( (mpbPrec= monEnv.getGOROMPBPrec())!=null) { pageContext.setAttribute("mpbP",new Boolean(mpbP)); } String prodPrec = monEnv.getGOROPRODPrec(); if( (prodPrec= monEnv.getGOROPRODPrec())!=null) { pageContext.setAttribute("prodP",new Boolean(prodP)); } String formPrec ; if( (formPrec= monEnv.getGOROFORMPrec())!=null) { pageContext.setAttribute("formP",new Boolean(formP)); } %> <SCRIPT language="javascript"> function setHidden(elt,pt) { if(document.getElementById(elt).style.display=='none') { document.getElementById(elt).style.display='block'; pt.value='-'; } else { document.getElementById(elt).style.display='none'; pt.value='+'; } } </SCRIPT> <table width="100%" CLASS="categorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.dossConfig"/> </td></tr></table> <html:link page="/visuInfos/general/affDossConf.do" > <bean:message key="visusInfos.general.menu1.dossConfig"/> </html:link><br></br> <!-- Menus actuels --> <!-- Menu prod --> <c:if test="${prodA}" > <table width="100%" CLASS="site"><tr><td> <html:link styleId="2" page="/visuInfos/general/accueilProjet.do?type=prod" > <bean:message key="visusInfos.general.menu1.suivi"/> PROD <%=prodActu %> </html:link> </td> <td align="right"> <input type="button" class="menuButton" value="+" onClick="setHidden('prodA',this)"/><br></br> </td></tr></table> <% if(typeSite.toUpperCase().equals("PROD") && histo.equals("0")) { out.println("<div style=\"display:block;\" id=\"prodA\">"); } else { out.println("<div style=\"display:none;\" id=\"prodA\">"); } %> <table width="100%" CLASS="categorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.systeme"/> </td></tr></table> <table width="100%" CLASS="sscategorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.systeme.webServ"/> </td></tr></table> <html:link page="/visuInfos/general/affWeblogicCnx.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.webloCnx"/> </html:link><br></br> <html:link page="/visuInfos/general/affWeblogicErreurs.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.webloErr"/> </html:link><br></br> <html:link page="/visuInfos/general/affWeblogicEtat.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.webloEtat"/> </html:link><br></br> <table width="100%" CLASS="sscategorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.systeme.appServ"/> </td></tr></table> <html:link page="/visuInfos/general/affAppServCnx.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.appCnx"/> </html:link><br></br> <html:link page="/visuInfos/general/affAppServPerf.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.appPerf"/> </html:link><br></br> <html:link page="/visuInfos/general/affAppServFiles.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.appFiles"/> </html:link><br></br> <html:link page="/visuInfos/general/affAppServEtat.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.appEtat"/> </html:link><br></br> <table width="100%" CLASS="sscategorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.systeme.oracle"/> </td></tr></table> <html:link page="/visuInfos/general/affOracleRequetes.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.oraReq"/> </html:link><br></br> <html:link page="/visuInfos/general/affOracleErreurs.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.oraErr"/> </html:link><br></br> <table width="100%" CLASS="sscategorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.systeme.jobs"/> </td></tr></table> <html:link page="/visuInfos/general/affBatchSJobs.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.jobs"/> </html:link><br></br> <table width="100%" CLASS="sscategorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.systeme.fs"/> </td></tr></table> <html:link page="/visuInfos/general/affMultiFS.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.fs"/> </html:link><br></br> <table width="100%" CLASS="sscategorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.systeme.activite"/> </td></tr></table> <html:link page="/visuInfos/general/affMultiActiviteMach.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.activite"/> </html:link><br></br> <table width="100%" CLASS="categorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.exploitabilite"/> </td></tr></table> <table width="100%" CLASS="sscategorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.suiviBatch"/> </td></tr></table> <html:link page="/visuInfos/general/affSuiviBatch.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.suiviBatch"/> </html:link><br></br> <table width="100%" CLASS="categorie"><tr><td align="center"> <bean:message key="visusInfos.general.menu1.infosBrutes"/> </td></tr></table> <html:link page="/visuInfos/general/affInfosBrutes.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.infosBrutes"/> </html:link> <br></br> <html:link page="/visuInfos/general/affAllInfos.do?type=prod&histo=0" > <bean:message key="visusInfos.general.menu1.allInfos"/> </html:link> <br></br> </div> <br></br> </c:if>
Merci de votre aide.
Partager