Uploaded image for project: 'PUBLIC - Liferay Social Office Community Edition'
  1. PUBLIC - Liferay Social Office Community Edition
  2. SOS-1026

On undeployment in Tomcat, so-hook still remains in the WEB-INF folder

    Details

    • Type: Regression Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2 CE GA1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Tomcat 7 + MySQL 5. Portal 6.1.x CE GIT ID: 9e7b4a2e15855ec18858d5e33816fdd2006d40f7.
      Plugins 6.1.x CE GIT ID: f263fabd4ec08d79c0535a1a40146ecf2bafafbc.
    • Fix Priority:
      2
    • Affects Portal Version/s:
      6.1.30 EE GA3, 6.1.20 EE GA2

      Description

      On undeployment, so-hook still remains in the WEB-INF folder.

      1. Deploy SO plugins.
      2. Go to Control Panel.
      3. Go to Update Manager.
      4. Uninstall each SO dependent plugin one by one, leave the so-hook for last.
      5. Uninstall so-hook.

      As the hook is undeploying, the console shows errors and when it is done, the so-hook folder still remains with some *.jars left in the lib folder. Also, if you assigned the role to a user, the so-portlet will remain as well. This appears to happen ONLY on Tomcat.

      Console errors:

      00:01:01,917 INFO  [DeployUtil:165] Undeploy E:\public\6.1.x-bundles\tomcat-7.0.25\webapps\so-hook
        Deleting directory E:\public\6.1.x-bundles\tomcat-7.0.25\webapps\so-hook
      Apr 19, 2012 12:01:07 AM org.apache.catalina.startup.HostConfig checkResources
      INFO: Undeploying context [/so-hook]
      00:01:07,159 INFO  [HotDeployEvent:95] Plugin so-hook requires contacts-portlet, events-display-portlet, microblogs-portlet, private-messaging-portlet, so-portlet, so-theme, tasks-portlet, wysiwyg-portlet
      00:01:07,160 INFO  [PluginPackageUtil:1026] Reading plugin package for so-hook
      00:01:09,110 INFO  [DeployUtil:190] Wait 0 ms to allow the plugin time to fully undeploy
      00:01:09,111 INFO  [HookHotDeployListener:1083] Hook for so-hook was unregistered
      Apr 19, 2012 12:01:09 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory E:\public\6.1.x-bundles\tomcat-7.0.25\webapps\so-hook
      Apr 19, 2012 12:01:09 AM org.apache.catalina.startup.ContextConfig webConfig
      SEVERE: Unable to determine URL for WEB-INF/classes
      javax.naming.NameNotFoundException: Resource /WEB-INF/classes not found
              at org.apache.naming.resources.BaseDirContext.listBindings(BaseDirContext.java:733)
              at org.apache.naming.resources.ProxyDirContext.listBindings(ProxyDirContext.java:546)
              at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1197)
              at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:825)
              at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:300)
              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.StandardContext.startInternal(StandardContext.java:5161)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:897)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:873)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              mandy.lee Mandy Lee (Inactive)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                6 years, 41 weeks ago

                  Packages

                  Version Package