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

Errors occur when deploying the mongodb-hook

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Compile mongodb-hook and deploy to a Liferay instance

      Expected results:
      The portlet should deploy without errors.

      Actual results:
      Errors occur upon deploying.

      Console errors:

      17:32:03,035 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing mongodb-hook-7.0.0.1.war
      17:32:03,037 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][HookAutoDeployListener:50] Copying hook plugin for L:\git\private\master-bundles\deploy\mongodb-hook-7.0.0.1.war
      17:32:03,057 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:876] Deploying mongodb-hook-7.0.0.1.war
        Expanding: L:\git\private\master-bundles\deploy\mongodb-hook-7.0.0.1.war into L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304173203058
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304173203058\WEB-INF
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304173203058\WEB-INF\classes
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304173203058\WEB-INF\classes
      17:32:03,176 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2421] Modifying Servlet 2.4 L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304173203058\WEB-INF\web.xml
        Copying 54 files to L:\git\private\master-bundles\tomcat-7.0.42\webapps\mongodb-hook
        Copying 1 file to L:\git\private\master-bundles\tomcat-7.0.42\webapps\mongodb-hook
        Deleting directory L:\git\private\master-bundles\tomcat-7.0.42\temp\20140304173203058
      17:32:03,248 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][HookAutoDeployListener:56] Hook for L:\git\private\master-bundles\deploy\mongodb-hook-7.0.0.1.war copied successfully. Deployment will start in a few seconds.
      Mar 04, 2014 5:32:09 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory L:\git\private\master-bundles\tomcat-7.0.42\webapps\mongodb-hook
      17:32:09,970 INFO  [localhost-startStop-4][HotDeployEvent:130] Plugin mongodb-hook requires marketplace-portlet
      17:32:09,971 INFO  [localhost-startStop-4][HotDeployImpl:198] Deploying mongodb-hook from queue
      17:32:09,972 INFO  [localhost-startStop-4][PluginPackageUtil:1015] Reading plugin package for mongodb-hook
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/2-mongodb-hook/WEB-INF/classes/portlet.properties
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/2-mongodb-hook/WEB-INF/classes/portlet.properties
      Mar 04, 2014 5:32:10 PM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring root WebApplicationContext
      17:32:10,118 INFO  [localhost-startStop-4][HookHotDeployListener:687] Registering hook for mongodb-hook
      Loading file:/L:/git/private/master-bundles/tomcat-7.0.42/temp/2-mongodb-hook/WEB-INF/classes/portal.properties
      17:32:11,253 ERROR [localhost-startStop-4][MongoDBUtil:77] com.mongodb.MongoInternalException: can't find a master
      com.mongodb.MongoInternalException: can't find a master
              at com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:327)
              at com.mongodb.Mongo.<init>(Mongo.java:215)
              at com.liferay.mongodb.util.MongoDBUtil.<init>(MongoDBUtil.java:74)
              at com.liferay.mongodb.util.MongoDBUtil.<clinit>(MongoDBUtil.java:170)
              at com.liferay.mongodb.hook.events.StartupAction.doRun(StartupAction.java:43)
              at com.liferay.mongodb.hook.events.StartupAction.run(StartupAction.java:32)
              at com.liferay.portal.kernel.events.InvokerSimpleAction.run(InvokerSimpleAction.java:42)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.initEvent(HookHotDeployListener.java:1322)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.initEvents(HookHotDeployListener.java:1385)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1705)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:698)
              at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:305)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:206)
              at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
              at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
              at com.liferay.portal.kernel.servlet.SecurePluginContextListener.contextInitialized(SecurePluginContextListener.java:151)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:722)
      17:32:11,340 INFO  [localhost-startStop-4][HookHotDeployListener:814] Hook for mongodb-hook is available for use
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 22 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 M3