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

UnsupportedOperationException throws during startup on weblogic

    Details

      Description

      Steps to reproduce

      1. Deploy portal to weblogic.
      2. Start server.

      Actual result
      UnsupportedOperationException throws when starting the server. HikariPool loses connection and all modules get unregistered. 404 error when hitting localhost:8080.

      Updated exception stacktrace 8/27/2015

      INFO: ServiceEvent REGISTERED {com.liferay.portal.kernel.monitoring.DefaultPortletMonitoringControl, com.liferay.portal.kernel.monitoring.PortletMonitoringControl}={original.bean=true, service.vendor=Liferay, Inc., bean.id=com.liferay.portal.kernel.monitoring.PortletMonitoringControl, service.id=2526, service.bundleid=0, service.scope=singleton}
      Aug 27, 2015 9:54:32 AM com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener _log
      INFO: ServiceEvent REGISTERED {javax.servlet.Filter, com.liferay.portal.kernel.monitoring.PortalMonitoringControl}={servlet-filter-name=Monitoring Filter, servlet-context-name=, url-pattern=[/c/*,/group/*,/user/*,/web/*], dispatcher=[FORWARD,REQUEST], component.name=com.liferay.portal.monitoring.internal.servlet.filters.MonitoringFilter, component.id=195, service.id=2527, service.bundleid=93, service.scope=bundle}
      Aug 27, 2015 9:54:32 AM com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener _log
      INFO: ServiceEvent REGISTERED {javax.management.DynamicMBean}={jmx.objectname.cache.key=MonitoringProcessorManager, jmx.objectname=com.liferay.portal.monitoring:classification=monitoring_service,name=MonitoringConfigurationManager, component.name=com.liferay.portal.monitoring.internal.jmx.MonitoringConfigurationManager, component.id=194, service.id=2528, service.bundleid=93, service.scope=bundle}
      Aug 27, 2015 9:54:32 AM com.liferay.portal.equinox.log.bridge.internal.PortalSynchronousLogListener _log
      INFO: FrameworkEvent STARTLEVEL CHANGED
      <Aug 27, 2015 9:54:33 AM PDT> <Error> <HTTP> <BEA-101388> <The ServletContext was passed to the ServletContextListener.contextInitialized method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with javax.servlet.annotation.WebListener.>
      <Aug 27, 2015 9:54:33 AM PDT> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.
      javax.servlet.ServletException: javax.servlet.ServletException: java.lang.UnsupportedOperationException: [HTTP:101388]The ServletContext was passed to the ServletContextListener.contextInitialized method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with javax.servlet.annotation.WebListener.
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.init(InvokerFilter.java:143)
              at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:374)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
              at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
              Truncated. see log file for complete stacktrace
      Caused By: javax.servlet.ServletException: java.lang.UnsupportedOperationException: [HTTP:101388]The ServletContext was passed to the ServletContextListener.contextInitialized method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with javax.servlet.annotation.WebListener.
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.init(InvokerFilterHelper.java:106)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doPortalInit(InvokerFilter.java:193)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.init(InvokerFilter.java:138)
              at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:374)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              Truncated. see log file for complete stacktrace
      Caused By: java.lang.UnsupportedOperationException: [HTTP:101388]The ServletContext was passed to the ServletContextListener.contextInitialized method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with javax.servlet.annotation.WebListener.
              at weblogic.servlet.internal.WebAppServletContext.checkNotifyDynamicContext(WebAppServletContext.java:3989)
              at weblogic.servlet.internal.WebAppServletContext.getClassLoader(WebAppServletContext.java:3804)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.initFilter(InvokerFilterHelper.java:270)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.readLiferayFilterWebXML(InvokerFilterHelper.java:336)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.init(InvokerFilterHelper.java:86)
              Truncated. see log file for complete stacktrace
      >
      09:54:33,113 ERROR [[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'][BasePortalLifecycle:34] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.destroy(InvokerFilterHelper.java:61)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doPortalDestroy(InvokerFilter.java:165)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalDestroy(BasePortalLifecycle.java:31)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.destroy(InvokerFilter.java:59)
              at weblogic.servlet.internal.FilterManager$FilterDestroyAction.run(FilterManager.java:390)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
              at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
              at weblogic.servlet.internal.FilterManager.destroyFilter(FilterManager.java:349)
              at weblogic.servlet.internal.FilterManager.destroyFilters(FilterManager.java:334)
              at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:2925)
              at weblogic.servlet.internal.ServletContextManager.destroyContext(ServletContextManager.java:249)
              at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:436)
              at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:1691)
              at weblogic.servlet.internal.WebAppModule.deactivate(WebAppModule.java:849)
              at weblogic.application.internal.ExtensibleModuleWrapper$ActivateStateChange.previous(ExtensibleModuleWrapper.java:328)
              at weblogic.application.internal.ExtensibleModuleWrapper$ActivateStateChange.previous(ExtensibleModuleWrapper.java:313)
              at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:163)
              at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:149)
              at weblogic.application.internal.ExtensibleModuleWrapper.deactivate(ExtensibleModuleWrapper.java:163)
              at weblogic.application.internal.flow.ModuleListenerInvoker.deactivate(ModuleListenerInvoker.java:131)
              at weblogic.application.internal.flow.ModuleStateDriver$2.previous(ModuleStateDriver.java:199)
              at weblogic.application.internal.flow.ModuleStateDriver$2.previous(ModuleStateDriver.java:190)
              at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:163)
              at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:149)
              at weblogic.application.internal.flow.ModuleStateDriver.deactivate(ModuleStateDriver.java:84)
              at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:150)
              at weblogic.application.internal.BaseDeployment$2.previous(BaseDeployment.java:735)
              at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:163)
              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:50)
              at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
              at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
              at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
              at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
              at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:587)
              at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
              at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
              at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339)
              at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846)
              at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275)
              at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442)
              at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176)
              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
              at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548)
              at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
              at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
      Aug 27, 2015 9:54:33 AM com.zaxxer.hikari.pool.HikariPool shutdown
      INFO: Hikari pool HikariPool-0 is shutting down.
      Aug 27, 2015 9:54:33 AM com.zaxxer.hikari.pool.HikariPool shutdown
      INFO: Hikari pool HikariPool-1 is shutting down.
      Aug 27, 2015 9:54:33 AM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
      

      Old stacktrace

      11:34:04,908 ERROR [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'][FriendlyURLMapperTrackerImpl:129] java.lang.UnsupportedOperationException: [HTTP:101388]The ServletContext was passed to the ServletContextListener.contextInitialized method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with javax.servlet.annotation.WebListener.
      java.lang.UnsupportedOperationException: [HTTP:101388]The ServletContext was passed to the ServletContextListener.contextInitialized method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with javax.servlet.annotation.WebListener.
      	at weblogic.servlet.internal.WebAppServletContext.checkNotifyDynamicContext(WebAppServletContext.java:3917)
      	at weblogic.servlet.internal.WebAppServletContext.getClassLoader(WebAppServletContext.java:3713)
      	at com.liferay.portlet.FriendlyURLMapperTrackerImpl$FriendlyURLMapperServiceTrackerCustomizer.getClassLoader(FriendlyURLMapperTrackerImpl.java:222)
      	at com.liferay.portlet.FriendlyURLMapperTrackerImpl$FriendlyURLMapperServiceTrackerCustomizer.newFriendlyURLRouter(FriendlyURLMapperTrackerImpl.java:160)
      	at com.liferay.portlet.FriendlyURLMapperTrackerImpl$FriendlyURLMapperServiceTrackerCustomizer.addingService(FriendlyURLMapperTrackerImpl.java:126)
      	at com.liferay.portlet.FriendlyURLMapperTrackerImpl$FriendlyURLMapperServiceTrackerCustomizer.addingService(FriendlyURLMapperTrackerImpl.java:1)
      	at com.liferay.registry.internal.ServiceTrackerCustomizerAdapter.addingService(ServiceTrackerCustomizerAdapter.java:35)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
      	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:894)
      	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
      	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:819)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
      	at com.liferay.registry.internal.RegistryImpl.registerService(RegistryImpl.java:255)
      	at com.liferay.portlet.FriendlyURLMapperTrackerImpl.register(FriendlyURLMapperTrackerImpl.java:82)
      	at com.liferay.portlet.PortletBagFactory.newFriendlyURLMappers(PortletBagFactory.java:632)
      	at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:118)
      	at com.liferay.portal.servlet.MainServlet.initPortlets(MainServlet.java:886)
      	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:244)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:240)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:337)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:288)
      	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      	at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      	at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:98)
      	at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:86)
      	at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)
      	at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60)
      	at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34)
      	at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:652)
      	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:593)
      	at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1924)
      	at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1901)
      	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1791)
      	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2807)
      	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661)
      	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:822)
      	at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
      	at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      	at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)
      	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
      	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
      	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
      	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
      	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
      	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:586)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442)
      	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
      	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
      	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
      	at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 28 weeks ago

                  Packages

                  Version Package
                  7.0.0 CE RC1