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

Marketplace: Undeploying cas-web portlet causes SEVERE exception

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Install the cas-web portlet
      2. Uninstall cas-web portlet
      3. Assert the console exception:
        8:38:28,455 INFO  [http-bio-8080-exec-5][DeployUtil:117] Undeploy /root/Desktop/liferay-portal-6.2.0-ce-rc2/tomcat-7.0.40/webapps/cas-web
          Deleting directory /root/Desktop/liferay-portal-6.2.0-ce-rc2/tomcat-7.0.40/webapps/cas-web
        18:38:28,469 INFO  [http-bio-8080-exec-5][DeployUtil:117] Wait 0 ms to allow the plugin time to fully undeploy
        Sep 26, 2013 6:38:35 PM org.apache.catalina.startup.HostConfig deleteRedeployResources
        INFO: Undeploying context [/cas-web]
        Sep 26, 2013 6:38:35 PM org.apache.catalina.core.ApplicationContext log
        INFO: Shutting down log4j
        Sep 26, 2013 6:38:35 PM org.apache.catalina.core.StandardContext listenerStop
        SEVERE: Exception sending context destroyed event to listener instance of class com.liferay.portal.kernel.servlet.SecurePluginContextListener
        java.lang.NoClassDefFoundError: org/apache/log4j/helpers/NullEnumeration
        	at org.apache.log4j.Category.getAllAppenders(Category.java:413)
        	at org.apache.log4j.Category.closeNestedAppenders(Category.java:226)
        	at org.apache.log4j.Hierarchy.shutdown(Hierarchy.java:448)
        	at org.apache.log4j.LogManager.shutdown(LogManager.java:238)
        	at org.springframework.util.Log4jConfigurer.shutdownLogging(Log4jConfigurer.java:117)
        	at org.springframework.web.util.Log4jWebConfigurer.shutdownLogging(Log4jWebConfigurer.java:170)
        	at org.springframework.web.util.Log4jConfigListener.contextDestroyed(Log4jConfigListener.java:51)
        	at com.liferay.portal.kernel.servlet.SecurePluginContextListener.fireUndeployEvent(SecurePluginContextListener.java:276)
        	at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalDestroy(PluginContextListener.java:132)
        	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalDestroy(BasePortalLifecycle.java:31)
        	at com.liferay.portal.kernel.servlet.PluginContextListener.contextDestroyed(PluginContextListener.java:97)
        	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927)
        	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573)
        	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
        	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1028)
        	at org.apache.catalina.startup.HostConfig.deleteRedeployResources(HostConfig.java:1300)
        	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1251)
        	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1440)
        	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:301)
        	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
        	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
        	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
        	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
        	at java.lang.Thread.run(Thread.java:722)
        Caused by: java.lang.ClassNotFoundException: org.apache.log4j.helpers.NullEnumeration
        	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
        	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
        	... 26 more
        
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-0] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
        Sep 26, 2013 6:38:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/cas-web] appears to have started a thread named [scheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
        2013-09-26 18:38:54,018 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
        2013-09-26 18:38:54,018 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.>
        2013-09-26 18:40:54,026 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
        2013-09-26 18:40:54,026 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.>
        2013-09-26 18:42:54,022 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
        2013-09-26 18:42:54,023 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.>
        Sep 26, 2013 6:44:54 PM org.apache.catalina.loader.WebappClassLoader loadClass
        INFO: Illegal access: this web application instance has been stopped already.  Could not load sun.reflect.MethodAccessorImpl.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
        java.lang.IllegalStateException
        	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)
        	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
        	at sun.misc.Unsafe.defineClass(Native Method)
        	at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
        	at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
        	at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396)
        	at java.security.AccessController.doPrivileged(Native Method)
        	at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395)
        	at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:77)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:46)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:601)
        	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:840)
        	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
        	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
        	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:63)
        	at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:81)
        	at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
        
        2013-09-26 18:44:54,027 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
        2013-09-26 18:44:54,028 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.>
        2013-09-26 18:46:54,015 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
        2013-09-26 18:46:54,016 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.>
        2013-09-26 18:48:54,015 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
        2013-09-26 18:48:54,016 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.>
        2013-09-26 18:50:54,019 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
        2013-09-26 18:50:54,020 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.>
        

      Expected result:
      No exception when undeploying cas-web.

      Actual result:
      Undeploying cas-web throw severe exceptions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                koor.gai Koor Gai
                Reporter:
                koor.gai Koor Gai
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 47 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.0 CE RC1
                  6.2.0 CE RC2