Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-120844

Upgrade default tomcat version to 8.5.57 causes compile error

    Details

      Description

      Steps to reproduce:

      1. Update tomcat to version 8.5.57
      2. Run ant all

      Expected result:
      Liferay portal is successfully compile without error.

      Actual result:

      [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:35: error: package org.apache.catalina.comet does not exist
          [javac] import org.apache.catalina.comet.CometEvent;
          [javac]                                 ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:36: error: package org.apache.catalina.comet does not exist
          [javac] import org.apache.catalina.comet.CometProcessor;
          [javac]                                 ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:43: error: cannot find symbol
          [javac] 	extends HttpServlet implements CometProcessor {
          [javac] 	                               ^
          [javac]   symbol: class CometProcessor
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:55: error: cannot find symbol
          [javac] 	public void event(CometEvent cometEvent) throws ServletException {
          [javac] 	                  ^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometProcessor
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:85: error: cannot find symbol
          [javac] 			CometEvent cometEvent, HttpServletRequest request,
          [javac] 			^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometProcessor
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:100: error: cannot find symbol
          [javac] 	protected void doEvent(CometEvent cometEvent) throws Exception {
          [javac] 	                       ^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometProcessor
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:130: error: cannot find symbol
          [javac] 			CometEvent cometEvent, HttpServletRequest request,
          [javac] 			^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometProcessor
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:169: error: cannot find symbol
          [javac] 			CometEvent cometEvent, HttpServletRequest request,
          [javac] 			^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometProcessor
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometRequest.java:24: error: package org.apache.catalina.comet does not exist
          [javac] import org.apache.catalina.comet.CometEvent;
          [javac]                                 ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometRequest.java:32: error: cannot find symbol
          [javac] 	public CatalinaCometRequest(CometEvent cometEvent) {
          [javac] 	                            ^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometRequest
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometResponse.java:26: error: package org.apache.catalina.comet does not exist
          [javac] import org.apache.catalina.comet.CometEvent;
          [javac]                                 ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometResponse.java:34: error: cannot find symbol
          [javac] 	public CatalinaCometResponse(CometEvent cometEvent) {
          [javac] 	                             ^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometResponse
          [javac] Compiling 91 source files to /Users/koor/dev/7.0.x-portal/portal-test/classes
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometSession.java:25: error: package org.apache.catalina.comet does not exist
          [javac] import org.apache.catalina.comet.CometEvent;
          [javac]                                 ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometSession.java:33: error: cannot find symbol
          [javac] 	public CatalinaCometSession(CometEvent cometEvent) {
          [javac] 	                            ^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometSession
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometSession.java:67: error: cannot find symbol
          [javac] 	private final CometEvent _cometEvent;
          [javac] 	              ^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometSession
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometSessionUtil.java:21: error: package org.apache.catalina.comet does not exist
          [javac] import org.apache.catalina.comet.CometEvent;
          [javac]                                 ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometSessionUtil.java:28: error: cannot find symbol
          [javac] 	public static String getSessionId(CometEvent cometEvent) {
          [javac] 	                                  ^
          [javac]   symbol:   class CometEvent
          [javac]   location: class CatalinaCometSessionUtil
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:54: error: method does not override or implement a method from a supertype
          [javac] 	@Override
          [javac] 	^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:101: error: package CometEvent does not exist
          [javac] 		CometEvent.EventType eventType = cometEvent.getEventType();
          [javac] 		          ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:111: error: package CometEvent does not exist
          [javac] 		if (eventType.equals(CometEvent.EventType.BEGIN)) {
          [javac] 		                               ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:114: error: package CometEvent does not exist
          [javac] 		else if (eventType.equals(CometEvent.EventType.END) ||
          [javac] 		                                    ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:115: error: package CometEvent does not exist
          [javac] 				 eventType.equals(CometEvent.EventType.ERROR)) {
          [javac] 				                            ^
          [javac] /Users/koor/dev/7.0.x-portal/support-tomcat/src/com/liferay/support/tomcat/poller/comet/CatalinaCometProcessor.java:124: error: package CometEvent does not exist
          [javac] 		else if (eventType.equals(CometEvent.EventType.READ)) {
          [javac] 		                                    ^
          [javac] 23 errors
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              victor.ware Victor Ware
              Reporter:
              koor.gai Koor Gai
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Engineering Assignee:
              Minhchau Dang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                10 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP97
                  7.0.X