myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ldr <christ...@niro-it.dk>
Subject horizontal navigation
Date Mon, 17 Jul 2006 09:25:26 GMT

Hi all, Im getting the following error when implementing horizontal
panelnavigation:

ERROR:
11:19:59,878 ERROR [UIComponentTag] Faces context not found.
getResponseWriter will fail. Check if the FacesServlet has been initialized
at all in your web.xml.
11:19:59,898 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
	at
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
	at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
	at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
	at org.apache.jsp.hnavigation_jsp._jspService(hnavigation_jsp.java:83)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
	at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
	at java.lang.Thread.run(Thread.java:595)


When I access another page in my webapp there is no error and the faces
servlet runs  fine....??? below u see implementation of the
panelnavigation... I have done it very simple.


IMPLEMENTATION:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
<%@ taglib uri="http://myfaces.apache.org/adf/faces" prefix="af"%>
					
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	
	<link rel="stylesheet" href="resources/stylesheets/niro_css.css"
type="text/css">
 	<link rel="stylesheet" href="resources/stylesheets/datatable.css"
type="text/css">
 	<script LANGUAGE="JavaScript"
SRC="resources/javascript/niro_js_functions.js"></script>

</head>
  
<body>
<f:view>

<t:div id="hNav_outer">  
        <t:panelNavigation2 id="nav1" layout="list" itemClass="off"
activeItemClass="on" openItemClass="on" renderAll="true">
            <t:commandNavigation2 value="MenuTop"/>
            <t:commandNavigation2 value="Item6"/>
        </t:panelNavigation2>
    </t:div>

</f:view>
</body>
</html>

MyFaces api, impl, tomahawk, sandbox - 1.1.3 

chris
-- 
View this message in context: http://www.nabble.com/horizontal-navigation-tf1953702.html#a5357932
Sent from the MyFaces - Users forum at Nabble.com.


Mime
View raw message