4 Replies Latest reply on Jun 7, 2008 7:58 AM by blinkybill

    Unable to compile class for JSP

    blinkybill

      Very basic issue likely here but cannae figure what is causing it - driving me crazy! Other basic RF stuff seems to be working fine but here seems to be throing up at the use of a basic facet tag????

      Getting the following when trying to simply render a page that looks fine within visual design view inside eclipse...


      org.apache.jasper.JasperException: Unable to compile class for JSP:
      
      An error occurred at line: 16 in the jsp file: /tables.jsp
      The method setName(String) in the type FacetTag is not applicable for the arguments (JspValueExpression)
      13:
      14: <rich:dataTable >
      15: <h:column>
      16: <f:facet name="header">
      17: <h:outputText value="City Name" />
      18: </f:facet>
      19: <h:outputText value="blah" />
      
      


        • 1. Re: Unable to compile class for JSP
          blinkybill

          And full source for the page is as follows (note its just a hack page to start playing with RF tables):

          <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
          <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
          <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
          <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
          
          <html>
          <head>
          <title>repeater</title>
          </head>
          <body>
           <f:view>
           <h:outputText value="Example #1. Simple Table" />
          
           <rich:dataTable >
           <h:column>
           <f:facet name="header">
           <h:outputText value="City Name" />
           </f:facet>
           <h:outputText value="blah" />
           </h:column>
           <h:column>
           <f:facet name="header">
           <h:outputText value="Meals" />
           </f:facet>
           <h:outputText value="25" />
           </h:column>
           <h:column>
           <f:facet name="header">
           <h:outputText value="Transport" />
           </f:facet>
           <h:outputText value="blah" />
           </h:column>
           </rich:dataTable>
           </f:view>
          </body>
          
          </html>
          


          Note: using eclipse 3.3.2 with RF 3.2.1 and JSF 1.2_04-b16-p02

          • 2. Re: Unable to compile class for JSP
            blinkybill

            also didn't mention using tomcat 6

            • 3. Re: Unable to compile class for JSP
              ilya_shaikovsky

              seems that some wrong libraries inside your web-inf/lib of the project. You want to tell that if you remove RF and just use h:dataTable on the page all works fine?

              • 4. Re: Unable to compile class for JSP
                blinkybill

                Thanks ilya - your suggestion got me on the right track - and found out the endorsed approach for jsf 1.2 is to have the jsf libs all in webinf/lib ie. never in the appserver lib. Changing to that fixed my problem