JSF data table error

I'm trying to test JSF code developed on NB 5.5 on Sun Application Server and getting strange error. Here is the full stack trace. I'd appreciate any input solving this problem:

[#|2007-06-23T09:46:44.594-0500|WARNING|sun-appserver-pe9.0|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=19;_ThreadName=httpWorkerThread-8090-1;_RequestID=bbef1a06-1fb0-4147-90bf-59b17a181837;|executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@1c5f1fb) threw exception

javax.faces.FacesException: javax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'chanName'.

at javax.faces.component.UIOutput.getValue(UIOutput.java:176)

at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:100)

at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:279)

at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:207)

at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)

at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:240)

at com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:309)

at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)

at javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)

at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)

at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)

at javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)

at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)

at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)

at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)

at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)

at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)

at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)

at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)

at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)

at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)

at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)

at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)

at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)

at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)

at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)

at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)

at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

Caused by: javax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'chanName'.

at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:561)

at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)

at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)

at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)

at com.sun.el.parser.AstValue.getValue(AstValue.java:117)

at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)

at javax.faces.component.UIOutput.getValue(UIOutput.java:173)

... 42 more

[5115 byte] By [tru1djf_dfa] at [2007-11-27 8:37:29]
# 1
It looks as if during expression evaluation in a JSP/facelet you have a string when you expect something else.
RaymondDeCampoa at 2007-7-12 20:34:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thank you for reply. I'd like to provide the JSF code. The "chanName" is

String. However it is the property of another class where "mqchan" is the iterator for.

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<html>

<f:view>

<f:loadBundle basename="com.mq.pcf.browser.messages" var="msgs"/>

<head>

<link href="styles.css" rel="stylesheet" type="text/css"/>

<title><h:outputText value="#{msgs.mqBrowserWindowTitle}"/></title>

</head>

<body>

<jsp:include page="mqHeader.jsp"/>

<h:form>

<h:dataTable value="#mqresource.businessChannels" var="mqchan">

<h:column>

<f:facet name="header">

<h:outputText value="#{msgs.chanNameColHeader}"/>

</f:facet>

<h:outputText value="#{mqchan.chanName}"/>

</h:column>

</h:dataTable>

</h:form>

</body>

</f:view>

</html>

tru1djf_dfa at 2007-7-12 20:34:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
You are missing the braces in the value attribute for the dataTable tag.
RaymondDeCampoa at 2007-7-12 20:34:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I think you are right. Unfortunatly the code is home and I'm at work so tonight I'll give it shot. If it works the duke prize goes to you and I'll let you know. In meantime thanks a lot.
tru1djf_dfa at 2007-7-12 20:34:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...