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

Deploying OpenSocial portlet results in "No servlet context name specified" exception

    Details

      Description

      Steps to reproduce:

      1. Compile the opensocial-portlet and deploy to a Liferay instance

      Expected results:
      Console errors should not occur

      Actual results:
      Console errors occur. Additionally, the gadgets cannot be added with a valid gadget url.

      Console errors:

      23:06:33,057 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing opensocial-portlet-7.0.0.1.war
      23:06:33,061 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for L:\git\private\master-bundles\deploy\opensocial-portlet-7.0.0.1.war
      23:06:33,099 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:876] Deploying opensocial-portlet-7.0.0.1.war
        Expanding: L:\git\private\master-bundles\deploy\opensocial-portlet-7.0.0.1.war into L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304230633100
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304230633100\WEB-INF
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304230633100\WEB-INF\classes
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304230633100\WEB-INF\classes
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304230633100\WEB-INF\jsp
      23:06:33,982 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2421] Modifying Servlet 2.4 L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304230633100\WEB-INF\web.xml
        Copying 586 files to L:\git\private\master-bundles\tomcat-7.0.42\webapps\opensocial-portlet
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\webapps\opensocial-portlet
        Deleting directory L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304230633100
      23:06:34,629 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:91] Portlets for L:\git\private\master-bundles\deploy\opensocial-portlet-7.0.0.1.war copied successfully. Deployment will start in a few seconds.
      Mar 04, 2014 11:06:41 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory L:\git\private\master-bundles\tomcat-7.0.42\webapps\opensocial-portlet
      23:06:42,863 INFO  [localhost-startStop-3][HotDeployEvent:130] Plugin opensocial-portlet requires marketplace-portlet
      23:06:42,864 INFO  [localhost-startStop-3][HotDeployImpl:198] Deploying opensocial-portlet from queue
      23:06:42,865 INFO  [localhost-startStop-3][PluginPackageUtil:1015] Reading plugin package for opensocial-portlet
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/1-opensocial-portlet/WEB-INF/classes/portlet.properties
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/1-opensocial-portlet/WEB-INF/classes/service.properties
      23:06:42,999 INFO  [localhost-startStop-3][ServiceComponentLocalServiceImpl:313] Running OpenSocial SQL scripts
      23:06:43,045 WARN  [localhost-startStop-3][BaseDB:456] BLOB/TEXT column 'url' used in key specification without a key length: create unique index IX_A6A89EB1 on OpenSocial_Gadget (companyId, url);_ [Sanitized]
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/1-opensocial-portlet/WEB-INF/classes/portlet.properties
      Mar 04, 2014 11:06:43 PM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring root WebApplicationContext
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/1-opensocial-portlet/WEB-INF/classes/service.properties
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/1-opensocial-portlet/WEB-INF/classes/service.properties
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/1-opensocial-portlet/WEB-INF/classes/service.properties
      23:06:44,468 INFO  [localhost-startStop-3][HookHotDeployListener:687] Registering hook for opensocial-portlet
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/1-opensocial-portlet/WEB-INF/classes/portal.properties
      23:06:45,100 INFO  [localhost-startStop-3][HookHotDeployListener:814] Hook for opensocial-portlet is available for use
      23:06:45,104 INFO  [localhost-startStop-3][PortletHotDeployListener:344] Registering portlets for opensocial-portlet
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/1-opensocial-portlet/WEB-INF/classes/portlet.properties
      23:06:45,513 INFO  [localhost-startStop-3][PortletHotDeployListener:498] 4 portlets for opensocial-portlet are available for use
      23:06:45,553 ERROR [liferay/hot_deploy-1][SerialDestination:69] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={command=deploy, companyId=0, servletContextName=opensocial-portlet}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.IllegalStateException: No servlet context name specified
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:66)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.IllegalStateException: No servlet context name specified
              at com.liferay.portal.kernel.portlet.PortletClassLoaderUtil.getServletContextName(PortletClassLoaderUtil.java:55)
              at com.liferay.portal.kernel.portlet.PortletClassLoaderUtil.getClassLoader(PortletClassLoaderUtil.java:33)
              at com.liferay.opensocial.messaging.OpenSocialHotDeployMessageListener.onDeploy(OpenSocialHotDeployMessageListener.java:97)
              at com.liferay.portal.kernel.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:55)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 5 more
      

        Attachments

          Activity

            People

            Assignee:
            kenji.heigel Kenji Heigel
            Reporter:
            kenji.heigel Kenji Heigel
            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:
              7 years, 7 weeks, 2 days ago

                Packages

                Version Package
                6.1.X EE
                6.2.X EE
                7.0.0 M1