Hola mi ingles no es muy bueno entocnes escribo en español, espero alguien me pueda colaborar, tengo una pagina con html y jsf y al ejecutarla me da el siguietne error en el navegador:

org.apache.jasper.JasperException: Exception in JSP: /proyecto/pro_edi.jsp:57

54: <script language="javascript" src="../jScripts/HMSBloquearMouse.js"></script> 55: </head>
56:     <body>
57:         <f:view>
58:             <f:verbatim>
59:                 <table width="600" border="0" cellpadding="1" cellspacing="0" 
class="fondo_tabla" align="center" >
60:                 <!-- <form name="frmRol" id="frmRol" method="post" 
action="gro_edi_con.jsp"> -->


Stacktrace:
        
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*causa raíz*

java.lang.NullPointerException
        
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
        javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
        org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
        
org.apache.jsp.proyecto.pro_005fedi_jsp._jspService(pro_005fedi_jsp.java:152)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*nota* _La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/5.5.17.
_

En la salida del tomcat muestra esto:

14/08/2006 07:30:40 PM javax.faces.webapp.UIComponentTag setupResponseWriter
GRAVE: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.

Asi tengo mi web.xml
=================

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
   version="2.4">
   <context-param>
<description>Comma separated list of URIs of (additional) faces config files.
           (e.g. /WEB-INF/my-config.xml)
           See JSF 1.0 PRD2, 10.3.2
Attention: You do not have to put /WEB-INF/faces-config.xml in here.
       </description>
       <param-name>javax.faces.CONFIG_FILES</param-name>
       <param-value>/WEB-INF/examples-config.xml</param-value>
   </context-param>
   <context-param>
       <description>State saving method: "client" or "server" (= default)
       See JSF Specification 2.5.3</description>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>server</param-value>
   </context-param>
   <context-param>
<description>Only applicable if state saving method is "server" (= default). Defines the amount (default = 20) of the latest views are stored in session.</description> <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
       <param-value>20</param-value>
   </context-param>
   <context-param>
<description>Only applicable if state saving method is "server" (= default). If true (default) the state will be serialized to a byte stream before it
       is written to the session.
If false the state will not be serialized to a byte stream.</description> <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
       <param-value>true</param-value>
   </context-param>
   <context-param>
<description>Only applicable if state saving method is "server" (= default) and if
       org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default)
       If true (default) the serialized state will be compressed before it
is written to the session. If false the state will not be compressed.</description> <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
       <param-value>true</param-value>
   </context-param>
   <context-param>
<description>This parameter tells MyFaces if javascript code should be allowed in the
       rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
       that submits the corresponding form.
If javascript is not allowed, the state saving info and nested parameters
       will be added as url parameters.
       Default: "true"</description>
       <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
       <param-value>true</param-value>
   </context-param>
   <context-param>
       <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
       <param-value>false</param-value>
   </context-param>
   <context-param>
<description>If true, rendered HTML code will be formatted, so that it is "human readable". i.e. additional line separators and whitespace will be written, that do not
       influence the HTML code.
       Default: "true"</description>
       <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
       <param-value>true</param-value>
   </context-param>
   <context-param>
<description>If true, a javascript function will be rendered that is able to restore the former vertical scroll on every request. Convenient feature if you have pages with long lists and you do not want the browser page to always jump to the top
       if you trigger a link or button action that stays on the same page.
       Default: "false"</description>
       <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
       <param-value>true</param-value>
   </context-param>
   <context-param>
<description> Used for encrypting view state. Only relevant for client side state saving. See MyFaces wiki/web site documentation for instructions on how to configure an application for diffenent encryption strengths.
       </description>
       <param-name>org.apache.myfaces.SECRET</param-name>
       <param-value>NzY1NDMyMTA=</param-value>
   </context-param>
   <context-param>
       <description>
Validate managed beans, navigation rules and ensure that forms are not nested.
       </description>
       <param-name>org.apache.myfaces.VALIDATE</param-name>
       <param-value>true</param-value>
</context-param> <context-param>
       <param-name>com.sun.faces.verifyObjects</param-name>
       <param-value>false</param-value>
   </context-param>
   <context-param>
       <param-name>com.sun.faces.validateXml</param-name>
       <param-value>true</param-value>
   </context-param>

<!-- Tiles ViewHandler config file --> <!-- <context-param> <description>Tiles configuration definition files and a listener need to be defined. the listener will initialize JspTilesViewHandlerImpl with tiles definitions. </description> <param-name>tiles-definitions</param-name> <param-value>/WEB-INF/tiles_ads.xml</param-value> </context-param> -->

   <filter>
       <filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
       <init-param>
           <description>Set the size limit for uploaded files.
           Format: 10 - 10 bytes
           10k - 10 KB
           10m - 10 MB
           1g - 1 GB</description>
           <param-name>uploadMaxFileSize</param-name>
           <param-value>100m</param-value>
       </init-param>
       <init-param>
           <description>Set the threshold size - files
           below this limit are stored in memory, files above
           this limit are stored on disk.

           Format: 10 - 10 bytes
           10k - 10 KB
           10m - 10 MB
           1g - 1 GB</description>
           <param-name>uploadThresholdSize</param-name>
           <param-value>100k</param-value>
       </init-param>
   </filter>
   <filter-mapping>
       <filter-name>extensionsFilter</filter-name>
       <url-pattern>*.jsf</url-pattern>
   </filter-mapping>
   <filter-mapping>
       <filter-name>extensionsFilter</filter-name>
       <url-pattern>/faces/*</url-pattern>
   </filter-mapping>
   <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet>
       <servlet-name>SourceCodeServlet</servlet-name>
<servlet-class>org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet</servlet-class>
   </servlet>
   <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.jsf</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
       <servlet-name>SourceCodeServlet</servlet-name>
       <url-pattern>*.source</url-pattern>
   </servlet-mapping>
<session-config>
       <session-timeout>30</session-timeout>
   </session-config>

   <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>
</web-app>


Asi tengo la pagina jsp
===================
<%@ page contentType="text/html;charset=iso-8859-1"%>
<%@ page language="java" import="java.util.*, java.lang.*" %>
<%//@ page import="memoIG.valueobject.RolVO" %>
<%@ page import="co.edu.unipamplona.plataforma.metodos.*" %>
<!-- Tag para JSF -->
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%

   response.setHeader( "Pragma", "no-cache" ) ; //--> HTTP 1.1
   response.setHeader( "Cache-Control", "no-store" ) ; //--> HTTP 1.0
   response.setDateHeader( "Expires", 0 ) ;
%>
<% String estilo = "001";
       String cEstilo = "" ;
MiUsuarioVO muVO = ( MiUsuarioVO )session.getAttribute( "miUsuarioVO" );
       if ( muVO != null ) {
           estilo  = ( String )muVO.getEstilo();
           cEstilo    = ( String )muVO.getTamanoEstilo();
       }
%>
<% //--> Elimina la variable de session cuando viene la pagina desde el btn insertar String btnInsertar = ( String )request.getParameter( "btnInsertar" );
       if ( btnInsertar != null && btnInsertar.equals( "1" ) )
           session.removeAttribute( "01_01_RolVO" ) ;

       //    RolVO rVO = ( RolVO )session.getAttribute ( "01_01_RolVO" );
%>

<script language="javascript">
   //--> Codigo que evita la funcion del explorador volver atras
try { history.forward (); } catch (e) {} </script>

<html>
   <head>
       <title>Administraci&oacute;n de Desarrollo de Software - ADS</title>
<link href="../css/estilo_<%= estilo + cEstilo %>.css" rel="stylesheet" type="text/css"> <script language="javascript" src="../jScripts/HMSBloquearTeclas.js"></script> <script language="javascript" src="../jScripts/HMSBloquearMouse.js"></script>
   </head>
   <body>
       <f:view>
           <f:verbatim>
<table width="600" border="0" cellpadding="1" cellspacing="0" class="fondo_tabla" align="center" > <!-- <form name="frmRol" id="frmRol" method="post" action="gro_edi_con.jsp"> -->
               <tr class="fondo_blanco">
                   <td><img src="../images_com/5px_tra.gif"></td>
               </tr>
               <tr>
               <td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="fondo_celda_3">
                   <tr class="fondo_celda_1">
<td align="center" valign="middle" class="texto_blanco">Gestionar Roles</td>
                   </tr>
               </table>
           </f:verbatim>
                       <h:form id="frmPro" onsubmit="pro_edi_con.jsp">
                           <f:subview id="panelTabbedPane1">
<t:panelTabbedPane bgcolor="#FFFFCC" serverSideTabSwitch="false"> <t:panelTab id="tab1" label="tabbed_tab1" rendered="true"> <h:selectBooleanCheckbox id="testCheckBox" value="chexBox"/> <h:outputLabel for="testCheckBox" value="A checkbox"/> <h:inputText id="inp1"/><f:verbatim><br></f:verbatim> <h:inputText id="inp2" required="true" /> <h:message for="inp2" showSummary="false" showDetail="true" />
                                   </t:panelTab>
                               </t:panelTabbedPane>
                           </f:subview>
                       </h:form>
<f:verbatim> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fondo_celda_3">
                           <tr align="center" class="fondo_celda_2">
<td width="50%" class="texto_negro">Nombre del Rol</td> <td width="50%" class="texto_negro">Descripci&oacute;n</td>
                           </tr>
                           <tr align="center" class="fondo_celda_3">
<td width="50%" align="center" class="texto_negro"> <!-- <input onFocus = "javascript: HMSTeclas.BloquearTeclas ( 'ON' );" onBlur = "javascript: HMSTeclas.BloquearTeclas ( 'OFF' );" value="<%//= rVO != null ? Metodos.printString ( rVO.getNombre () ) : "" %>" name="txtNombre" type="text" class="text_field" id="txtNombre" size="40" maxlength="50">-->
                               </td>
<td width="50%" align="center" class="texto_negro"> <!--<input onFocus = "javascript: HMSTeclas.BloquearTeclas ( 'ON' );" onBlur = "javascript: HMSTeclas.BloquearTeclas ( 'OFF' );" value="<%//= rVO != null ? Metodos.printString ( rVO.getDescripcion () ) : "" %>" name="txtDescripcion" type="text" class="text_field" id="txtDescripcion" size="40" maxlength="100">-->
                               </td>
                           </tr>
                           <tr>
<td colspan="2"><iframe src="gro_edi_con.jsp?inicio=1" name="seccionRegistro" id="seccionRegistro" width="0%" height="0%" frameborder="0" ></iframe></td>
                           </tr>
                       </table>
                   </td>
               </tr>
<!--<input type="hidden" name="txtIdRol" id="txtIdRol" value="" > <input type="hidden" name="txtOperacion" id="txtOperacion" value="" >
               </form> -->
           </table>
           </f:verbatim>
</f:view> </body>
</html>

<script language="javascript">
//--> Crea una instancia en la pagina padre del iframe de almacenamiento y del formulario actual parent.HMSRegistro = HMSobjetos.GetObjeto ( 'seccionRegistro' ); parent.HMSFormulario = HMSobjetos.GetObjeto ( 'frmRol' ); </script>


Si alguien me puede colaborar les agradezco.


Reply via email to