You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Hasnain Badami <ha...@gmail.com> on 2006/02/07 16:29:25 UTC
java.lang.NoSuchmethodError when putting t:panelTabbedPane component into the jsp page
Hi
I am encountering a java.lang.NoSuchMethodError when trying to run the
following code
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<f:view>
<f:loadBundle basename="com.prytania.resource.Messages" var="messages"/>
<html>
<head>
<title><h:outputText value="#{messages['title']}"/></title>
<t:stylesheet path="/report.css"/>
</head>
<body>
<t:panelTabbedPane selectedIndex="#{TabSupport.selectedTabIndex}" width=
"100%">
<t:panelTab label="#{messages['portfolio_summary']}">
<f:subview id="tabportfoliosummary" rendered="#{
TabSupport.portfolioSummaryTabSelected}">
<jsp:include page="portfoliosummary.jsp" />
</f:subview>
</t:panelTab>
</t:panelTabbedPane>
</body>
<html>
</f:view>
*If I remove the t:panelTabbedPane everything works smooth but if the
component is on the page it throws the following exception*
15:27:18,262 ERROR [[faces]] Servlet.service() for servlet faces threw
exception
java.lang.NoSuchMethodError:
org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType
(Ljava/lang/String;)Ljava/lang/String;
at org.apache.myfaces.component.html.util.AddResource.writeWithFullHeader(*
AddResource.java:443*)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(*
ExtensionsFilter.java:132*)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(*
ApplicationFilterChain.java:202*)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
ApplicationFilterChain.java:173*)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(*
ReplyHeaderFilter.java:81*)
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.CustomPrincipalValve.invoke(*
CustomPrincipalValve.java:39*)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(*
SecurityAssociationValve.java:159*)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(*
JaccContextValve.java:59*)
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
:856*)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(*Http11Protocol.java:744*)
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*)
*Following is the content of portfoliosummary.jsp*
<%@ 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"%>
<f:verbatim>
<br/><br/>
</f:verbatim>
*I am using the
myfaces-1.1.1.zip<http://www.mirror.ac.uk/mirror/ftp.apache.org/myfaces/binaries/myfaces-1.1.1.zip>binary
distribution available at
http://myfaces.apache.org/binary.cgi. I think there is some problem in the
distribution, but am not sure. Any help shall be highly appreciated.*