you need to enter 

page.jsf, and not page.jsp...

as your faces-servlet is being loaded for all pages ending with .jsf
(see your servlet mapping *.jsf)

The null pointer exception comes from the faces-context not being available.

regards,

Martin

On 8/12/05, Delbrouck, Henri-Philippe
<[EMAIL PROTECTED]> wrote:
>  
> 
> Hi all, 
> 
> Could somebody help me. 
> 
> I use Tomcat 5.0.28 and MyFaces 1.0.9. I get the following error: 
> 
> java.lang.NullPointerException 
>         at
> javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:646)
>         at
> javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:254)
>         at
> org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:90)
>         at
> org.apache.jsp.index_005ftest_jsp._jspx_meth_f_view_0(index_005ftest_jsp.java:94)
>         at
> org.apache.jsp.index_005ftest_jsp._jspService(index_005ftest_jsp.java:72)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> 
> The web page is the following: 
> 
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%> 
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%> 
> 
> <f:view> 
> <h:form id="name_form"> 
>         <h:panelGrid id="paneol" columns="2"> 
>                 <h:outputText id="olut" value="enter name"/> 
>                 <h:inputText id="name_in" value="#{MyJsfBean.name}"
> required="true"/> 
>                 <h:outputText id="olut2" value="push button"/> 
>                 <h:commandButton id="show_alert_button"
> action="#{MyJsfBean.pushedButton}"  title="push me HD"/>                    
>                                                                             
>       
> 
>         </h:panelGrid> 
> </h:form> 
> </f:view> 
> 
> And my web.xml is the following: 
> 
>     <servlet> 
>         <servlet-name>Faces Servlet</servlet-name> 
>         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 
>         <load-on-startup>1</load-on-startup> 
>     </servlet> 
>         
>         <servlet-mapping> 
>         <servlet-name>Faces Servlet</servlet-name> 
>         <url-pattern>*.jsf</url-pattern> 
>     </servlet-mapping> 
> 
>     <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>   
> 
>    <filter> 
>         <filter-name>extensionsFilter</filter-name> 
>        
> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
>         <init-param> 
>                         <!-- Set the size limit for uploaded files. 
>                 Format: 10 - 10 bytes 
>                         10k - 10 KB 
>                         10m - 10 MB 
>                         1g - 1 GB --> 
>             <param-name>uploadMaxFileSize</param-name> 
>             <param-value>100m</param-value> 
>         </init-param> 
>         <init-param> 
>                         <!-- 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 --> 
>             <param-name>uploadThresholdSize</param-name> 
>             <param-value>100k</param-value> 
>   
>         </init-param> 
> <!--        <init-param> 
>             <param-name>uploadRepositoryPath</param-name> 
>             <param-value>/temp</param-value> 
>             <description>Set the path where the intermediary files will be
> stored. 
>             </description> 
>         </init-param>--> 
>     </filter> 
> 
> I try http://localhost/app/page.jsp 
> 
> Thank you very much for any help 
>  
> 
> Henri-Philippe Delbrouck 
>  


-- 

http://www.irian.at
Your JSF powerhouse - 
JSF Trainings in English and German

Reply via email to