Problème avec JSP file

Problème avec JSP file - Java - Programmation

Marsh Posté le 02-08-2013 à 06:07:47    

bonjour  
j'ai un problème que j'arrive pas à le résoudre. Lorsque j'utilise acceuil.html l'image d'arrière plan et le pieds s'affiche lorsque je le rename à acceuil.jspx un erreur s'affiche.
 
acceuil.jspx:

Code :
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <jsp:root version="1.2"
  3.   xmlns:jsp="http://java.sun.com/JSP/Page"
  4.    xmlns:f="http://java.sun.com/jsf/core"
  5.   xmlns:h="http://java.sun.com/jsf/html"
  6.   xmlns:ice="http://www.icesoft.com/icefaces/component">
  7. <jsp:directive.page contentType="text/html;charset=utf-8" />
  8. <f:view>
  9.   <ice:outputDeclaration doctypeRoot="HTML" doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN" doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
  10.  
  11. <html>
  12.  
  13.  <head>
  14.        <title>GestionDeProjet</title>
  15.        <ice:outputStyle href="./xmlhttp/css/rime/rime.css" />
  16.      </head>
  17.    
  18. <style type="text/css">
  19. #pieds{
  20. background-image: url("IMAGE/pied.jpg" );
  21. width: 100%;
  22. position: fixed;
  23. bottom: 0;
  24. left: 0;
  25. height:10%;
  26. background-repeat: repeat-x;
  27. </style>
  28.     <body style="background-color: #E8F4FF">
  29.     <ice:loadBundle basename="ressources.message" var="msg" />
  30.  <ice:form>
  31.   <ice:panelGroup style=" position: absolute; left: 10%; top:10%;">
  32.    <ice:panelGrid border="0" columns="3" cellpadding="10" cellspacing="40">
  33.     <ice:graphicImage url="IMAGE/JTProject.png" style="width: 562px; height: 110px"/>
  34.     <ice:graphicImage url="LOGO/barre.png" style="width: 3px; height: 324px"/>
  35.     <ice:panelGrid columns="2" >
  36.      <ice:graphicImage url="LOGO/cadna.png" />
  37.      <ice:panelGrid border="0" columns="1" cellspacing="3" style="text-align: left">
  38.       <ice:outputText value="Login" style="font-size: 14px; font-weight: bold"/>
  39.       <ice:panelGrid columns="2">
  40.       <ice:inputText value="#{authentificateur.login}" id="login">
  41.        <f:validateLength minimum="4"/>
  42.       </ice:inputText>
  43.       <ice:message id="messages" for="login" style="color:red; line-height:200%;background: url( 'xmlhttp/css/rime/css-images/bullet.gif' ) no-repeat 0 3px;padding-left:15px"/>
  44.       </ice:panelGrid>
  45.       <ice:outputText value="Mot de passe" style="font-size: 14px; font-weight: bold"/>
  46.       <ice:panelGrid columns="2">
  47.        <ice:inputSecret value="#{authentificateur.motDePasse}" id="psw">
  48.         <f:validateLength minimum="4"/>
  49.        </ice:inputSecret>
  50.        <ice:message id="message" for="psw" style="color:red; line-height:200%;background: url( 'xmlhttp/css/rime/css-images/bullet.gif' ) no-repeat 0 3px;padding-left:15px"/>
  51.       </ice:panelGrid>
  52.       <ice:commandButton action="#{authentificateur.authentification}" value="Connexion" title="connexion" image="LOGO/bouton.png" style="width: 96px; height: 31px"/>
  53.       <ice:outputText value="#{authentificateur.message}" style="color: #FF0000; font-style: normal; font-size: 12px"></ice:outputText>
  54.      </ice:panelGrid>
  55.     </ice:panelGrid>
  56.    </ice:panelGrid>
  57.   </ice:panelGroup>
  58.   <ice:panelGroup visible="false">
  59.    <ice:selectInputDate value="#{authentificateur.date}" renderAsPopup="true">
  60.     <f:convertDateTime pattern="dd/MM/yyyy" timeZone="#{time.timeZone}" />
  61.    </ice:selectInputDate>
  62.   </ice:panelGroup>
  63.  </ice:form>
  64.    <div id="pieds" >
  65.     <ice:outputText value="JavaTech © 2010" style="position: absolute; bottom:30%; left: 20px; color: white;"/>
  66.      <ice:graphicImage url="IMAGE/javaTech.png" style="height:100%; width: 10%; position: absolute; bottom: 0px; right: 0px;" />
  67.    </div>
  68.     </body>
  69.   </html>
  70. </f:view>
  71. </jsp:root>


l'erreur qui s'affiche est:

Code :
  1. Grave: "Servlet.service()" pour la servlet Persistent Faces Servlet a généré une exception
  2. java.lang.RuntimeException: no message available
  3. at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:173)
  4. at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  5. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
  6. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  7. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
  8. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
  9. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
  10. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
  11. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  12. at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
  13. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  14. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
  15. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
  16. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
  17. at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
  18. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  19. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  20. at java.lang.Thread.run(Thread.java:722)
  21. Caused by: java.lang.NullPointerException
  22. at com.icesoft.faces.context.View.releaseAll(View.java:176)
  23. at com.icesoft.faces.context.View.release(View.java:168)
  24. at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:54)
  25. at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
  26. at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
  27. at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
  28. at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
  29. at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
  30. at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
  31. at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
  32. at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
  33. at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
  34. at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)


SVP aidez moi!

Reply

Marsh Posté le 02-08-2013 à 06:07:47   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed