com.liferay.portal.kernel.xml.DocumentException: Error on line 4 of document  : Document is invalid: no grammar found. Nested exception: Document is invalid: no grammar found.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via openxava by tokugawa69
, 1 year ago
Error on line 4 of document  : Document is invalid: no grammar found. Nested exception: Document is invalid: no grammar found.
via jaspersoft.com by Unknown author, 1 year ago
Error on line 20 of document  :  cvc-complex-type.2.4.a: Invalid content was found starting with element 'resour ce-bundle'. One of '{" rtlet-preferences, " rity-role-ref}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid c ontent was
via liferay.com by Unknown author, 2 years ago
Error on line 20 of document : cvc-complex-type.2.4.a: Invalid content was found starting with element 'resour ce-bundle'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":po rtlet-preferences, "http://java.sun.com/xml/ns/portlet
via nabble.com by Unknown author, 1 year ago
Error on line 3 of document  : Document is invalid: no grammar found. Nested exception: Document is invalid: no grammar found.
via xuebuyuan.com by Unknown author, 1 year ago
Error on line 24 of document  : cvc-complex-type.2.4.a: Invalid content was found starting with element 'portlet-mode'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":mime-type}' is expected. Nested exception: cvc-complex-type.2.4
via csdn.net by Unknown author, 1 year ago
Error on line 24 of document  : cvc-complex-type.2.4.a: Invalid content was found starting with element 'portlet-mode'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":mime-type}' is expected. Nested exception: cvc-complex-type.2.4
com.liferay.portal.kernel.xml.DocumentException: Error on line 4 of document  : Document is invalid: no grammar found. Nested exception: Document is invalid: no grammar found.
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:377)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:388)
at com.liferay.portal.service.impl.PortletLocalServiceImpl._readPortletXML(PortletLocalServiceImpl.java:1281)
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:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at undefined.$Proxy49.initWAR(Unknown Source)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:230)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:108)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:153)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:43)
at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:113)
at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at java.lang.Thread.run(Thread.java:636)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.