Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3743

EL functions defined in modules are not accessible when used in portlets

    XMLWordPrintable

    Details

      Description

      From Tomcat 6.0.30 onwards, the Catalina class loader replaces the OpenmrsClassLoader before JSP files are processed. This was leading to ClassNotFoundExceptions and was fixed in TRUNK-2272. However this did not fix it for EL functions used in portlets in OpenMRS 1.6.x and 1.7.x

      Fixing requires adding additional <dispatcher> tags in web.xml

      <filter-mapping>
      <filter-name>jspClassLoader</filter-name>
      <url-pattern>*.jsp</url-pattern>
      <dispatcher>FORWARD</dispatcher>
      + <dispatcher>ERROR</dispatcher>
      + <dispatcher>REQUEST</dispatcher>
      + <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>

      In OpenMRS 1.8.x+ this fix is not required as these later versions use Servlet API 2.5 which doesn't appear to read these tags.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rowanseymour Rowan Seymour
                Reporter:
                rowanseymour Rowan Seymour
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: