Hi
I am new to Infragistics and i have been trying to make infragistics work in my environment for quite a while.
Whichever tag i used, etc webtab or webmenu will all give me ClassCastException. here is the stack trace.
Environment:
JDK 1.4.2
JSF 1.1 (tried both 1.1, 1.1_0, and 1.0)
NetAdvantage for JSF 1.1.
Application Server: JBoss 4.0
Please help, any suggestion will be greately appreicated!
java.lang.ClassCastException at com.infragistics.faces.tab.taglib.html.TabViewTag.setProperties(TabViewTag.java:117) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:705) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:423) at org.apache.jsp.ghotel.login.GHotelHomePage_jsp._jspx_meth_ig_tabView_0(GHotelHomePage_jsp.java:190) at org.apache.jsp.ghotel.login.GHotelHomePage_jsp._jspService(GHotelHomePage_jsp.java:80) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.lanyon.ghotel.login.servlets.GHotelLoginServlet.doPost(GHotelLoginServlet.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.lanyon.common.serverobjects.UTF8EncodingFilter.doFilter(UTF8EncodingFilter.java:19) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:157) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:7 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)
yours
yak
Hi Yak:
This problem can be caused by issues with your JSF configuration or with the tags in your page. Let's start there.Could you please post your the source code for your JSP?
Thanks,Jim
Hi Jim
thanks for your reply. As i am testing the product, my jsp is fairly simple.
TestTab.inc
<code>
<%@ page contentType="text/html" language="java"%><%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%><%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%><%@ taglib prefix="ig" uri="http://ko.infragistics.com/faces/webtab"%><ig:tabView><ig:tabItem value="Main Features"> <f:verbatim escape="false"> This is the Main Features Tab </f:verbatim></ig:tabItem><ig:tabItem value="Disabled Tab" disabled="true"></ig:tabItem></ig:tabView>
</code>
Thanks!
Hi:
I'm a litte confused! You say that its working fine, but in your header you say your getting a class cast exception. If the latter is true could you please provide the stack trace for the exception? In general, this type of exception is caused by a mismatch between your JSF version and your NetAdvantage version. I'm not sure how to give you more specific information without a look at the trace. If you can share that with us, I'm sure I can offer a specific solution.
Hello,
I checked your provided code and it is working fine. Following is the complete JSP page:
----------test.jsp-----------------
<%@ page contentType="text/html" language="java"%><%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%><%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%><%@ taglib prefix="ig" uri="http://ko.infragistics.com/faces/webtab"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head></head><body> <f:view> <h:form><ig:tabView><ig:tabItem value="Main Features"> <f:verbatim escape="false"> This is the Main Features Tab </f:verbatim></ig:tabItem><ig:tabItem value="Disabled Tab" disabled="true">
</ig:tabItem></ig:tabView> </h:form> </f:view></body></html>
Is there some thing differet, I am not getting any error.
Thank you.