3 Replies Latest reply on Dec 13, 2008 4:26 PM by Rogerio Baldini

    Problem in compiling JSP on jBoss 5.0.0.GA - it works on 4.2

    Rogerio Baldini Newbie

      Hi Guys,

      I am receiving this message when trying to compile a JSP on jBoss 5.0.0.GA:

      An error occurred at line: 77 in the jsp file: /plc/layouts/sistema/PlcMenuItemLayout.jsp
      The operator + is undefined for the argument type(s) java.lang.Object, java.lang.Object
      74: <c:when test="${fn:startsWith(item.link,'/') or fn:startsWith(item.link,'http') or fn:startsWith(item.link,'.')}">
      75: <c:set var="linkAjustado" value="${item.link}"/>
      76: <c:if test="${not fn:startsWith(item.link,'http') and not fn:startsWith(item.link,'.')}">
      77: <c:set var="linkAjustado" value="${pageContext.request.contextPath}${item.link}"/>
      78: </c:if>
      79: <c:choose>

      I have checked source code generated by jBoss 5 and there is some thing strange:

      _jspx_th_c_005fset_005f6.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${pageContext.request.contextPath}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false) + (java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.link}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));

      The error refers to this "+" operator between two objects...

      I have also checked source code generated by jBoss 4.2 and it is fine:

      _jspx_th_c_005fset_005f6.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.p
      roprietaryEvaluate("${pageContext.request.contextPath}${item.link}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));

      Is it a bug on jBoss 5 or could be configured ???

      Thanks a lot