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

org.dom4j.DocumentException occurred on portal startup

    Details

      Description

      Steps to reproduce:

      1. Update to latest master bundle.
      2. Start the bundle.

      Expected result:
      Bundle could be started without error.

      Actual result:
      org.dom4j.DocumentException occurred in console, but bundle could start.

      19:48:36,629 INFO  [pool-6-thread-2][HotDeployImpl:217] Deploying wiki-web from queue
      19:48:36,629 INFO  [pool-6-thread-2][PluginPackageUtil:1006] Reading plugin package for wiki-web
      19:48:36,676 ERROR [pool-6-thread-2][root:148] org.dom4j.DocumentException: /META-INF/log4j.dtd Nested exception: /META-INF/log4j.dtd
      org.dom4j.DocumentException: /META-INF/log4j.dtd Nested exception: /META-INF/log4j.dtd
              at org.dom4j.io.SAXReader.read(SAXReader.java:484)
              at org.dom4j.io.SAXReader.read(SAXReader.java:417)
              at com.liferay.util.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:131)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.initLogger(PluginPackageHotDeployListener.java:188)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:122)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:58)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:228)
              at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:97)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
              at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:169)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:159)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:121)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.eclipse.equinox.http.servlet.internal.registration.ListenerRegistration$EventListenerInvocationHandler.invoke(ListenerRegistration.java:135)
              at com.sun.proxy.$Proxy374.contextInitialized(Unknown Source)
              at org.eclipse.equinox.http.servlet.internal.context.ContextController.addListenerRegistration(ContextController.java:232)
              at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerListener(HttpServiceImpl.java:135)
              at com.liferay.portal.wab.extender.internal.WabBundleProcessor.initListeners(WabBundleProcessor.java:339)
              at com.liferay.portal.wab.extender.internal.WabBundleProcessor.init(WabBundleProcessor.java:152)
              at com.liferay.portal.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:88)
              at com.liferay.portal.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:165)
              at org.apache.felix.utils.extender.AbstractExtender$1.run(AbstractExtender.java:265)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
              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:745)
      Nested exception:
      java.io.FileNotFoundException: /META-INF/log4j.dtd
              at org.eclipse.osgi.storage.url.bundleresource.Handler.findBundleEntry(Handler.java:44)
              at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
              at java.net.URL.openConnection(URL.java:971)
              at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
              at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
              at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
              at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
              at org.dom4j.io.SAXReader.read(SAXReader.java:465)
              at org.dom4j.io.SAXReader.read(SAXReader.java:417)
              at com.liferay.util.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:131)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.initLogger(PluginPackageHotDeployListener.java:188)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:122)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:58)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:228)
              at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:97)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
              at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:169)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:159)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:121)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.eclipse.equinox.http.servlet.internal.registration.ListenerRegistration$EventListenerInvocationHandler.invoke(ListenerRegistration.java:135)
              at com.sun.proxy.$Proxy374.contextInitialized(Unknown Source)
              at org.eclipse.equinox.http.servlet.internal.context.ContextController.addListenerRegistration(ContextController.java:232)
              at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerListener(HttpServiceImpl.java:135)
              at com.liferay.portal.wab.extender.internal.WabBundleProcessor.initListeners(WabBundleProcessor.java:339)
              at com.liferay.portal.wab.extender.internal.WabBundleProcessor.init(WabBundleProcessor.java:152)
              at com.liferay.portal.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:88)
              at com.liferay.portal.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:165)
              at org.apache.felix.utils.extender.AbstractExtender$1.run(AbstractExtender.java:265)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
              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:745)
      Loading bundleresource://62.fwk1294221209/portlet.properties
      

        Attachments

          Activity

            People

            Assignee:
            hong.zhao Hong Zhao (Inactive)
            Reporter:
            hong.zhao Hong Zhao (Inactive)
            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:
              6 years, 37 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 M4