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

Hot deploy with Tomcat does not delete the entire app folder


    • Liferay Contributor's Agreement:
    • OS:
      CentOS 5, CentOS 6, CentOS 7, Debian 6.0, Debian 7, Debian 8, HP-UX 11i v3, IBM AIX 6.1, IBM AIX 7.1, iOS, Mac OS X 10.5, Mac OS X 10.6, Mac OS X 10.7, Mac OS X 10.8, Mac OS X 10.9, openSUSE 13.1, Oracle Linux 6, Oracle Linux 7, Red Hat Enterprise 5, Red Hat Enterprise 6, Red Hat Enterprise 7, Solaris 10, Solaris 11, SUSE Linux Enterprise 11, SUSE Linux Enterprise 12, Ubuntu 10, Ubuntu 11, Ubuntu 12, Ubuntu 13, Ubuntu LTS 14.04, Windows 7, Windows 8, Windows 10, Windows Server 2008, Windows Server 2012, Windows XP
    • JDK:
      Oracle Sun JDK 7, Oracle Sun JDK 8, Oracle OpenJDK 7, Oracle OpenJDK 8
    • Application Servers:
      Apache Tomcat 7.0


      When a WAR file is copied into Tomcat's webapps folder, it deletes the old application folder then explode the new WAR file in place.

      With Liferay Hot Deploy in Tomcat, the old application folder is reused, leaving old class files and other artifacts mixed with the new or replaced artifacts from the new WAR file. The side effect is particularly pronounced when a service portlet class file that must not exist in both the application WEB-INF/classes and the service jar in tomcat/lib/ext. For example, this hair-scratching exception:

      com.XYZ.integration.util.GenericParameterMap cannot be cast to




            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created:
                Days since last comment:
                10 weeks, 3 days ago


                Version Package