You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/03/21 09:19:13 UTC

DO NOT REPLY [Bug 41912] New: - JSF datatable does not work on tomcat 6.0.9

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41912>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41912

           Summary: JSF datatable does not work on tomcat 6.0.9
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: anneke.jansenvandevrie@oce.com


In a page we want to use the jsf element 'dataTable' as follows:



<h:dataTable id="mylist" value="#{listBean.testList}" var="listitem">

   <f:facet name="header"><h:outputText value="Name"/></f:facet>

   <h:column><h:outputText value="#{listitem}"/></h:column>

</h:dataTable>



The testlist is a simple list of strings. 

We are using Tomcat 6 and Sun RI jsf 1.2 implementation. 

On Glassfish it works fine, but with Tomcat 6 I get the following error:



An error occurred at line: 33 in the jsp file: /Page2.jsp The method

setVar(String) in the type DataTableTag is not applicable for the arguments
(JspValueExpression) ...



Stacktrace:

        at

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa

ndler.java:85)

        at

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja

va:330)

        at

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:41

5)

        at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)

        at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)

        at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

        at

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja

va:566)

        at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja

va:308)

        at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)

        at

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

        at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica

tionFilterChain.java:290)

        at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt

erChain.java:206)

        at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc

her.java:687)

        at

org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio

nDispatcher.java:469)

        at

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp

atcher.java:403)

        at

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat

cher.java:301)

        at

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.j

ava:414)

        at

com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHan

dlerImpl.java:455)

        at

com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.jav

a:139)

        at

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.

java:108)

        at

com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)

        at

com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)

        at

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

        at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica

tionFilterChain.java:290)

        at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt

erChain.java:206)

        at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv

e.java:228)

        at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv

e.java:175)

        at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java

:128)

        at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java

:104)

        at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517

)

        at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.

java:109)

        at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2

12)

        at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84

4)

        at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

Http11Protocol.java:634)

        at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)

        at java.lang.Thread.run(Thread.java:595)



Greetings,



Anneke Jansen

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41912] - JSF datatable does not work on tomcat 6.0.9

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41912>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41912





------- Additional Comments From shivahr@gmail.com  2007-05-11 09:28 -------
Created an attachment (id=20180)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20180&action=view)
A simple JSF application that uses <h:dataTable> component

Deleted following required files from WEB-INF/lib directory of WAR (to reduce
size of attachment):
    * com-sun-commons-beanutils.jar
    * com-sun-commons-collections.jar
    * com-sun-commons-digester.jar
    * jsf-api.jar
    * jsf-impl.jar

Please download them as per the instructions at
http://docs.codehaus.org/display/JETTY/JSF+Reference+Implementation and put
them inside WEB-INF/lib directory of WAR before deploying it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41912] - JSF datatable does not work on tomcat 6.0.9

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41912>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41912





------- Additional Comments From anneke.jansenvandevrie@oce.com  2007-07-12 00:21 -------
(In reply to comment #3)
> Created an attachment (id=20180)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20180&action=view) [edit]
> A simple JSF application that uses <h:dataTable> component
> 
> Deleted following required files from WEB-INF/lib directory of WAR (to reduce
> size of attachment):
>     * com-sun-commons-beanutils.jar
>     * com-sun-commons-collections.jar
>     * com-sun-commons-digester.jar
>     * jsf-api.jar
>     * jsf-impl.jar
> 
> Please download them as per the instructions at
> http://docs.codehaus.org/display/JETTY/JSF+Reference+Implementation and put
> them inside WEB-INF/lib directory of WAR before deploying it.

I downloaded your zip-file and used the jsf libraries I had installed already
for my own application. I get the same error again. 
Today I retrieved an e-mail on the Tomcat users mailing list in which someone
mentioned they had the same problem, but a newer version of JSF solved the
problem. I tried this also for your test web application and now it works fine.
 So it was not a Tomcat problem at all.

Greetings, 
Anneke 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41912] - JSF datatable does not work on tomcat 6.0.9

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41912>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41912





------- Additional Comments From shivahr@gmail.com  2007-05-11 09:06 -------
WAR that I want to attach has JSF and its dependent jars in WEB-INF/lib
directory and has a size of 1.63MB after zipping. And Bugzilla isn't allowing me
to attach non-patch attachments of size more than 1000K. Thinking of an
alternative now.

- Shiva

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41912] - JSF datatable does not work on tomcat 6.0.9

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41912>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41912


shivahr@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From shivahr@gmail.com  2007-05-11 08:46 -------
Tried this on Windows-XP, but couldn't reproduce the problem. Attached is a
working WAR that uses JSF <h:dataTable> component.

On latest trunk build (tc6.0.x), you can simply deploy the WAR by copying it
into "webapps" directory or by using "manager" web application. 

However on Tomcat 6.0.9 and Tomcat 6.0.10 deploying the attached WAR using
"manager" web application or by copying it into "webapps" directory is throwing
some class-path errors (which looks to be fixed in trunk tc6.0.x). Use the
following workaround for deploying on 6.0.9/6.0.10:

i) Unzip the war to say "C:\TestJSF"

ii) Create a "C:\Deploy_TestJSF.xml" with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="C:\TestJSF" path="/TestJSF"/>

iii) Start Tomcat and from within a browser run this URL:
http://localhost:8080/manager/deploy?path=/TestJSF&config=file:/C:/Deploy_TestJSF.xml
     Look for following message getting displayed:
OK - Deployed application at context path /TestJSF

iv) Run the JSF application with URL http://localhost:8080/TestJSF/ and click on
hyperlink "JavaServer Faces Page". You will observe JSF page displaying two names.

Please test this WAR on Linux and let know if problem still persists.

- Shiva

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org