6 Replies Latest reply on Oct 16, 2012 1:35 PM by Stan Silvert

    JBossAS 7.1, jsp and jsf 1.1: problems compiling jsp pages

    Nicola Borsetto Newbie

      Hello,

      i have a web application that uses jsf 1.1 and rich-faces 3.1.6.

      The pages are jsp pages.

      The web.xml contains the tag:

          

      <context-param>

              <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

              <param-value>true</param-value>

          </context-param>

       

      and in web-inf\lib

      i have added all jars necessary for jsf 1.1. and rich-faces 3.16

       

       

      JBoss 7.1 deploys the application without error, but when i call a jsp page from the application  i got the following error:

      The method setWidth(String) in the type PanelGridTag is not applicable for the arguments (JspValueExpression)

      ....

      ....

      <h:panelGrid width="100%" style="text-align:center;">

      The method setWidth(String) in the type PanelGridTag is not applicable for the arguments (JspValueExpression)

      <h:panelGrid width="100%" style="text-align:center;">

       

      Stacktrace:

          at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:446) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:362) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:650) [jbossweb-7.0.13.Final.jar:]

          at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:644) [jbossweb-7.0.13.Final.jar:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_30]

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_30]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_30]

          at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_30]

          at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:129) [struts-tiles-1.3.8.jar:1.3.8]

          at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:152) [struts-tiles-1.3.8.jar:1.3.8]

          at org.apache.struts.tiles.taglib.InsertTag.doInclude(InsertTag.java:764) [struts-tiles-1.3.8.jar:1.3.8]

          at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:896) [struts-tiles-1.3.8.jar:1.3.8]

          at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465) [struts-tiles-1.3.8.jar:1.3.8]

          at org.apache.jsp.tiles.standardTemplate_jsp._jspx_meth_tiles_005finsert_005f4(standardTemplate_jsp.java:460)

          at org.apache.jsp.tiles.standardTemplate_jsp._jspx_meth_f_005fview_005f0(standardTemplate_jsp.java:284)

          at org.apache.jsp.tiles.standardTemplate_jsp._jspService(standardTemplate_jsp.java:83)

          ... 81 more

       

       

      It seems that the servet from jsp page are created usign jsf1.1 but when compiling JBoss uses jsf2.x.

      Any ideas?

       

      Thank you very much.