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

"Unable to locate a valid EngineConfigurationFactory" error when restarting portal with an Axis-dependant deployed plugin

    Details

      Description

      Steps to reproduce:

      1. Startup Portal
      2. Deploy Knowledge Base from -plugins/portlets/knowledge-base-portlet
      3. Assert that Knowledge Base is deployed and usable.
      4. Restart Portal and Navigate to Content > Knowledge Base

      Expected result: Knowledge Base is still deployed and usable.
      Actual result: KB is not under Content (KB is undeployed) and there are console errors:

      0:26:30,698 ERROR [fileinstall-L:/public/master-bundles/osgi/configs][com_liferay_portal_osgi_web_wab_extender:96] Catastrophic initialization failure! Shutting down knowledge-base-portlet WAB due to: java.lang.NullPointerExce
      avax.servlet.ServletException: java.lang.NullPointerException
             at com.liferay.util.axis.AxisServlet.init(AxisServlet.java:174)
             at com.liferay.portal.servlet.AxisServlet.init(AxisServlet.java:49)
             at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletExceptionAdapter.init(ServletExceptionAdapter.java:56)
             at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.init(EndpointRegistration.java:95)
             at org.eclipse.equinox.http.servlet.internal.context.ContextController.doAddServletRegistration(ContextController.java:561)
             at org.eclipse.equinox.http.servlet.internal.context.ContextController.addServletRegistration(ContextController.java:447)
             at org.eclipse.equinox.http.servlet.internal.customizer.ContextServletTrackerCustomizer.addingService(ContextServletTrackerCustomizer.java:55)
             at org.eclipse.equinox.http.servlet.internal.customizer.ContextServletTrackerCustomizer.addingService(ContextServletTrackerCustomizer.java:1)
             at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
             at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
             at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
             at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
             at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
             at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
             at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:917)
             at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
             at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
             at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
             at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
             at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
             at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
             at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
             at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
             at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1001)
             at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.initServlets(WabBundleProcessor.java:593)
             at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.init(WabBundleProcessor.java:186)
             at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:85)
             at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:196)
             at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
             at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
             at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
             at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:1)
             at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
             at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
             at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
             at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
             at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
             at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)
             at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)
             at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)
             at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)
             at org.eclipse.osgi.container.Module.publishEvent(Module.java:461)
             at org.eclipse.osgi.container.Module.start(Module.java:452)
             at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
             at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1252)
             at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1224)
             at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
             at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
             at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313)
      aused by: java.lang.NullPointerException
             at org.apache.axis.transport.http.AxisServletBase.getEngineEnvironment(AxisServletBase.java:273)
             at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:172)
             at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
             at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
             at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
             at javax.servlet.GenericServlet.init(GenericServlet.java:158)
             at com.liferay.util.axis.AxisServlet.doInit(AxisServlet.java:245)
             at com.liferay.util.axis.AxisServlet$InitThread.run(AxisServlet.java:340)
      oading bundleresource://183.fwk679334155/portlet.properties
      0:26:30,823 INFO  [fileinstall-L:/public/master-bundles/osgi/configs][PortletHotDeployListener:463] Unregistering portlets for knowledge-base-portlet
      0:26:30,838 INFO  [fileinstall-L:/public/master-bundles/osgi/configs][PortletHotDeployListener:502] 0 portlets for knowledge-base-portlet were unregistered
      0:26:30,932 INFO  [fileinstall-L:/public/master-bundles/osgi/configs][HookHotDeployListener:601] Hook for knowledge-base-portlet was unregistered
      2-Mar-2016 20:26:30.932 INFO [fileinstall-L:/public/master-bundles/osgi/configs] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
      0:26:31,010 INFO  [fileinstall-L:/public/master-bundles/osgi/configs][PluginPackageUtil:1007] Reading plugin package for knowledge-base-portlet
      oading bundleresource://191.fwk679334155/portlet.properties
      0:26:31,325 INFO  [fileinstall-L:/public/master-bundles/osgi/configs][HotDeployImpl:224] Deploying user-theme from queue
      0:26:31,325 INFO  [fileinstall-L:/public/master-bundles/osgi/configs][PluginPackageUtil:1007] Reading plugin package for user-theme
      2-Mar-2016 20:26:31.372 INFO [fileinstall-L:/public/master-bundles/osgi/configs] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
      0:26:31,372 INFO  [fileinstall-L:/public/master-bundles/osgi/configs][ThemeHotDeployListener:94] Registering themes for user-theme
      0:26:31,497 INFO  [fileinstall-L:/public/master-bundles/osgi/configs][ThemeHotDeployListener:114] 2 themes for user-theme are available for use
      oading bundleresource://198.fwk679334155/portlet.properties
      oading bundleresource://226.fwk679334155/portlet.properties
      oading bundleresource://254.fwk679334155/portlet.properties
      oading bundleresource://277.fwk679334155/portlet.properties
      oading bundleresource://319.fwk679334155/portlet.properties
      oading bundleresource://342.fwk679334155/portlet.properties
      oading bundleresource://354.fwk679334155/portlet.properties
      oading bundleresource://380.fwk679334155/portlet.properties
      oading bundleresource://382.fwk679334155/portlet.properties
      oading bundleresource://388.fwk679334155/portlet.properties
      oading bundleresource://401.fwk679334155/portlet.properties
      oading bundleresource://403.fwk679334155/portlet.properties
      oading bundleresource://457.fwk679334155/portlet.properties
      oading bundleresource://131.fwk679334155/portlet.properties
      oading bundleresource://284.fwk679334155/portlet.properties
      oading bundleresource://132.fwk679334155/portlet.properties
      oading bundleresource://399.fwk679334155/portlet.properties
      oading bundleresource://364.fwk679334155/portlet.properties
      oading bundleresource://398.fwk679334155/portlet.properties
      oading bundleresource://324.fwk679334155/portlet.properties
      oading bundleresource://436.fwk679334155/portlet.properties
      oading bundleresource://119.fwk679334155/portlet.properties
      oading bundleresource://124.fwk679334155/portlet.properties
      Loading bundleresource://306.fwk679334155/portlet.properties
      Loading bundleresource://330.fwk679334155/portlet.properties
      Loading bundleresource://369.fwk679334155/portlet.properties
      Loading bundleresource://394.fwk679334155/portlet.properties
      Loading bundleresource://412.fwk679334155/portlet.properties
      Loading bundleresource://345.fwk679334155/portlet.properties
      Loading bundleresource://187.fwk679334155/portlet.properties
      Loading bundleresource://423.fwk679334155/portlet.properties
      Loading bundleresource://365.fwk679334155/portlet.properties
      Loading bundleresource://210.fwk679334155/portlet.properties
      Loading bundleresource://262.fwk679334155/portlet.properties
      Loading bundleresource://363.fwk679334155/portlet.properties
      Loading bundleresource://442.fwk679334155/portlet.properties
      Loading bundleresource://265.fwk679334155/portlet.properties
      Loading bundleresource://201.fwk679334155/portlet.properties
      Loading bundleresource://264.fwk679334155/portlet.properties
      Loading bundleresource://204.fwk679334155/portlet.properties
      Loading bundleresource://294.fwk679334155/portlet.properties
      Loading bundleresource://152.fwk679334155/portlet.properties
      Loading bundleresource://413.fwk679334155/portlet.properties
      Loading bundleresource://451.fwk679334155/portlet.properties
      Loading bundleresource://127.fwk679334155/portlet.properties
      Loading bundleresource://443.fwk679334155/portlet.properties
      Loading bundleresource://317.fwk679334155/portlet.properties
      20:27:13,055 ERROR [Thread-30][EngineConfigurationFactoryFinder:144] Unable to locate a valid EngineConfigurationFactory
      02-Mar-2016 20:27:13.055 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.loadOnStartup Servlet [Axis Servlet] in web application [] threw load() exception
       java.lang.NullPointerException
              at org.apache.axis.transport.http.AxisServletBase.getEngineEnvironment(AxisServletBase.java:273)
              at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:172)
              at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
              at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
              at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
              at javax.servlet.GenericServlet.init(GenericServlet.java:158)
              at com.liferay.util.axis.AxisServlet.doInit(AxisServlet.java:245)
              at com.liferay.util.axis.AxisServlet$InitThread.run(AxisServlet.java:340)
      
      02-Mar-2016 20:27:13.086 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'Remoting Servlet'
      02-Mar-2016 20:27:13.424 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor L:\public\master-bundles\tomcat-8.0.30\conf\Catalina\localhost\ROOT.xml has finished in 112,416 ms
      02-Mar-2016 20:27:13.440 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
      02-Mar-2016 20:27:13.440 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
      02-Mar-2016 20:27:13.440 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 112460 ms
      

      Reproduced on:
      Tomcat 8.0.30 + MySQL 5.6. Portal master GIT ID: 0348c4968b9c6b340ff6161adab4b7bf35172df4.
      Plugins master GIT ID: 18ab01e42b7ee38e4f5f5cb6d9ef4898d725fddd.
      Testray failures here

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 39 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 CE RC1