Details

    • Story
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 2.5.0.Final
    • WebSphere -> EAP

    Description

      .tag files in WebSphere allow to use pageContext variable, however this is not allowed in JBoss EAP.

      A rule to identify this cases it will be good because in other case you need to test application to find this issues.

      If you try it then the next exception appears:
      16:05:47,113 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].
      [/drgo01].[jsp]] (http-localhost/127.0.0.1:8080-1) JBWEB000236: Servlet.service() for servlet
      jsp threw exception: org.apache.jasper.JasperException: JBWEB004062: Unable to compile
      class for JSP:
      JBWEB004060: An error occurred at line: 23 in the jsp file: /WEB­
      INF/tags/drdc01/autocomplete.tag
      pageContext cannot be resolved to a variable
      20:
      String noCacheOpt = noCache!
      =null?"noCache:".concat(noCache).concat(", "):"
      21:
      String onSearchErrorOpt = onSearchError!
      =null?"onSearchError:function(element, q, jqXHR, textStatus, errorThrown)

      {\n".concat(onSearchError).concat("\n}

      , "):"";
      22:
      23:
      HttpServletRequest req = (HttpServletRequest) ((PageContext)
      pageContext).getRequest();

      Attachments

        Issue Links

          Activity

            People

              jaeichle@redhat.com Janine Eichler
              rmarting@redhat.com Roman Martin Gil
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: