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

Application Server: NamingException with portlet deployment on JBoss

    Details

      Description

      When deploying portlet war an exception occurs when liferay tries to bind datasource to JNDI and deployment of portlet war fails. Issue is similar to LPS-24166.

      Here is the related stacktrace.

      10:48:13,218 ERROR [BasePortalLifecycle:45] java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only
      java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only
      at org.jboss.as.naming.NamingContext.createSubcontext(NamingContext.java:318)
      at javax.naming.InitialContext.createSubcontext(InitialContext.java:464)
      at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:130)
      at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
      at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:83)
      at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:66)
      at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
      at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55)
      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:77)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
      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)

      10:48:13,250 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/proex-ant-test-portlet]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class com.liferay.portal.kernel.servlet.PortletContextListener: java.lang.IllegalStateException: Unable to initialize portal
      at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:47) [portal-service.jar:]
      at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:83) [portal-service.jar:]
      at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:66) [portal-service.jar:]
      at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52) [portal-service.jar:]
      at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55) [portal-service.jar:]
      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.3.Final.jar:]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.3.Final.jar:]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:77) [jboss-as-web-7.1.0.Beta1b.jar:]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
      at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
      Caused by: java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only
      at org.jboss.as.naming.NamingContext.createSubcontext(NamingContext.java:318)
      at javax.naming.InitialContext.createSubcontext(InitialContext.java:464) [:1.6.0_22]
      at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:130) [portal-service.jar:]
      at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42) [portal-service.jar:]
      ... 12 more

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 36 weeks, 6 days ago

                Packages

                Version Package
                --Sprint 11/12
                6.2.0 CE M2